ACSDaemonServiceImpl

NAME
SYNOPSIS
Detailed Description
Constructor & Destructor Documentation
Member Function Documentation
Member Data Documentation
Author

NAME

ACSDaemonServiceImpl −

SYNOPSIS

#include <acsDaemonImpl.h>

Public Member Functions

ACSDaemonServiceImpl (LoggingProxy &logProxy, bool isProtected, int nbServiceThreads)

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

int m_serverThreads

Detailed Description

template<typename T> class ACSDaemonServiceImpl< T >

Service management class for daemon.

The ACSDaemonServiceImpl class manages the lifecycle of the CORBA interface that the daemon is to provide.

Constructor & Destructor Documentation

template<typename T > ACSDaemonServiceImpl< T >::ACSDaemonServiceImpl (LoggingProxy & logProxy, bool isProtected, int nbServiceThreads) Constructor

References getNamedLogger(), ACSDaemonServiceImpl< T >::handler, ACSDaemonServiceImpl< T >::m_blockTermination, ACSDaemonServiceImpl< T >::m_isInitialized, ACSDaemonServiceImpl< T >::m_isProtected, ACSDaemonServiceImpl< T >::m_serverThreads, and Logging::Logger::setGlobalLogger().

template<typename T > ACSDaemonServiceImpl< T >::~ACSDaemonServiceImpl (void) [virtual] Destructor

Member Function Documentation

template<typename T> const char* ACSDaemonServiceImpl< T >::getIOR () const [inline] Get CORBA IOR.

template<typename T> std::string ACSDaemonServiceImpl< T >::getName () [inline] Retrieve the name for this service

Referenced by ACSDaemonServiceImpl< T >::shutdown().

template<typename T> std::string ACSDaemonServiceImpl< T >::getPort () [inline] Retrieve the port for this service

template<typename T > 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().

template<typename T> bool ACSDaemonServiceImpl< T >::isInitialized () [inline] Initalization status

template<typename T> bool ACSDaemonServiceImpl< T >::isProtected () [inline] Tells if daemon was started in protected mode

template<typename T > int ACSDaemonServiceImpl< T >::run (void) Run the service.

Returns:

Returns 0 on success, -1 on error.

References ACS_LOG, ACS_SHORT_LOG, ACSDaemonServiceImpl< T >::handler, LM_RUNTIME_CONTEXT, ACSDaemonServiceImpl< T >::m_logProxy, ACSDaemonServiceImpl< T >::m_orb, and ACSDaemonServiceImpl< T >::m_serverThreads.

template<typename T > void ACSDaemonServiceImpl< T >::shutdown (bool wait_for_completition) Shutdown the service.

References ACS_SHORT_LOG, AsyncRequestThreadPool::destroy(), acsQoS::done(), ACSDaemonServiceImpl< T >::getName(), ACSDaemonServiceImpl< T >::handler, ACSDaemonServiceImpl< T >::m_blockTermination, and ACSDaemonServiceImpl< T >::m_orb.

template<typename T > 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.

Member Data Documentation

template<typename T> 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().

template<typename T> bool ACSDaemonServiceImpl< T >::m_blockTermination [protected] Daemon shutdown in progress flag

Referenced by ACSDaemonServiceImpl< T >::ACSDaemonServiceImpl(), and ACSDaemonServiceImpl< T >::shutdown().

template<typename T> CORBA::String_var ACSDaemonServiceImpl< T >::m_ior [protected] CORBA IOR

Referenced by ACSDaemonServiceImpl< ACSInterfaceRepositoryImpHandlerImpl >::getIOR(), and ACSDaemonServiceImpl< T >::init_ORB().

template<typename T> bool ACSDaemonServiceImpl< T >::m_isInitialized [protected] Initialization status

Referenced by ACSDaemonServiceImpl< T >::ACSDaemonServiceImpl(), and ACSDaemonServiceImpl< ACSInterfaceRepositoryImpHandlerImpl >::isInitialized().

template<typename T> bool ACSDaemonServiceImpl< T >::m_isProtected [protected] Protected mode

Referenced by ACSDaemonServiceImpl< T >::ACSDaemonServiceImpl(), and ACSDaemonServiceImpl< ACSInterfaceRepositoryImpHandlerImpl >::isProtected().

template<typename T> LoggingProxy& ACSDaemonServiceImpl< T >::m_logProxy [protected] Logging. proxy

Referenced by ACSDaemonServiceImpl< T >::run().

template<typename T> 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().

template<typename T> int ACSDaemonServiceImpl< T >::m_serverThreads [protected] Number of service threads

Referenced by ACSDaemonServiceImpl< T >::ACSDaemonServiceImpl(), and ACSDaemonServiceImpl< T >::run().

Author

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