OW_NAMESPACE::RemoteSecondaryInstanceProvider Class Reference

#include <OW_RemoteSecondaryInstanceProvider.hpp>

Inheritance diagram for OW_NAMESPACE::RemoteSecondaryInstanceProvider:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RemoteSecondaryInstanceProvider (const ProviderEnvironmentIFCRef &env, const String &url, const ClientCIMOMHandleConnectionPoolRef &pool, bool alwaysSendCredentials, bool useConnectionCredentials)
virtual ~RemoteSecondaryInstanceProvider ()
virtual void modifyInstance (const ProviderEnvironmentIFCRef &env, const String &ns, const CIMInstance &modifiedInstance, const CIMInstance &previousInstance, WBEMFlags::EIncludeQualifiersFlag includeQualifiers, const StringArray *propertyList, const CIMClass &theClass)
 This method is called when the instance specified by previousInstance is modified.
virtual void deleteInstance (const ProviderEnvironmentIFCRef &env, const String &ns, const CIMObjectPath &cop)
 This method is called when the instance specified by cop is deleted.
virtual void createInstance (const ProviderEnvironmentIFCRef &env, const String &ns, const CIMInstance &cimInstance)
 This method is called when the instance specified by cimInstance is created.
virtual void filterInstances (const ProviderEnvironmentIFCRef &env, const String &ns, const String &className, CIMInstanceArray &instances, WBEMFlags::ELocalOnlyFlag localOnly, WBEMFlags::EDeepFlag deep, WBEMFlags::EIncludeQualifiersFlag includeQualifiers, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin, const StringArray *propertyList, const CIMClass &requestedClass, const CIMClass &cimClass)
 This method allows the provider to modify instances generated by the enumInstances() or getInstance() member functions of an instance provider.

Private Attributes

ClientCIMOMHandleConnectionPoolRef m_pool
String m_url
bool m_alwaysSendCredentials
bool m_useConnectionCredentials

Detailed Description

Definition at line 47 of file OW_RemoteSecondaryInstanceProvider.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::RemoteSecondaryInstanceProvider::RemoteSecondaryInstanceProvider const ProviderEnvironmentIFCRef env,
const String url,
const ClientCIMOMHandleConnectionPoolRef pool,
bool  alwaysSendCredentials,
bool  useConnectionCredentials
 

Definition at line 65 of file OW_RemoteSecondaryInstanceProvider.cpp.

OW_NAMESPACE::RemoteSecondaryInstanceProvider::~RemoteSecondaryInstanceProvider  )  [virtual]
 

Definition at line 75 of file OW_RemoteSecondaryInstanceProvider.cpp.


Member Function Documentation

void OW_NAMESPACE::RemoteSecondaryInstanceProvider::createInstance const ProviderEnvironmentIFCRef env,
const String ns,
const CIMInstance cimInstance
[virtual]
 

This method is called when the instance specified by cimInstance is created.

The provider cannot override this operation, since it will have been already processed by the primary instance provider. Throwing an exception will cause the error to be returned to the CIM Client, but the work that other providers may have done will not be undone.

Parameters:
env The provider's interface to it's environment.
ns The namespace
cimInstance The instance to be set.

Implements OW_NAMESPACE::SecondaryInstanceProviderIFC.

Definition at line 215 of file OW_RemoteSecondaryInstanceProvider.cpp.

References OW_NAMESPACE::COMPONENT_NAME, env, OW_NAMESPACE::RemoteProviderUtils::getRemoteClientCIMOMHandle(), hdl, m_alwaysSendCredentials, m_pool, m_url, m_useConnectionCredentials, ns, OW_LOG_DEBUG, OW_LOG_ERROR, and OW_LOG_INFO.

void OW_NAMESPACE::RemoteSecondaryInstanceProvider::deleteInstance const ProviderEnvironmentIFCRef env,
const String ns,
const CIMObjectPath cop
[virtual]
 

This method is called when the instance specified by cop is deleted.

The provider cannot override this operation, since it will have been already processed by the primary instance provider. Throwing an exception will cause the error to be returned to the CIM Client, but the work that other providers may have done will not be undone.

Parameters:
env The provider's interface to it's environment.
ns The namespace
cop The instance to be deleted

Implements OW_NAMESPACE::SecondaryInstanceProviderIFC.

Definition at line 114 of file OW_RemoteSecondaryInstanceProvider.cpp.

References OW_NAMESPACE::COMPONENT_NAME, cop, env, OW_NAMESPACE::RemoteProviderUtils::getRemoteClientCIMOMHandle(), hdl, m_alwaysSendCredentials, m_pool, m_url, m_useConnectionCredentials, ns, OW_LOG_DEBUG, OW_LOG_ERROR, and OW_LOG_INFO.

