ServiceController

NAME
SYNOPSIS
Constructor & Destructor Documentation
Member Function Documentation
Friends And Related Function Documentation
Member Data Documentation
Author

NAME

ServiceController −

SYNOPSIS

#include <acsServiceController.h>

Inherited by ACSServiceController, and ImpController.

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

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]

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]

Author

Generated automatically by Doxygen for ACS-2015.2 C++ API from the source code.