#include <OW_PollingManager.hpp>
Inheritance diagram for OW_NAMESPACE::PollingManager:
Public Member Functions | |
PollingManager (const ProviderManagerRef &providerManager) | |
virtual | ~PollingManager () |
virtual String | getName () const |
Every service may have a name. | |
virtual StringArray | getDependencies () const |
Get the list of services this service depends on. | |
virtual void | init (const ServiceEnvironmentIFCRef &env) |
init() will be called to give the derived class an opportunity to initialize itself. | |
virtual void | start () |
In start(), a service should start doing whatever it does, such as starting a new thread or adding selectables to the environment. | |
virtual void | shutdown () |
The service must shutdown completely before returning from this function. | |
void | addPolledProvider (const PolledProviderIFCRef &p) |
Private Attributes | |
IntrusiveReference< PollingManagerThread > | m_pollingManagerThread |
Definition at line 58 of file OW_PollingManager.hpp.
|
Definition at line 82 of file OW_PollingManager.cpp. |
|
Definition at line 89 of file OW_PollingManager.cpp. |
|
Definition at line 117 of file OW_PollingManager.cpp. References m_pollingManagerThread. |
|
Get the list of services this service depends on. The returned services will be started before and shutdown after this service. It is an error to return the name of a non-existent service, and the cimom startup will fail. The default is to have no dependencies. Reimplemented from OW_NAMESPACE::ServiceIFC. Definition at line 145 of file OW_PollingManager.cpp. References OW_NAMESPACE::ServiceIFCNames::CIMServer, and OW_NAMESPACE::Array< T >::push_back(). |
|
Every service may have a name. The name is used to calculate dependencies, other services can return the name from getDependencies(), to instruct the cimom about which order to start and shutdown all the services. The default is to have no name, in that case, no other service can depend on it. Reimplemented from OW_NAMESPACE::ServiceIFC. Definition at line 138 of file OW_PollingManager.cpp. References OW_NAMESPACE::ServiceIFCNames::PollingManager. |
|
init() will be called to give the derived class an opportunity to initialize itself. Do not create threads which interact with the environment until start() is called. During the loading/initializing phase, the environment is single-threaded.
Implements OW_NAMESPACE::ServiceIFC. Definition at line 95 of file OW_PollingManager.cpp. References env, and m_pollingManagerThread. |
|
The service must shutdown completely before returning from this function. All copies of the service environment or objects obtained from it should be set to 0 to avoid circular reference counts. Implements OW_NAMESPACE::ServiceIFC. Definition at line 110 of file OW_PollingManager.cpp. References m_pollingManagerThread. |
|
In start(), a service should start doing whatever it does, such as starting a new thread or adding selectables to the environment. A service can't rely on the order of initalization, so if it needs to communicate with another one, that works hould be done in started() start() should not return until the service is actually started, but it must return. Reimplemented from OW_NAMESPACE::ServiceIFC. Definition at line 102 of file OW_PollingManager.cpp. References m_pollingManagerThread. |
|
Definition at line 72 of file OW_PollingManager.hpp. Referenced by addPolledProvider(), init(), shutdown(), and start(). |