Public Member Functions | Protected Member Functions | Protected Attributes | Friends

ServiceController Class Reference

#include <acsServiceController.h>

Inheritance diagram for ServiceController:
Inheritance graph
[legend]
Collaboration diagram for ServiceController:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ACE_CString getServiceName ()=0
 ServiceController (ACSDaemonContext *icontext, bool iautorestart)
virtual ~ServiceController ()
ACSDaemonContextgetContext ()
void restart ()
bool start (acsdaemon::DaemonCallback_ptr callback=NULL) throw ((acsdaemonErrType::ServiceAlreadyRunningEx))
void stop (acsdaemon::DaemonCallback_ptr callback=NULL) throw ((acsdaemonErrType::ServiceNotRunningEx))
acsdaemon::ServiceState getLastState ()

Protected Member Functions

void stopping ()
void requestComplete (Request *request)
virtual bool setState (acsdaemon::ServiceState istate)
virtual ControlledServiceRequestcreateControlledServiceRequest (ACSServiceRequestType itype, acsdaemon::DaemonCallback_ptr callback=NULL)=0
virtual acsdaemon::ServiceState getActualState ()=0
virtual void fireAlarm (acsdaemon::ServiceState state)=0

Protected Attributes

ACSDaemonContextcontext
bool autorestart
ACE_Thread_Mutex * m_mutex
volatile acsdaemon::ServiceState state
volatile bool active
Requeststartreq
Requeststopreq

Friends

class ControlledServiceRequest

Constructor & Destructor Documentation

ServiceController::ServiceController ( ACSDaemonContext icontext,
bool  iautorestart 
)
virtual ServiceController::~ServiceController (  )  [virtual]

Member Function Documentation

virtual ControlledServiceRequest* ServiceController::createControlledServiceRequest ( ACSServiceRequestType  itype,
acsdaemon::DaemonCallback_ptr  callback = NULL 
) [protected, pure virtual]

Implemented in ImpController, and ACSServiceController.

virtual void ServiceController::fireAlarm ( acsdaemon::ServiceState  state  )  [protected, pure virtual]

Implemented in ImpController, and ACSServiceController.

virtual acsdaemon::ServiceState ServiceController::getActualState (  )  [protected, pure virtual]

Implemented in ImpController, and ACSServiceController.

ACSDaemonContext* ServiceController::getContext (  )  [inline]
acsdaemon::ServiceState ServiceController::getLastState (  )  [inline]
virtual ACE_CString ServiceController::getServiceName (  )  [pure virtual]

Implemented in ImpController, and ACSServiceController.

void ServiceController::requestComplete ( Request request  )  [protected]
void ServiceController::restart (  ) 
virtual bool ServiceController::setState ( acsdaemon::ServiceState  istate  )  [protected, virtual]

Reimplemented in ACSServiceController.

bool ServiceController::start ( acsdaemon::DaemonCallback_ptr  callback = NULL  )  throw ((acsdaemonErrType::ServiceAlreadyRunningEx))
void ServiceController::stop ( acsdaemon::DaemonCallback_ptr  callback = NULL  )  throw ((acsdaemonErrType::ServiceNotRunningEx))
void ServiceController::stopping (  )  [protected]

Friends And Related Function Documentation

friend class ControlledServiceRequest [friend]

Member Data Documentation

volatile bool ServiceController::active [protected]
ACE_Thread_Mutex* ServiceController::m_mutex [protected]
volatile acsdaemon::ServiceState ServiceController::state [protected]

The documentation for this class was generated from the following file: