OW_NAMESPACE::IndicationServerImpl Class Reference

#include <OW_IndicationServerImpl.hpp>

Inheritance diagram for OW_NAMESPACE::IndicationServerImpl:

Inheritance graph
[legend]
Collaboration diagram for OW_NAMESPACE::IndicationServerImpl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 IndicationServerImpl ()
 ~IndicationServerImpl ()
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.
void shutdown ()
 The service must shutdown completely before returning from this function.
void processIndication (const CIMInstance &instance, const String &instNS)
virtual void startDeleteSubscription (const String &ns, const CIMObjectPath &subPath)
virtual void startCreateSubscription (const String &ns, const CIMInstance &subInst, const String &username)
virtual void startModifySubscription (const String &ns, const CIMInstance &subInst)
void deleteSubscription (const String &ns, const CIMObjectPath &subPath)
void createSubscription (const String &ns, const CIMInstance &subInst, const String &username)
void modifySubscription (const String &ns, const CIMInstance &subInst)
virtual void modifyFilter (const String &ns, const CIMInstance &filterInst, const String &userName)

Private Attributes

IntrusiveReference< IndicationServerImplThreadm_indicationServerThread

Detailed Description

Definition at line 64 of file OW_IndicationServerImpl.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::IndicationServerImpl::IndicationServerImpl  ) 
 

Definition at line 101 of file OW_IndicationServerImpl.cpp.

OW_NAMESPACE::IndicationServerImpl::~IndicationServerImpl  ) 
 

Definition at line 107 of file OW_IndicationServerImpl.cpp.


Member Function Documentation

void OW_NAMESPACE::IndicationServerImpl::createSubscription const String ns,
const CIMInstance subInst,
const String username
 

void OW_NAMESPACE::IndicationServerImpl::deleteSubscription const String ns,
const CIMObjectPath subPath
 

StringArray OW_NAMESPACE::IndicationServerImpl::getDependencies  )  const [virtual]
 

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 120 of file OW_IndicationServerImpl.cpp.

References OW_NAMESPACE::ServiceIFCNames::CIMServer, OW_NAMESPACE::ServiceIFCNames::ProviderManager, and OW_NAMESPACE::Array< T >::push_back().

String OW_NAMESPACE::IndicationServerImpl::getName  )  const [virtual]
 

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 113 of file OW_IndicationServerImpl.cpp.

References OW_NAMESPACE::ServiceIFCNames::IndicationServer.

void OW_NAMESPACE::IndicationServerImpl::init const ServiceEnvironmentIFCRef env  )  [virtual]
 

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.

Parameters:
env The service's interface to it's environment. A copy of this may be saved and re-used. All copies of env or objects obtained by calling member functions of env should be set to 0 in shutdown() to prevent circular reference counts.

Implements OW_NAMESPACE::ServiceIFC.

Definition at line 130 of file OW_IndicationServerImpl.cpp.

References OW_NAMESPACE::IntrusiveReference< T >::cast_to(), env, m_indicationServerThread, and OW_ASSERT.

void OW_NAMESPACE::IndicationServerImpl::modifyFilter const String ns,
const CIMInstance filterInst,
const String userName
[virtual]
 

Implements OW_NAMESPACE::IndicationServer.

Definition at line 182 of file OW_IndicationServerImpl.cpp.

References m_indicationServerThread, and ns.

void OW_NAMESPACE::IndicationServerImpl::modifySubscription const String ns,
const CIMInstance subInst
 

void OW_NAMESPACE::IndicationServerImpl::processIndication const CIMInstance instance,
const String instNS
[virtual]
 

Implements OW_NAMESPACE::IndicationServer.

Definition at line 154 of file OW_IndicationServerImpl.cpp.

References m_indicationServerThread.

void OW_NAMESPACE::IndicationServerImpl::shutdown  )  [virtual]
 

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 147 of file OW_IndicationServerImpl.cpp.

References m_indicationServerThread.

void OW_NAMESPACE::IndicationServerImpl::start  )  [virtual]
 

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 139 of file OW_IndicationServerImpl.cpp.

References m_indicationServerThread.

void OW_NAMESPACE::IndicationServerImpl::startCreateSubscription const String ns,
const CIMInstance subInst,
const String username
[virtual]
 

Implements OW_NAMESPACE::IndicationServer.

Definition at line 168 of file OW_IndicationServerImpl.cpp.

References m_indicationServerThread, ns, subInst, and username.

void OW_NAMESPACE::IndicationServerImpl::startDeleteSubscription const String ns,
const CIMObjectPath subPath
[virtual]
 

Implements OW_NAMESPACE::IndicationServer.

Definition at line 161 of file OW_IndicationServerImpl.cpp.

References m_indicationServerThread, and ns.

void OW_NAMESPACE::IndicationServerImpl::startModifySubscription const String ns,
const CIMInstance subInst
[virtual]
 

Implements OW_NAMESPACE::IndicationServer.

Definition at line 175 of file OW_IndicationServerImpl.cpp.

References m_indicationServerThread, ns, and subInst.


Member Data Documentation

IntrusiveReference<IndicationServerImplThread> OW_NAMESPACE::IndicationServerImpl::m_indicationServerThread [private]
 

Definition at line 89 of file OW_IndicationServerImpl.hpp.

Referenced by init(), modifyFilter(), processIndication(), shutdown(), start(), startCreateSubscription(), startDeleteSubscription(), and startModifySubscription().


The documentation for this class was generated from the following files:
Generated on Thu Feb 9 09:13:04 2006 for openwbem by  doxygen 1.4.6