void OW_NAMESPACE::RemoteSecondaryInstanceProvider::filterInstances const ProviderEnvironmentIFCRef env,
const String ns,
const String className,
CIMInstanceArray instances,
WBEMFlags::ELocalOnlyFlag  localOnly,
WBEMFlags::EDeepFlag  deep,
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin,
const StringArray propertyList,
const CIMClass requestedClass,
const CIMClass cimClass
[virtual]
 

This method allows the provider to modify instances generated by the enumInstances() or getInstance() member functions of an instance provider.

Parameters:
env The provider's interface to it's environment.
ns The namespace
className The name of the requested class.
instances The instances the primary instance provider produced. This is an in/out parameter. The provider can modify instances to change what is returned to the CIM Client.
localOnly The value the CIM Client specified in the request. See CIM Operations over HTTP for a description of this parameter.
deep The value the CIM Client specified in the request. See CIM Operations over HTTP for a description of this parameter.
includeQualifiers The value the CIM Client specified in the request. See CIM Operations over HTTP for a description of this parameter.
includeClassOrigin The value the CIM Client specified in the request. See CIM Operations over HTTP for a description of this parameter.
propertyList The value the CIM Client specified in the request. See CIM Operations over HTTP for a description of this parameter.
requestedClass The class the client specified when calling EnumerateInstances. For GetInstance(), requestedClass == cimClass.
cimClass The class the provider is responsible for.
Exceptions:
CIMException to indicate error. The error will be returned to the CIM Client.

Implements OW_NAMESPACE::SecondaryInstanceProviderIFC.

Definition at line 146 of file OW_RemoteSecondaryInstanceProvider.cpp.

References cimClass, className, OW_NAMESPACE::COMPONENT_NAME, env, OW_NAMESPACE::CIMClass::getAllProperties(), OW_NAMESPACE::RemoteProviderUtils::getRemoteClientCIMOMHandle(), OW_NAMESPACE::CIMProperty::getValue(), hdl, i, m_alwaysSendCredentials, m_pool, m_url, m_useConnectionCredentials, ns, OW_LOG_DEBUG, propertyList, and OW_NAMESPACE::Array< T >::size().

void OW_NAMESPACE::RemoteSecondaryInstanceProvider::modifyInstance const ProviderEnvironmentIFCRef env,
const String ns,
const CIMInstance modifiedInstance,
const CIMInstance previousInstance,
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers,
const StringArray propertyList,
const CIMClass theClass
[virtual]
 

This method is called when the instance specified by previousInstance is modified.

The provider cannot override this operation, since it will have been already processed by the primary instance provider. Throwing an exception will cause the error to be returned to the CIM Client, but the work that other providers may have done will not be undone.

Parameters:
env The provider's interface to it's environment.
ns The namespace

Implements OW_NAMESPACE::SecondaryInstanceProviderIFC.

Definition at line 82 of file OW_RemoteSecondaryInstanceProvider.cpp.

References OW_NAMESPACE::COMPONENT_NAME, env, OW_NAMESPACE::RemoteProviderUtils::getRemoteClientCIMOMHandle(), hdl, m_alwaysSendCredentials, m_pool, m_url, m_useConnectionCredentials, ns, OW_LOG_DEBUG, OW_LOG_ERROR, OW_LOG_INFO, and propertyList.


Member Data Documentation

bool OW_NAMESPACE::RemoteSecondaryInstanceProvider::m_alwaysSendCredentials [private]
 

Definition at line 64 of file OW_RemoteSecondaryInstanceProvider.hpp.

Referenced by createInstance(), deleteInstance(), filterInstances(), and modifyInstance().

ClientCIMOMHandleConnectionPoolRef OW_NAMESPACE::RemoteSecondaryInstanceProvider::m_pool [private]
 

Definition at line 62 of file OW_RemoteSecondaryInstanceProvider.hpp.

Referenced by createInstance(), deleteInstance(), filterInstances(), and modifyInstance().

String OW_NAMESPACE::RemoteSecondaryInstanceProvider::m_url [private]
 

Definition at line 63 of file OW_RemoteSecondaryInstanceProvider.hpp.

Referenced by createInstance(), deleteInstance(), filterInstances(), and modifyInstance().

bool OW_NAMESPACE::RemoteSecondaryInstanceProvider::m_useConnectionCredentials [private]
 

Definition at line 65 of file OW_RemoteSecondaryInstanceProvider.hpp.

Referenced by createInstance(), deleteInstance(), filterInstances(), and modifyInstance().


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