Public Member Functions | Private Member Functions | Private Attributes

ACSDaemonContext Class Reference

#include <acsServiceController.h>

Collaboration diagram for ACSDaemonContext:
Collaboration graph
[legend]

List of all members.

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)
RequestProcessorThreadgetRequestProcessor ()
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

ServiceControllergetImpController (ACSServiceType service)
ServiceControllergetACSServiceController (ACSServiceRequestDescription *desc)
void setImpControllersConfigurationReference (const short instance_number, const ::acsdaemon::ServiceInfoSeq &services_info)

Private Attributes

CORBA::ORB_ptr orb
ACS::ThreadManager tm
RequestProcessorThreadreqproc
ControllerThreadctrl
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
DetailedServiceStateProviderdetailedServiceStateProvider

Constructor & Destructor Documentation

ACSDaemonContext::ACSDaemonContext ( std::string  name,
DetailedServiceStateProvider dssp = NULL 
)
ACSDaemonContext::~ACSDaemonContext (  ) 

Member Function Documentation

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 
)
::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)
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]

Member Data Documentation

std::map<short, ::acsdaemon::ServiceInfoSeq> ACSDaemonContext::configurationReferences [private]
ACE_Recursive_Thread_Mutex ACSDaemonContext::m_configMutex [private]
ACE_Thread_Mutex* ACSDaemonContext::m_mutex [private]
CORBA::ORB_ptr ACSDaemonContext::orb [private]

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