#include <acsDaemonImpl.h>
Public Member Functions | |
acsDaemonImpl (int argc, char *argv[]) | |
~acsDaemonImpl () | |
void | usage (const char *argv) |
int | run () |
void | shutdown () |
Private Attributes | |
ACSDaemonServiceImpl< T > * | service |
ACE_CString | iorFile |
ACE_CString | ORBEndpoint |
int | nargc |
char ** | nargv |
LoggingProxy * | m_logger |
ACS Daemon Implementation class.
acsDaemonImpl provides a common implementation for the container and service daemons of ACS.
acsDaemonImpl< T >::acsDaemonImpl | ( | int | argc, | |
char * | argv[] | |||
) |
Constructor.
References ACS_SHORT_LOG, ACSPorts::getIP(), getopt_long(), acsQoS::init(), acsDaemonImpl< T >::iorFile, acsDaemonImpl< T >::m_logger, acsDaemonImpl< T >::nargc, acsDaemonImpl< T >::nargv, optarg, acsDaemonImpl< T >::ORBEndpoint, LoggingProxy::ProcessName(), acsDaemonImpl< T >::service, LoggingProxy::ThreadName(), and acsDaemonImpl< T >::usage().
acsDaemonImpl< T >::~acsDaemonImpl | ( | ) |
Destructor.
References acsQoS::done(), acsDaemonImpl< T >::m_logger, and acsDaemonImpl< T >::service.
int acsDaemonImpl< T >::run | ( | void | ) |
Process client requests.
References ACS_SHORT_LOG, ACS_TRACE, acsDaemonImpl< T >::iorFile, acsDaemonImpl< T >::nargc, acsDaemonImpl< T >::nargv, acsDaemonImpl< T >::service, and acsDaemonImpl< T >::shutdown().
void acsDaemonImpl< T >::shutdown | ( | ) |
Terminate the daemon.
References acsDaemonImpl< T >::service.
Referenced by acsDaemonImpl< T >::run().
void acsDaemonImpl< T >::usage | ( | const char * | argv | ) |
Display help information for the daemon.
Referenced by acsDaemonImpl< T >::acsDaemonImpl().
ACE_CString acsDaemonImpl< T >::iorFile [private] |
File name where the IOR information is to be written
Referenced by acsDaemonImpl< T >::acsDaemonImpl(), and acsDaemonImpl< T >::run().
LoggingProxy* acsDaemonImpl< T >::m_logger [private] |
logger
Referenced by acsDaemonImpl< T >::acsDaemonImpl(), and acsDaemonImpl< T >::~acsDaemonImpl().
int acsDaemonImpl< T >::nargc [private] |
Configuration information for the service
Referenced by acsDaemonImpl< T >::acsDaemonImpl(), and acsDaemonImpl< T >::run().
char** acsDaemonImpl< T >::nargv [private] |
Referenced by acsDaemonImpl< T >::acsDaemonImpl(), and acsDaemonImpl< T >::run().
ACE_CString acsDaemonImpl< T >::ORBEndpoint [private] |
Description of where the provided service listens for requests
Referenced by acsDaemonImpl< T >::acsDaemonImpl().
ACSDaemonServiceImpl<T>* acsDaemonImpl< T >::service [private] |
Manager for the service provided by this daemon
Referenced by acsDaemonImpl< T >::acsDaemonImpl(), acsDaemonImpl< T >::run(), acsDaemonImpl< T >::shutdown(), and acsDaemonImpl< T >::~acsDaemonImpl().