#include <acsServiceController.h>


Public Member Functions | |
| virtual ACE_CString | getServiceName ()=0 |
| ServiceController (ACSDaemonContext *icontext, bool iautorestart) | |
| virtual | ~ServiceController () |
| ACSDaemonContext * | getContext () |
| 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 ControlledServiceRequest * | createControlledServiceRequest (ACSServiceRequestType itype, acsdaemon::DaemonCallback_ptr callback=NULL)=0 |
| virtual acsdaemon::ServiceState | getActualState ()=0 |
| virtual void | fireAlarm (acsdaemon::ServiceState state)=0 |
Protected Attributes | |
| ACSDaemonContext * | context |
| bool | autorestart |
| ACE_Thread_Mutex * | m_mutex |
| volatile acsdaemon::ServiceState | state |
| volatile bool | active |
| Request * | startreq |
| Request * | stopreq |
Friends | |
| class | ControlledServiceRequest |
| ServiceController::ServiceController | ( | ACSDaemonContext * | icontext, | |
| bool | iautorestart | |||
| ) |
| virtual ServiceController::~ServiceController | ( | ) | [virtual] |
| 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] |
friend class ControlledServiceRequest [friend] |
volatile bool ServiceController::active [protected] |
bool ServiceController::autorestart [protected] |
ACSDaemonContext* ServiceController::context [protected] |
ACE_Thread_Mutex* ServiceController::m_mutex [protected] |
Request* ServiceController::startreq [protected] |
volatile acsdaemon::ServiceState ServiceController::state [protected] |
Request * ServiceController::stopreq [protected] |
1.7.0