OW_NAMESPACE::LifecycleIndicationPoller Class Reference

#include <OW_LifecycleIndicationPoller.hpp>

Inheritance diagram for OW_NAMESPACE::LifecycleIndicationPoller:

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

Collaboration graph
[legend]
List of all members.

Public Types

enum  PollOp { POLL_FOR_INSTANCE_CREATION, POLL_FOR_INSTANCE_MODIFICATION, POLL_FOR_INSTANCE_DELETION }

Public Member Functions

 LifecycleIndicationPoller (const String &ns, const CIMName &className, UInt32 pollInterval)
virtual Int32 getInitialPollingInterval (const ProviderEnvironmentIFCRef &env)
virtual Int32 poll (const ProviderEnvironmentIFCRef &env)
 Called by the CIMOM to give this CppPolledProviderIFC to opportunity to export indications if needed.
void addPollOp (PollOp op)
bool removePollOp (PollOp op)
bool willPoll () const
UInt32 addPollInterval (UInt32 newPollInterval)

Private Member Functions

UInt32 getPollInterval () const

Private Attributes

String m_ns
CIMName m_classname
UInt32 m_pollInterval
UInt32 m_pollCreation
UInt32 m_pollModification
UInt32 m_pollDeletion
Mutex m_guard
CIMInstanceArray m_prevInsts
bool m_initializedInstances

Detailed Description

Definition at line 46 of file OW_LifecycleIndicationPoller.hpp.


Member Enumeration Documentation

enum OW_NAMESPACE::LifecycleIndicationPoller::PollOp
 

Enumerator:
POLL_FOR_INSTANCE_CREATION 
POLL_FOR_INSTANCE_MODIFICATION 
POLL_FOR_INSTANCE_DELETION 

Definition at line 54 of file OW_LifecycleIndicationPoller.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::LifecycleIndicationPoller::LifecycleIndicationPoller const String ns,
const CIMName className,
UInt32  pollInterval
 

Definition at line 54 of file OW_LifecycleIndicationPoller.cpp.


Member Function Documentation

UInt32 OW_NAMESPACE::LifecycleIndicationPoller::addPollInterval UInt32  newPollInterval  ) 
 

Definition at line 113 of file OW_LifecycleIndicationPoller.cpp.

References m_guard, and m_pollInterval.

void OW_NAMESPACE::LifecycleIndicationPoller::addPollOp PollOp  op  ) 
 

Definition at line 68 of file OW_LifecycleIndicationPoller.cpp.

References m_guard, m_pollCreation, m_pollDeletion, m_pollModification, POLL_FOR_INSTANCE_CREATION, POLL_FOR_INSTANCE_DELETION, and POLL_FOR_INSTANCE_MODIFICATION.

Int32 OW_NAMESPACE::LifecycleIndicationPoller::getInitialPollingInterval const ProviderEnvironmentIFCRef env  )  [virtual]
 

Returns:
The amount of seconds before the first call to the poll method. If this method returns zero, then the poll method is never called.

Implements OW_NAMESPACE::CppPolledProviderIFC.

Definition at line 147 of file OW_LifecycleIndicationPoller.cpp.

UInt32 OW_NAMESPACE::LifecycleIndicationPoller::getPollInterval  )  const [private]
 

Definition at line 122 of file OW_LifecycleIndicationPoller.cpp.

References m_guard, and m_pollInterval.

Int32 OW_NAMESPACE::LifecycleIndicationPoller::poll const ProviderEnvironmentIFCRef env  )  [virtual]
 

Called by the CIMOM to give this CppPolledProviderIFC to opportunity to export indications if needed.

Parameters:
lch A local CIMOM handle the provider can use to export indications if needed.
Returns:
How many seconds before the next call to the poll method. If this method returns -1 then the last polling interval will be used. If it returns 0 then the poll method will never be called again.

Implements OW_NAMESPACE::CppPolledProviderIFC.

Definition at line 167 of file OW_LifecycleIndicationPoller.cpp.

