#include <OW_ProviderAgentCIMOMHandle.hpp>
Inheritance diagram for OW_NAMESPACE::ProviderAgentCIMOMHandle:
Public Member Functions | |
ProviderAgentCIMOMHandle (const Map< String, CppProviderBaseIFCRef > &assocProvs, const Map< String, CppProviderBaseIFCRef > &instProvs, const Map< String, CppProviderBaseIFCRef > &secondaryInstProvs, const Map< String, CppProviderBaseIFCRef > &methodProvs, Cache< CIMClass > &cimClasses, const ProviderEnvironmentIFCRef &env, ProviderAgentEnvironment::EClassRetrievalFlag classRetrieval, const ProviderAgentLockerIFCRef &locker) | |
virtual CIMInstance | getInstance (const String &ns, const CIMObjectPath &instanceName, WBEMFlags::ELocalOnlyFlag localOnly=WBEMFlags::E_NOT_LOCAL_ONLY, WBEMFlags::EIncludeQualifiersFlag includeQualifiers=WBEMFlags::E_EXCLUDE_QUALIFIERS, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin=WBEMFlags::E_EXCLUDE_CLASS_ORIGIN, const StringArray *propertyList=0) |
Gets the CIM instance for the specified CIM object path. | |
virtual void | enumQualifierTypes (const String &ns, CIMQualifierTypeResultHandlerIFC &result) |
Enumerates the qualifiers defined in a namespace. | |
virtual CIMValue | invokeMethod (const String &ns, const CIMObjectPath &path, const String &methodName, const CIMParamValueArray &inParams, CIMParamValueArray &outParams) |
Executes the specified method on the specified object. | |
virtual CIMQualifierType | getQualifierType (const String &ns, const String &qualifierName) |
Gets the CIM qualifier type specified in the CIM object path. | |
virtual void | setQualifierType (const String &ns, const CIMQualifierType &qualifierType) |
Updates the specified CIM qualifier type in the specified namespace if it exists. | |
virtual void | deleteQualifierType (const String &ns, const String &qualName) |
Deletes a CIM qualfier type. | |
virtual void | createClass (const String &ns, const CIMClass &cimClass) |
Adds the CIM class to the specified namespace. | |
virtual void | deleteClass (const String &ns, const String &className) |
Deletes the CIM class specified by className from namespace ns. | |
virtual void | modifyClass (const String &ns, const CIMClass &cimClass) |
Updates the CIM class within the specified namespace. | |
virtual void | deleteInstance (const String &ns, const CIMObjectPath &path) |
Deletes the CIM instance specified by path from namespace ns. | |
virtual void | setProperty (const String &ns, const CIMObjectPath &instanceName, const String &propertyName, const CIMValue &newValue) |
Set the specified CIM instance property. | |
virtual void | modifyInstance (const String &ns, const CIMInstance &modifiedInstance, WBEMFlags::EIncludeQualifiersFlag includeQualifiers=WBEMFlags::E_INCLUDE_QUALIFIERS, const StringArray *propertyList=0) |
Update the specified CIM instance within the specified namespace. | |
virtual CIMObjectPath | createInstance (const String &ns, const CIMInstance &instance) |
Add the specified CIM instance to the specified namespace. | |
virtual CIMValue | getProperty (const String &ns, const CIMObjectPath &instanceName, const String &propertyName) |
Get the specified CIM instance property. | |
virtual void | associatorNames (const String &ns, const CIMObjectPath &objectName, CIMObjectPathResultHandlerIFC &result, const String &assocClass=String(), const String &resultClass=String(), const String &role=String(), const String &resultRole=String()) |
This method is used to enumerate the names of CIM Objects (Classes or Instances) that are associated to a particular CIM Object. | |
virtual void | associatorsClasses (const String &ns, const CIMObjectPath &path, CIMClassResultHandlerIFC &result, const String &assocClass=String(), const String &resultClass=String(), const String &role=String(), const String &resultRole=String(), WBEMFlags::EIncludeQualifiersFlag includeQualifiers=WBEMFlags::E_EXCLUDE_QUALIFIERS, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin=WBEMFlags::E_EXCLUDE_CLASS_ORIGIN, const StringArray *propertyList=0) |
This operation is used to enumerate CIMClasses that are associated to a particular source CIM Object. | |
virtual void | associators (const String &ns, const CIMObjectPath &path, CIMInstanceResultHandlerIFC &result, const String &assocClass=String(), const String &resultClass=String(), const String &role=String(), const String &resultRole=String(), WBEMFlags::EIncludeQualifiersFlag includeQualifiers=WBEMFlags::E_EXCLUDE_QUALIFIERS, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin=WBEMFlags::E_EXCLUDE_CLASS_ORIGIN, const StringArray *propertyList=0) |
This operation is used to enumerate CIM Objects (Classes or Instances) that are associated to a particular source CIM Object. | |
virtual void | referenceNames (const String &ns, const CIMObjectPath &path, CIMObjectPathResultHandlerIFC &result, const String &resultClass=String(), const String &role=String()) |
This operation is used to enumerate the association objects that refer to a particular target CIM Object (Class or Instance). | |
virtual void | references (const String &ns, const CIMObjectPath &path, CIMInstanceResultHandlerIFC &result, const String &resultClass=String(), const String &role=String(), WBEMFlags::EIncludeQualifiersFlag includeQualifiers=WBEMFlags::E_EXCLUDE_QUALIFIERS, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin=WBEMFlags::E_EXCLUDE_CLASS_ORIGIN, const StringArray *propertyList=0) |
This operation is used to enumerate the association objects that refer to a particular target CIM Object (Class or Instance). | |
virtual void | referencesClasses (const String &ns, const CIMObjectPath &path, CIMClassResultHandlerIFC &result, const String &resultClass=String(), const String &role=String(), WBEMFlags::EIncludeQualifiersFlag includeQualifiers=WBEMFlags::E_EXCLUDE_QUALIFIERS, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin=WBEMFlags::E_EXCLUDE_CLASS_ORIGIN, const StringArray *propertyList=0) |
This operation is used to enumerate the association objects that refer to a particular target CIM Class. | |
virtual void | close () |
Close the connetion to the CIMOM. | |
virtual void | enumClassNames (const String &ns, const String &className, StringResultHandlerIFC &result, WBEMFlags::EDeepFlag deep=WBEMFlags::E_DEEP) |
Enumerates the child classes of className. | |
virtual void | enumClass (const String &ns, const String &className, CIMClassResultHandlerIFC &result, WBEMFlags::EDeepFlag deep=WBEMFlags::E_SHALLOW, WBEMFlags::ELocalOnlyFlag localOnly=WBEMFlags::E_NOT_LOCAL_ONLY, WBEMFlags::EIncludeQualifiersFlag includeQualifiers=WBEMFlags::E_INCLUDE_QUALIFIERS, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin=WBEMFlags::E_INCLUDE_CLASS_ORIGIN) |
Enumerates the class specified by the CIMObjectPath. | |
virtual void | enumInstances (const String &ns, const String &className, CIMInstanceResultHandlerIFC &result, WBEMFlags::EDeepFlag deep=WBEMFlags::E_DEEP, WBEMFlags::ELocalOnlyFlag localOnly=WBEMFlags::E_NOT_LOCAL_ONLY, WBEMFlags::EIncludeQualifiersFlag includeQualifiers=WBEMFlags::E_EXCLUDE_QUALIFIERS, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin=WBEMFlags::E_EXCLUDE_CLASS_ORIGIN, const StringArray *propertyList=0) |
Gathers all instances (the whole instance and not just the names) belonging to the class specified in the path. | |
virtual void | enumInstanceNames (const String &ns, const String &className, CIMObjectPathResultHandlerIFC &result) |
Gathers all instance names belonging to the class specified in the path. | |
virtual CIMClass | getClass (const String &ns, const String &className, WBEMFlags::ELocalOnlyFlag localOnly=WBEMFlags::E_NOT_LOCAL_ONLY, WBEMFlags::EIncludeQualifiersFlag includeQualifiers=WBEMFlags::E_INCLUDE_QUALIFIERS, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin=WBEMFlags::E_INCLUDE_CLASS_ORIGIN, const StringArray *propertyList=0) |
Gets the CIM class for the specified CIM object path. | |
virtual void | execQuery (const String &ns, CIMInstanceResultHandlerIFC &result, const String &query, const String &queryLanguage) |
Executes a query to retrieve or modify objects. | |
Private Member Functions | |
CppInstanceProviderIFC * | getInstanceProvider (const String &ns, const String &className) const |
CppSecondaryInstanceProviderIFC * | getSecondaryInstanceProvider (const String &ns, const String &className) const |
CppAssociatorProviderIFC * | getAssociatorProvider (const String &ns, const String &className) const |
CppMethodProviderIFC * | getMethodProvider (const String &ns, const String &className, const String &methodName) const |
CIMClass | helperGetClass (const String &ns, const String &className) |
Private Attributes | |
Map< String, CppProviderBaseIFCRef > | m_assocProvs |
Map< String, CppProviderBaseIFCRef > | m_instProvs |
Map< String, CppProviderBaseIFCRef > | m_secondaryInstProvs |
Map< String, CppProviderBaseIFCRef > | m_methodProvs |
Cache< CIMClass > & | m_cimClasses |
ProviderEnvironmentIFCRef | m_PAEnv |
ProviderAgentLockerIFCRef | m_locker |
ProviderAgentEnvironment::EClassRetrievalFlag | m_classRetrieval |
Classes | |
class | PAReadLock |
class | PAWriteLock |
Definition at line 57 of file OW_ProviderAgentCIMOMHandle.hpp.
|
Definition at line 63 of file OW_ProviderAgentCIMOMHandle.cpp. |
|
This method is used to enumerate the names of CIM Objects (Classes or Instances) that are associated to a particular CIM Object.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 310 of file OW_ProviderAgentCIMOMHandle.cpp. References OW_NAMESPACE::CppAssociatorProviderIFC::associatorNames(), getAssociatorProvider(), m_locker, m_PAEnv, OW_NAMESPACE::CIMException::NOT_SUPPORTED, ns, OW_THROWCIM, and result. |
|
This operation is used to enumerate CIM Objects (Classes or Instances) that are associated to a particular source CIM Object.
Clients SHOULD NOT explicitly specify properties in the PropertyList parameter unless they have specified a non-empty ("") value for the ResultClass parameter.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 348 of file OW_ProviderAgentCIMOMHandle.cpp. References OW_NAMESPACE::CppAssociatorProviderIFC::associators(), getAssociatorProvider(), m_locker, m_PAEnv, OW_NAMESPACE::CIMException::NOT_SUPPORTED, ns, OW_THROWCIM, propertyList, and result. |
|
This operation is used to enumerate CIMClasses that are associated to a particular source CIM Object.
Clients SHOULD NOT explicitly specify properties in the PropertyList parameter unless they have specified a non-empty ("") value for the ResultClass parameter.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 332 of file OW_ProviderAgentCIMOMHandle.cpp. References OW_NAMESPACE::CIMException::NOT_SUPPORTED, and OW_THROWCIM. |
|
Close the connetion to the CIMOM. This will free resources used for the client session. The destructor will call close(). Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 433 of file OW_ProviderAgentCIMOMHandle.cpp. |
|
Adds the CIM class to the specified namespace.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 184 of file OW_ProviderAgentCIMOMHandle.cpp. References OW_NAMESPACE::CIMException::NOT_SUPPORTED, and OW_THROWCIM. |
|
Add the specified CIM instance to the specified namespace.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 274 of file OW_ProviderAgentCIMOMHandle.cpp. References OW_NAMESPACE::CppInstanceProviderIFC::createInstance(), OW_NAMESPACE::CIMInstance::getClassName(), getInstanceProvider(), getSecondaryInstanceProvider(), m_locker, m_PAEnv, OW_NAMESPACE::CIMException::NOT_SUPPORTED, ns, and OW_THROWCIM. |
|
Deletes the CIM class specified by className from namespace ns.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 191 of file OW_ProviderAgentCIMOMHandle.cpp. References OW_NAMESPACE::CIMException::NOT_SUPPORTED, and OW_THROWCIM. |
|
Deletes the CIM instance specified by path from namespace ns.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 206 of file OW_ProviderAgentCIMOMHandle.cpp. References OW_NAMESPACE::CppInstanceProviderIFC::deleteInstance(), OW_NAMESPACE::CIMObjectPath::getClassName(), getInstanceProvider(), getSecondaryInstanceProvider(), m_locker, m_PAEnv, OW_NAMESPACE::CIMException::NOT_SUPPORTED, ns, and OW_THROWCIM. |
|
Deletes a CIM qualfier type.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 177 of file OW_ProviderAgentCIMOMHandle.cpp. References OW_NAMESPACE::CIMException::NOT_SUPPORTED, and OW_THROWCIM. |
|
Enumerates the class specified by the CIMObjectPath.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 449 of file OW_ProviderAgentCIMOMHandle.cpp. References OW_NAMESPACE::CIMException::NOT_SUPPORTED, and OW_THROWCIM. |
|
Enumerates the child classes of className.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 439 of file OW_ProviderAgentCIMOMHandle.cpp. References OW_NAMESPACE::CIMException::NOT_SUPPORTED, and OW_THROWCIM. |
|
Gathers all instance names belonging to the class specified in the path. This could include instances of all the classes in the specified class' hierarchy.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 487 of file OW_ProviderAgentCIMOMHandle.cpp. References className, OW_NAMESPACE::CppInstanceProviderIFC::enumInstanceNames(), getInstanceProvider(), helperGetClass(), m_locker, m_PAEnv, OW_NAMESPACE::CIMException::NOT_SUPPORTED, ns, OW_THROWCIM, and result. |
|
Gathers all instances (the whole instance and not just the names) belonging to the class specified in the path. This could include instances of all the classes in the specified class' hierarchy.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 462 of file OW_ProviderAgentCIMOMHandle.cpp. References className, OW_NAMESPACE::CppInstanceProviderIFC::enumInstances(), getInstanceProvider(), helperGetClass(), m_locker, m_PAEnv, OW_NAMESPACE::CIMException::NOT_SUPPORTED, ns, OW_THROWCIM, propertyList, and result. |
|
Enumerates the qualifiers defined in a namespace.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 135 of file OW_ProviderAgentCIMOMHandle.cpp. References OW_NAMESPACE::CIMException::NOT_SUPPORTED, and OW_THROWCIM. |
|
Executes a query to retrieve or modify objects.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 517 of file OW_ProviderAgentCIMOMHandle.cpp. References OW_NAMESPACE::CIMException::NOT_SUPPORTED, and OW_THROWCIM. |
|
Definition at line 619 of file OW_ProviderAgentCIMOMHandle.cpp. References className, OW_NAMESPACE::Map< Key, T, Compare >::end(), OW_NAMESPACE::Map< Key, T, Compare >::find(), m_assocProvs, ns, OW_ASSERT, and OW_NAMESPACE::String::toLowerCase(). Referenced by associatorNames(), associators(), referenceNames(), and references(). |
|
Gets the CIM class for the specified CIM object path.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 505 of file OW_ProviderAgentCIMOMHandle.cpp. References OW_NAMESPACE::CIMException::NOT_SUPPORTED, and OW_THROWCIM. |
|
Gets the CIM instance for the specified CIM object path.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 85 of file OW_ProviderAgentCIMOMHandle.cpp. References OW_NAMESPACE::CIMNULL, OW_NAMESPACE::WBEMFlags::E_SHALLOW, OW_NAMESPACE::CIMObjectPath::getClassName(), OW_NAMESPACE::CppInstanceProviderIFC::getInstance(), getInstanceProvider(), OW_NAMESPACE::CIMObjectPath::getKeys(), getSecondaryInstanceProvider(), helperGetClass(), m_locker, m_PAEnv, OW_NAMESPACE::CIMException::NOT_SUPPORTED, ns, OW_ASSERT, OW_THROWCIM, propertyList, OW_NAMESPACE::Array< T >::push_back(), and OW_NAMESPACE::Array< T >::size(). |
|
Definition at line 550 of file OW_ProviderAgentCIMOMHandle.cpp. References className, OW_NAMESPACE::Map< Key, T, Compare >::end(), OW_NAMESPACE::Map< Key, T, Compare >::find(), m_instProvs, ns, OW_ASSERT, and OW_NAMESPACE::String::toLowerCase(). Referenced by createInstance(), deleteInstance(), enumInstanceNames(), enumInstances(), getInstance(), and modifyInstance(). |
|
Definition at line 654 of file OW_ProviderAgentCIMOMHandle.cpp. References className, OW_NAMESPACE::Map< Key, T, Compare >::end(), OW_NAMESPACE::Map< Key, T, Compare >::find(), m_methodProvs, ns, OW_ASSERT, and OW_NAMESPACE::String::toLowerCase(). Referenced by invokeMethod(). |
|
Get the specified CIM instance property.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 299 of file OW_ProviderAgentCIMOMHandle.cpp. References OW_NAMESPACE::CIMException::NOT_SUPPORTED, and OW_THROWCIM. |
|
Gets the CIM qualifier type specified in the CIM object path.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 163 of file OW_ProviderAgentCIMOMHandle.cpp. References OW_NAMESPACE::CIMException::NOT_SUPPORTED, and OW_THROWCIM. |
|
Definition at line 584 of file OW_ProviderAgentCIMOMHandle.cpp. References className, OW_NAMESPACE::Map< Key, T, Compare >::end(), OW_NAMESPACE::Map< Key, T, Compare >::find(), m_secondaryInstProvs, ns, OW_ASSERT, and OW_NAMESPACE::String::toLowerCase(). Referenced by createInstance(), deleteInstance(), getInstance(), and modifyInstance(). |
|
Definition at line 690 of file OW_ProviderAgentCIMOMHandle.cpp. References OW_NAMESPACE::Cache< T >::addToCache(), ch, OW_NAMESPACE::CIMNULL, className, OW_NAMESPACE::ProviderAgentEnvironment::E_RETRIEVE_CLASSES, OW_NAMESPACE::Cache< T >::getFromCache(), m_cimClasses, m_classRetrieval, m_PAEnv, ns, and OW_NAMESPACE::String::toLowerCase(). Referenced by enumInstanceNames(), enumInstances(), getInstance(), and modifyInstance(). |
|
Executes the specified method on the specified object. A method is a declaration containing the method name, return type, and parameters in the method.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 143 of file OW_ProviderAgentCIMOMHandle.cpp. References OW_NAMESPACE::CIMObjectPath::getClassName(), getMethodProvider(), OW_NAMESPACE::CppMethodProviderIFC::invokeMethod(), m_locker, m_PAEnv, OW_NAMESPACE::CIMException::NOT_SUPPORTED, ns, outParams, and OW_THROWCIM. |
|
Updates the CIM class within the specified namespace.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 198 of file OW_ProviderAgentCIMOMHandle.cpp. References OW_NAMESPACE::CIMException::NOT_SUPPORTED, and OW_THROWCIM. |
|
Update the specified CIM instance within the specified namespace.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 241 of file OW_ProviderAgentCIMOMHandle.cpp. References OW_NAMESPACE::CIMNULL, OW_NAMESPACE::CIMInstance::getClassName(), getInstanceProvider(), getSecondaryInstanceProvider(), helperGetClass(), m_locker, m_PAEnv, OW_NAMESPACE::CppInstanceProviderIFC::modifyInstance(), OW_NAMESPACE::CIMException::NOT_SUPPORTED, ns, OW_THROWCIM, and propertyList. |
|
This operation is used to enumerate the association objects that refer to a particular target CIM Object (Class or Instance).
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 375 of file OW_ProviderAgentCIMOMHandle.cpp. References getAssociatorProvider(), m_locker, m_PAEnv, OW_NAMESPACE::CIMException::NOT_SUPPORTED, ns, OW_THROWCIM, OW_NAMESPACE::CppAssociatorProviderIFC::referenceNames(), and result. |
|
This operation is used to enumerate the association objects that refer to a particular target CIM Object (Class or Instance).
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 394 of file OW_ProviderAgentCIMOMHandle.cpp. References getAssociatorProvider(), m_locker, m_PAEnv, OW_NAMESPACE::CIMException::NOT_SUPPORTED, ns, OW_THROWCIM, propertyList, OW_NAMESPACE::CppAssociatorProviderIFC::references(), and result. |
|
This operation is used to enumerate the association objects that refer to a particular target CIM Class.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 419 of file OW_ProviderAgentCIMOMHandle.cpp. References OW_NAMESPACE::CIMException::NOT_SUPPORTED, and OW_THROWCIM. |
|
Set the specified CIM instance property.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 229 of file OW_ProviderAgentCIMOMHandle.cpp. References OW_NAMESPACE::CIMException::NOT_SUPPORTED, and OW_THROWCIM. |
|
Updates the specified CIM qualifier type in the specified namespace if it exists. If it doesn't exist, it will be added.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 170 of file OW_ProviderAgentCIMOMHandle.cpp. References OW_NAMESPACE::CIMException::NOT_SUPPORTED, and OW_THROWCIM. |
|
Definition at line 708 of file OW_ProviderAgentCIMOMHandle.hpp. Referenced by getAssociatorProvider(). |
|
Definition at line 712 of file OW_ProviderAgentCIMOMHandle.hpp. Referenced by helperGetClass(). |
|
Definition at line 715 of file OW_ProviderAgentCIMOMHandle.hpp. Referenced by helperGetClass(). |
|
Definition at line 709 of file OW_ProviderAgentCIMOMHandle.hpp. Referenced by getInstanceProvider(). |
|
Definition at line 714 of file OW_ProviderAgentCIMOMHandle.hpp. Referenced by associatorNames(), associators(), createInstance(), deleteInstance(), enumInstanceNames(), enumInstances(), getInstance(), invokeMethod(), modifyInstance(), referenceNames(), and references(). |
|
Definition at line 711 of file OW_ProviderAgentCIMOMHandle.hpp. Referenced by getMethodProvider(). |
|
Definition at line 713 of file OW_ProviderAgentCIMOMHandle.hpp. Referenced by associatorNames(), associators(), createInstance(), deleteInstance(), enumInstanceNames(), enumInstances(), getInstance(), helperGetClass(), invokeMethod(), modifyInstance(), referenceNames(), and references(). |
|
Definition at line 710 of file OW_ProviderAgentCIMOMHandle.hpp. Referenced by getSecondaryInstanceProvider(). |