#include <acsDaemonImpl.h>

Public Member Functions | |
| ACSDaemonServiceImpl (LoggingProxy &logProxy, bool isProtected) | |
| virtual | ~ACSDaemonServiceImpl () |
| bool | isInitialized () |
| bool | isProtected () |
| std::string | getPort () |
| std::string | getName () |
| int | startup (int argc, char *argv[]) |
| int | run () |
| void | shutdown (bool wait_for_completition) |
| const char * | getIOR () const |
Protected Member Functions | |
| virtual int | init_ORB (int &argc, char *argv[]) |
Protected Attributes | |
| bool | m_isInitialized |
| bool | m_isProtected |
| bool | m_blockTermination |
| CORBA::ORB_var | m_orb |
| LoggingProxy & | m_logProxy |
| CORBA::String_var | m_ior |
| T | handler |
Service management class for daemon.
The ACSDaemonServiceImpl class manages the lifecycle of the CORBA interface that the daemon is to provide.
| ACSDaemonServiceImpl< T >::ACSDaemonServiceImpl | ( | LoggingProxy & | logProxy, | |
| bool | isProtected | |||
| ) |
| ACSDaemonServiceImpl< T >::~ACSDaemonServiceImpl | ( | void | ) | [virtual] |
Destructor
| const char* ACSDaemonServiceImpl< T >::getIOR | ( | ) | const [inline] |
Get CORBA IOR.
| std::string ACSDaemonServiceImpl< T >::getName | ( | ) | [inline] |
Retrieve the name for this service
Referenced by ACSDaemonServiceImpl< T >::shutdown().
| std::string ACSDaemonServiceImpl< T >::getPort | ( | ) | [inline] |
Retrieve the port for this service
| int ACSDaemonServiceImpl< T >::init_ORB | ( | int & | argc, | |
| char * | argv[] | |||
| ) | [protected, virtual] |
initialize the ORB.
References ACS_SHORT_LOG, ACSDaemonServiceImpl< T >::handler, ACSDaemonServiceImpl< T >::m_ior, and ACSDaemonServiceImpl< T >::m_orb.
Referenced by ACSDaemonServiceImpl< T >::startup().
| bool ACSDaemonServiceImpl< T >::isInitialized | ( | ) | [inline] |
Initalization status
| bool ACSDaemonServiceImpl< T >::isProtected | ( | ) | [inline] |
Tells if daemon was started in protected mode
| int ACSDaemonServiceImpl< T >::run | ( | void | ) |
Run the service.
References ACS_LOG, ACS_SHORT_LOG, ACSDaemonServiceImpl< T >::handler, LM_RUNTIME_CONTEXT, ACSDaemonServiceImpl< T >::m_logProxy, and ACSDaemonServiceImpl< T >::m_orb.
| void ACSDaemonServiceImpl< T >::shutdown | ( | bool | wait_for_completition | ) |
Shutdown the service.
References ACS_SHORT_LOG, acsQoS::done(), ACSDaemonServiceImpl< T >::getName(), ACSDaemonServiceImpl< T >::handler, ACSDaemonServiceImpl< T >::m_blockTermination, and ACSDaemonServiceImpl< T >::m_orb.
| int ACSDaemonServiceImpl< T >::startup | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Initializes the service.
References ACS_SHORT_LOG, ACSDaemonServiceImpl< T >::handler, ACSError::init(), ACSDaemonServiceImpl< T >::init_ORB(), and ACSDaemonServiceImpl< T >::m_orb.
T ACSDaemonServiceImpl< T >::handler [protected] |
Implementation of the CORBA interface this service provides
Referenced by ACSDaemonServiceImpl< T >::ACSDaemonServiceImpl(), ACSDaemonServiceImpl< ACSInterfaceRepositoryImpHandlerImpl >::getName(), ACSDaemonServiceImpl< ACSInterfaceRepositoryImpHandlerImpl >::getPort(), ACSDaemonServiceImpl< T >::init_ORB(), ACSDaemonServiceImpl< T >::run(), ACSDaemonServiceImpl< T >::shutdown(), and ACSDaemonServiceImpl< T >::startup().
bool ACSDaemonServiceImpl< T >::m_blockTermination [protected] |
Daemon shutdown in progress flag
Referenced by ACSDaemonServiceImpl< T >::ACSDaemonServiceImpl(), and ACSDaemonServiceImpl< T >::shutdown().
CORBA::String_var ACSDaemonServiceImpl< T >::m_ior [protected] |
CORBA IOR
Referenced by ACSDaemonServiceImpl< ACSInterfaceRepositoryImpHandlerImpl >::getIOR(), and ACSDaemonServiceImpl< T >::init_ORB().
bool ACSDaemonServiceImpl< T >::m_isInitialized [protected] |
Initialization status
Referenced by ACSDaemonServiceImpl< T >::ACSDaemonServiceImpl(), and ACSDaemonServiceImpl< ACSInterfaceRepositoryImpHandlerImpl >::isInitialized().
bool ACSDaemonServiceImpl< T >::m_isProtected [protected] |
Protected mode
Referenced by ACSDaemonServiceImpl< T >::ACSDaemonServiceImpl(), and ACSDaemonServiceImpl< ACSInterfaceRepositoryImpHandlerImpl >::isProtected().
LoggingProxy& ACSDaemonServiceImpl< T >::m_logProxy [protected] |
Logging. proxy
Referenced by ACSDaemonServiceImpl< T >::run().
CORBA::ORB_var ACSDaemonServiceImpl< T >::m_orb [protected] |
The ORB that we use.
Referenced by ACSDaemonServiceImpl< T >::init_ORB(), ACSDaemonServiceImpl< T >::run(), ACSDaemonServiceImpl< T >::shutdown(), and ACSDaemonServiceImpl< T >::startup().
1.7.0