References OW_NAMESPACE::Array< T >::begin(), OW_NAMESPACE::COMPONENT_NAME, OW_NAMESPACE::WBEMFlags::E_INCLUDE_CLASS_ORIGIN, OW_NAMESPACE::WBEMFlags::E_INCLUDE_QUALIFIERS, OW_NAMESPACE::WBEMFlags::E_NOT_LOCAL_ONLY, OW_NAMESPACE::WBEMFlags::E_SHALLOW, OW_NAMESPACE::Array< T >::end(), env, OW_NAMESPACE::DateTime::getCurrent(), hdl, logger, m_classname, m_initializedInstances, m_ns, m_pollCreation, m_pollDeletion, m_pollModification, m_prevInsts, OW_LOG_DEBUG, OW_LOG_ERROR, OW_NAMESPACE::CIMInstance::setClassName(), OW_NAMESPACE::CIMInstance::setProperty(), OW_NAMESPACE::Array< T >::size(), OW_NAMESPACE::CIMName::toString(), and willPoll().

bool OW_NAMESPACE::LifecycleIndicationPoller::removePollOp PollOp  op  ) 
 

Definition at line 87 of file OW_LifecycleIndicationPoller.cpp.

References m_guard, m_pollCreation, m_pollDeletion, m_pollModification, POLL_FOR_INSTANCE_CREATION, POLL_FOR_INSTANCE_DELETION, POLL_FOR_INSTANCE_MODIFICATION, and willPoll().

bool OW_NAMESPACE::LifecycleIndicationPoller::willPoll  )  const
 

Definition at line 106 of file OW_LifecycleIndicationPoller.cpp.

References m_guard, m_pollCreation, m_pollDeletion, and m_pollModification.

Referenced by poll(), and removePollOp().


Member Data Documentation

CIMName OW_NAMESPACE::LifecycleIndicationPoller::m_classname [private]
 

Definition at line 76 of file OW_LifecycleIndicationPoller.hpp.

Referenced by poll().

Mutex OW_NAMESPACE::LifecycleIndicationPoller::m_guard [mutable, private]
 

Definition at line 81 of file OW_LifecycleIndicationPoller.hpp.

Referenced by addPollInterval(), addPollOp(), getPollInterval(), removePollOp(), and willPoll().

bool OW_NAMESPACE::LifecycleIndicationPoller::m_initializedInstances [private]
 

Definition at line 83 of file OW_LifecycleIndicationPoller.hpp.

Referenced by poll().

String OW_NAMESPACE::LifecycleIndicationPoller::m_ns [private]
 

Definition at line 75 of file OW_LifecycleIndicationPoller.hpp.

Referenced by poll().

UInt32 OW_NAMESPACE::LifecycleIndicationPoller::m_pollCreation [private]
 

Definition at line 78 of file OW_LifecycleIndicationPoller.hpp.

Referenced by addPollOp(), poll(), removePollOp(), and willPoll().

UInt32 OW_NAMESPACE::LifecycleIndicationPoller::m_pollDeletion [private]
 

Definition at line 80 of file OW_LifecycleIndicationPoller.hpp.

Referenced by addPollOp(), poll(), removePollOp(), and willPoll().

UInt32 OW_NAMESPACE::LifecycleIndicationPoller::m_pollInterval [private]
 

Definition at line 77 of file OW_LifecycleIndicationPoller.hpp.

Referenced by addPollInterval(), and getPollInterval().

UInt32 OW_NAMESPACE::LifecycleIndicationPoller::m_pollModification [private]
 

Definition at line 79 of file OW_LifecycleIndicationPoller.hpp.

Referenced by addPollOp(), poll(), removePollOp(), and willPoll().

CIMInstanceArray OW_NAMESPACE::LifecycleIndicationPoller::m_prevInsts [private]
 

Definition at line 82 of file OW_LifecycleIndicationPoller.hpp.

Referenced by poll().


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