Public Member Functions | |
void | initialize (const ProviderEnvironmentIFCRef &env) |
Called by the CIMOM when the provider is initialized. | |
virtual | ~OpenWBEM_ConfigSettingDataInstProv () |
virtual void | enumInstanceNames (const ProviderEnvironmentIFCRef &env, const String &ns, const String &className, CIMObjectPathResultHandlerIFC &result, const CIMClass &cimClass) |
This method enumerates all names of instances of the class which is specified in cop. | |
virtual CIMInstance | getInstance (const ProviderEnvironmentIFCRef &env, const String &ns, const CIMObjectPath &instanceName, WBEMFlags::ELocalOnlyFlag localOnly, WBEMFlags::EIncludeQualifiersFlag includeQualifiers, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin, const StringArray *propertyList, const CIMClass &cimClass) |
This method retrieves the instance specified in the object path. | |
virtual CIMObjectPath | createInstance (const ProviderEnvironmentIFCRef &env, const String &ns, const CIMInstance &cimInstance) |
This method creates the instance specified in the object path. | |
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 sets the instance specified in the object path. | |
virtual void | deleteInstance (const ProviderEnvironmentIFCRef &env, const String &ns, const CIMObjectPath &cop) |
This method deletes the instance specified in the object path. | |
virtual void | getInstanceProviderInfo (InstanceProviderInfo &info) |
A provider should override this method to report which classes in which namespaces it instruments. | |
virtual void | doReferences (const ProviderEnvironmentIFCRef &env, CIMInstanceResultHandlerIFC &result, const String &ns, const CIMObjectPath &objectName, const CIMClass &assocClass, const String &resultClass, const String &role, const String &resultRole) |
This method is invoked in order to do the Associators, AssociatorNames, References, and ReferenceNames operation as defined by the CIM operations over HTTP spec at http://www.dmtf.org/download/spec/xmls/CIM_HTTP_Mapping10.htm#SecAssociators This operation is used to enumerate CIM Instances of a particular Association class. | |
virtual void | getAssociatorProviderInfo (AssociatorProviderInfo &info) |
A provider should override this method to report which classes in which namespaces it instruments. | |
Private Types | |
typedef SortedVectorMap< String, ConfigData > | ConfigItemsMap |
Private Member Functions | |
String | makeID (const String &confName) |
bool | mapNeedsLoad (const String &filename) |
String | getConfigFile (const ProviderEnvironmentIFCRef &env) |
void | loadConfigMap (const ProviderEnvironmentIFCRef &env) |
Private Attributes | |
SortedVectorMap< String, ConfigData > | m_configItems |
time_t | m_fileMTime |
Classes | |
struct | ConfigData |
Definition at line 59 of file OW_provinstOpenWBEM_ConfigSettingData.cpp.
|
Definition at line 425 of file OW_provinstOpenWBEM_ConfigSettingData.cpp. |
|
Definition at line 72 of file OW_provinstOpenWBEM_ConfigSettingData.cpp. |
|
This method creates the instance specified in the object path. If the instance does exist an CIMException with ID CIM_ERR_ALREADY_EXISTS must be thrown. The parameter should be the instance name.
Implements OW_NAMESPACE::CppInstanceProviderIFC. Definition at line 163 of file OW_provinstOpenWBEM_ConfigSettingData.cpp. References env, ns, and OW_THROWCIMMSG. |
|
This method deletes the instance specified in the object path.
Implements OW_NAMESPACE::CppInstanceProviderIFC. Definition at line 326 of file OW_provinstOpenWBEM_ConfigSettingData.cpp. References cop, env, ns, and OW_THROWCIMMSG. |
|
This method is invoked in order to do the Associators, AssociatorNames, References, and ReferenceNames operation as defined by the CIM operations over HTTP spec at http://www.dmtf.org/download/spec/xmls/CIM_HTTP_Mapping10.htm#SecAssociators This operation is used to enumerate CIM Instances of a particular Association class.
Implements OW_NAMESPACE::CppSimpleAssociatorProviderIFC. Definition at line 345 of file OW_provinstOpenWBEM_ConfigSettingData.cpp. References OW_NAMESPACE::SortedVectorMap< Key, T, Compare >::begin(), OW_NAMESPACE::String::empty(), OW_NAMESPACE::SortedVectorMap< Key, T, Compare >::end(), OW_NAMESPACE::CIMObjectPath::getClassName(), OW_NAMESPACE::ResultHandlerIFC< T >::handle(), m_configItems, OW_NAMESPACE::CIMClass::newInstance(), ns, OW_THROWCIMMSG, result, OW_NAMESPACE::CIMObjectPath::setKeyValue(), OW_NAMESPACE::CIMInstance::setProperty(), and OW_NAMESPACE::String::toLowerCase(). |
|
This method enumerates all names of instances of the class which is specified in cop.
Implements OW_NAMESPACE::CppInstanceProviderIFC. Definition at line 77 of file OW_provinstOpenWBEM_ConfigSettingData.cpp. References OW_NAMESPACE::SortedVectorMap< Key, T, Compare >::begin(), cimClass, className, OW_NAMESPACE::SortedVectorMap< Key, T, Compare >::end(), env, getConfigFile(), OW_NAMESPACE::ResultHandlerIFC< T >::handle(), loadConfigMap(), m_configItems, makeID(), mapNeedsLoad(), ns, result, and OW_NAMESPACE::CIMObjectPath::setKeyValue(). |
|
A provider should override this method to report which classes in which namespaces it instruments. It should insert an entry for each class it is responsible for. The entry consists of the class name and an optional list of namespaces. If the namespace list is empty, all namespaces are implied. If the method does nothing, then the provider's class must have a provider qualifier that identifies the provider. This old behavior is deprecated and will be removed sometime in the future. This method has a default implementation that does nothing, to allow old providers to be migrated forward with little or no change, but once the old provider location method is removed, this member function will be pure virtual. Reimplemented from OW_NAMESPACE::CppAssociatorProviderIFC. Definition at line 408 of file OW_provinstOpenWBEM_ConfigSettingData.cpp. References OW_NAMESPACE::ProviderInfoBase< ClassInfoT >::addInstrumentedClass(). |
|
Definition at line 457 of file OW_provinstOpenWBEM_ConfigSettingData.cpp. References OW_NAMESPACE::String::empty(), env, and OW_THROWCIMMSG. Referenced by enumInstanceNames(). |
|
This method retrieves the instance specified in the object path.
Implements OW_NAMESPACE::CppInstanceProviderIFC. Definition at line 107 of file OW_provinstOpenWBEM_ConfigSettingData.cpp. References cimClass, env, OW_NAMESPACE::CIMObjectPath::getKeys(), OW_NAMESPACE::CIMObjectPath::getKeyValue(), OW_NAMESPACE::CIMValue::getType(), OW_NAMESPACE::CIMException::INVALID_PARAMETER, OW_NAMESPACE::CIMValue::isArray(), OW_NAMESPACE::CIMClass::newInstance(), ns, OW_THROWCIM, OW_NAMESPACE::CIMDataType::STRING, and OW_NAMESPACE::CIMInstance::updatePropertyValues(). |
|
A provider should override this method to report which classes in which namespaces it instruments. It should insert an entry for each class it is responsible for. The entry consists of the class name and an optional list of namespaces. If the namespace list is empty, all namespaces are implied. If the method does nothing, then the provider's class must have a provider qualifier that identifies the provider. This old behavior is deprecated and will be removed sometime in the future. This method has a default implementation that does nothing, to allow old providers to be migrated forward with little or no change, but once the old provider location method is removed, this member function will be pure virtual. Reimplemented from OW_NAMESPACE::CppInstanceProviderIFC. Definition at line 338 of file OW_provinstOpenWBEM_ConfigSettingData.cpp. References OW_NAMESPACE::ProviderInfoBase< ClassInfoT >::addInstrumentedClass(). |
|
Called by the CIMOM when the provider is initialized.
Reimplemented from OW_NAMESPACE::CppProviderBaseIFC. Definition at line 66 of file OW_provinstOpenWBEM_ConfigSettingData.cpp. References env, and loadConfigMap(). |
|
|
Definition at line 432 of file OW_provinstOpenWBEM_ConfigSettingData.cpp. Referenced by enumInstanceNames(). |
|
Definition at line 439 of file OW_provinstOpenWBEM_ConfigSettingData.cpp. References OW_NAMESPACE::String::c_str(), and OW_THROWCIMMSG. Referenced by enumInstanceNames(). |
|
This method sets the instance specified in the object path. If the instance does not exist an CIMException with ID CIM_ERR_NOT_FOUND must be thrown. The parameter should be the instance name.
Implements OW_NAMESPACE::CppInstanceProviderIFC. Definition at line 175 of file OW_provinstOpenWBEM_ConfigSettingData.cpp. References env, ns, OW_THROWCIMMSG, propertyList, OW_NAMESPACE::Array< T >::size(), and theClass. |
|
Definition at line 427 of file OW_provinstOpenWBEM_ConfigSettingData.cpp. Referenced by enumInstanceNames(). |
|
Definition at line 430 of file OW_provinstOpenWBEM_ConfigSettingData.cpp. |