#include <acsServiceController.h>
Public Member Functions | |
ACSDaemonContext (std::string name, DetailedServiceStateProvider *dssp=NULL) | |
~ACSDaemonContext () | |
void | initialize (CORBA::ORB_ptr iorb) |
void | dispose (CORBA::ORB_ptr iorb) |
void | processRequest (ACSServiceRequestTarget target, ACSServiceRequestType type, ACSServiceRequestDescription *desc, acsdaemon::DaemonCallback_ptr callback=NULL) throw (acsdaemonErrType::ServiceAlreadyRunningEx, acsdaemonErrType::ServiceNotRunningEx) |
RequestProcessorThread * | getRequestProcessor () |
CORBA::ORB_ptr | getORB () |
void | checkControllers () |
acsdaemon::ServiceState | getACSServiceState (int instance_number, const char *name=NULL) |
acsdaemon::ServiceState | getDetailedServiceState (ACSServiceRequestDescription *desc, CORBA::Object_ptr obj) const |
void | setConfigurationReference (const short instance_number, const ::acsdaemon::ServiceInfoSeq &services_info) |
::acsdaemon::ServiceInfoSeq | getConfigurationReference (const short instance_number) |
std::string | getConfigurationReference (const short instance_number, const char *service_type) |
bool | hasConfigurationReference (const short instance_number) |
bool | hasConfigurationReference (const short instance_number, const char *service_type) |
Private Member Functions | |
ServiceController * | getImpController (ACSServiceType service) |
ServiceController * | getACSServiceController (ACSServiceRequestDescription *desc) |
void | setImpControllersConfigurationReference (const short instance_number, const ::acsdaemon::ServiceInfoSeq &services_info) |
Private Attributes | |
CORBA::ORB_ptr | orb |
ACS::ThreadManager | tm |
RequestProcessorThread * | reqproc |
ControllerThread * | ctrl |
ACE_Thread_Mutex * | m_mutex |
ACE_Recursive_Thread_Mutex | m_configMutex |
ServiceController ** | impcontrollers |
ServiceController ** | acsservicecontrollers |
std::map< std::string, ServiceController ** > | acsservicecontrollersmap |
std::map< short,::acsdaemon::ServiceInfoSeq > | configurationReferences |
DetailedServiceStateProvider * | detailedServiceStateProvider |
ACSDaemonContext::ACSDaemonContext | ( | std::string | name, | |
DetailedServiceStateProvider * | dssp = NULL | |||
) |
ACSDaemonContext::~ACSDaemonContext | ( | ) |
void ACSDaemonContext::checkControllers | ( | ) |
void ACSDaemonContext::dispose | ( | CORBA::ORB_ptr | iorb | ) |
ServiceController* ACSDaemonContext::getACSServiceController | ( | ACSServiceRequestDescription * | desc | ) | [private] |
acsdaemon::ServiceState ACSDaemonContext::getACSServiceState | ( | int | instance_number, | |
const char * | name = NULL | |||
) |
Referenced by ACSNotificationServiceImpHandlerImpl::get_service_status(), ACSNamingServiceImpHandlerImpl::get_service_status(), ACSManagerImpHandlerImpl::get_service_status(), ACSLoggingServiceImpHandlerImpl::get_service_status(), ACSInterfaceRepositoryImpHandlerImpl::get_service_status(), ACSConfigurationDatabaseImpHandlerImpl::get_service_status(), and ACSAlarmServiceImpHandlerImpl::get_service_status().
::acsdaemon::ServiceInfoSeq ACSDaemonContext::getConfigurationReference | ( | const short | instance_number | ) |
std::string ACSDaemonContext::getConfigurationReference | ( | const short | instance_number, | |
const char * | service_type | |||
) |
acsdaemon::ServiceState ACSDaemonContext::getDetailedServiceState | ( | ACSServiceRequestDescription * | desc, | |
CORBA::Object_ptr | obj | |||
) | const [inline] |
ServiceController* ACSDaemonContext::getImpController | ( | ACSServiceType | service | ) | [private] |
CORBA::ORB_ptr ACSDaemonContext::getORB | ( | ) | [inline] |
RequestProcessorThread* ACSDaemonContext::getRequestProcessor | ( | ) | [inline] |
bool ACSDaemonContext::hasConfigurationReference | ( | const short | instance_number, | |
const char * | service_type | |||
) |
bool ACSDaemonContext::hasConfigurationReference | ( | const short | instance_number | ) |
void ACSDaemonContext::initialize | ( | CORBA::ORB_ptr | iorb | ) |
void ACSDaemonContext::processRequest | ( | ACSServiceRequestTarget | target, | |
ACSServiceRequestType | type, | |||
ACSServiceRequestDescription * | desc, | |||
acsdaemon::DaemonCallback_ptr | callback = NULL | |||
) | throw (acsdaemonErrType::ServiceAlreadyRunningEx, acsdaemonErrType::ServiceNotRunningEx) |
Referenced by ACSLogServiceImpHandlerImpl::start_acs_log(), ACSAlarmServiceImpHandlerImpl::start_alarm_service(), ACSInterfaceRepositoryImpHandlerImpl::start_interface_repository(), ACSLoggingServiceImpHandlerImpl::start_logging_service(), ACSManagerImpHandlerImpl::start_manager(), ACSNamingServiceImpHandlerImpl::start_naming_service(), ACSNotificationServiceImpHandlerImpl::start_notification_service(), ACSConfigurationDatabaseImpHandlerImpl::start_rdb_cdb(), ACSConfigurationDatabaseImpHandlerImpl::start_xml_cdb(), ACSAlarmServiceImpHandlerImpl::stop_alarm_service(), ACSConfigurationDatabaseImpHandlerImpl::stop_cdb(), ACSInterfaceRepositoryImpHandlerImpl::stop_interface_repository(), ACSLoggingServiceImpHandlerImpl::stop_logging_service(), ACSManagerImpHandlerImpl::stop_manager(), ACSNamingServiceImpHandlerImpl::stop_naming_service(), and ACSNotificationServiceImpHandlerImpl::stop_notification_service().
void ACSDaemonContext::setConfigurationReference | ( | const short | instance_number, | |
const ::acsdaemon::ServiceInfoSeq & | services_info | |||
) |
void ACSDaemonContext::setImpControllersConfigurationReference | ( | const short | instance_number, | |
const ::acsdaemon::ServiceInfoSeq & | services_info | |||
) | [private] |
std::map<std::string, ServiceController **> ACSDaemonContext::acsservicecontrollersmap [private] |
std::map<short, ::acsdaemon::ServiceInfoSeq> ACSDaemonContext::configurationReferences [private] |
ControllerThread* ACSDaemonContext::ctrl [private] |
ServiceController** ACSDaemonContext::impcontrollers [private] |
ACE_Recursive_Thread_Mutex ACSDaemonContext::m_configMutex [private] |
ACE_Thread_Mutex* ACSDaemonContext::m_mutex [private] |
CORBA::ORB_ptr ACSDaemonContext::orb [private] |
RequestProcessorThread* ACSDaemonContext::reqproc [private] |
ACS::ThreadManager ACSDaemonContext::tm [private] |