OW_NAMESPACE::CppIndicationExportXMLHTTPProvider Class Reference

#include <OW_CppIndicationExportXMLHTTPProvider.hpp>

Inheritance diagram for OW_NAMESPACE::CppIndicationExportXMLHTTPProvider:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CppIndicationExportXMLHTTPProvider ()
 ~CppIndicationExportXMLHTTPProvider ()
virtual void exportIndication (const ProviderEnvironmentIFCRef &env, const String &ns, const CIMInstance &indHandlerInst, const CIMInstance &indicationInst)
 Export the given indication.
virtual StringArray getHandlerClassNames ()
virtual void initialize (const ProviderEnvironmentIFCRef &)
 Called by the CIMOM when the provider is initialized.
virtual void doCooperativeCancel ()
 This function is available for subclasses to override if they wish to be notified when a cooperative cancel is being invoked on the thread.

Private Attributes

std::list< HTTPClientRefm_httpClients
Mutex m_guard
bool m_cancelled

Detailed Description

Definition at line 46 of file OW_CppIndicationExportXMLHTTPProvider.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::CppIndicationExportXMLHTTPProvider::CppIndicationExportXMLHTTPProvider  ) 
 

Definition at line 79 of file OW_CppIndicationExportXMLHTTPProvider.cpp.

OW_NAMESPACE::CppIndicationExportXMLHTTPProvider::~CppIndicationExportXMLHTTPProvider  ) 
 

Definition at line 85 of file OW_CppIndicationExportXMLHTTPProvider.cpp.


Member Function Documentation

void OW_NAMESPACE::CppIndicationExportXMLHTTPProvider::doCooperativeCancel  )  [virtual]
 

This function is available for subclasses to override if they wish to be notified when a cooperative cancel is being invoked on the thread.

Note that this function will be invoked in a separate thread. For instance, a thread may use this function to write to a pipe or socket, if Thread::run() is blocked in select(), it can be unblocked and instructed to exit.

It is also possible for an individual thread to override the cancellation request, if it knows that cancellation at this time may crash the system or cause a deadlock. To do this, the thread should throw an CancellationDeniedException. Note that threads are usually only cancelled in the event of a system shutdown or restart, so a thread should make a best effort to actually shutdown.

Exceptions:
CancellationDeniedException 

Reimplemented from OW_NAMESPACE::CppIndicationExportProviderIFC.

Definition at line 161 of file OW_CppIndicationExportXMLHTTPProvider.cpp.

References m_cancelled, m_guard, and m_httpClients.

void OW_NAMESPACE::CppIndicationExportXMLHTTPProvider::exportIndication const ProviderEnvironmentIFCRef env,
const String ns,
const CIMInstance indHandlerInst,
const CIMInstance indicationInst
[virtual]
 

Export the given indication.

Implements OW_NAMESPACE::CppIndicationExportProviderIFC.

Definition at line 92 of file OW_CppIndicationExportXMLHTTPProvider.cpp.

References OW_NAMESPACE::URL::CIMXML_WBEMS, OW_NAMESPACE::CIMInstance::clone(), OW_NAMESPACE::COMPONENT_NAME, OW_NAMESPACE::WBEMFlags::E_EXCLUDE_QUALIFIERS, OW_NAMESPACE::WBEMFlags::E_INCLUDE_CLASS_ORIGIN, OW_NAMESPACE::WBEMFlags::E_NOT_LOCAL_ONLY, env, OW_NAMESPACE::String::equals(), OW_NAMESPACE::String::equalsIgnoreCase(), OW_NAMESPACE::CIMValue::get(), OW_NAMESPACE::CIMInstance::getClassName(), OW_NAMESPACE::CIMInstance::getProperty(), OW_NAMESPACE::CIMProperty::getValue(), logger, OW_LOG_DEBUG, OW_NAMESPACE::URL::scheme, OW_NAMESPACE::URL::toString(), OW_NAMESPACE::String::toString(), and OW_NAMESPACE::CIMInstance::toString().

StringArray OW_NAMESPACE::CppIndicationExportXMLHTTPProvider::getHandlerClassNames  )  [virtual]
 

Returns:
The class names of all the CIM_CppIndicationHandler sub-classes this IndicationExportProvider handles.

Implements OW_NAMESPACE::CppIndicationExportProviderIFC.

Definition at line 147 of file OW_CppIndicationExportXMLHTTPProvider.cpp.

References OW_NAMESPACE::Array< T >::append().

virtual void OW_NAMESPACE::CppIndicationExportXMLHTTPProvider::initialize const ProviderEnvironmentIFCRef  )  [inline, virtual]
 

Called by the CIMOM when the provider is initialized.

Parameters:
hdl The handle to the cimom
Exceptions:
CIMException 

Reimplemented from OW_NAMESPACE::CppProviderBaseIFC.

Definition at line 69 of file OW_CppIndicationExportXMLHTTPProvider.hpp.


Member Data Documentation

bool OW_NAMESPACE::CppIndicationExportXMLHTTPProvider::m_cancelled [private]
 

Definition at line 77 of file OW_CppIndicationExportXMLHTTPProvider.hpp.

Referenced by doCooperativeCancel().

Mutex OW_NAMESPACE::CppIndicationExportXMLHTTPProvider::m_guard [private]
 

Definition at line 76 of file OW_CppIndicationExportXMLHTTPProvider.hpp.

Referenced by doCooperativeCancel().

std::list<HTTPClientRef> OW_NAMESPACE::CppIndicationExportXMLHTTPProvider::m_httpClients [private]
 

Definition at line 75 of file OW_CppIndicationExportXMLHTTPProvider.hpp.

Referenced by doCooperativeCancel().


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