Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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

 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
acsdaemon::ServiceState state
bool active
Requeststartreq
Requeststopreq

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]
 

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]
 


Member Data Documentation

bool ServiceController::active [protected]
 

bool ServiceController::autorestart [protected]
 

ACSDaemonContext* ServiceController::context [protected]
 

ACE_Thread_Mutex* ServiceController::m_mutex [protected]
 

Request* ServiceController::startreq [protected]
 

acsdaemon::ServiceState ServiceController::state [protected]
 

Request * ServiceController::stopreq [protected]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:36:53 2009 for ACS C++ API by doxygen 1.3.8