Contents
|
In file ../../src/Pegasus/Repository/CIMRepository.h:
This class provides a simple implementation of a CIM repository.
Documentation
This class provides a simple implementation of a CIM repository.
Concurrent access is controlled by an internal lock.
Inheritance:
Public Methods
| CIMRepository ( const String& repositoryRoot, Uint32 mode = CIMRepository::MODE_DEFAULT, RepositoryDeclContext* declContext = 0)
Constructor
|
| ~CIMRepository ()
Descructor
|
CIMClass | getClass ( const CIMNamespaceName& nameSpace, const CIMName& className, Boolean localOnly = true, Boolean includeQualifiers = true, Boolean includeClassOrigin = false, const CIMPropertyList& propertyList = CIMPropertyList())
getClass
|
CIMInstance | getInstance ( const CIMNamespaceName& nameSpace, const CIMObjectPath& instanceName, Boolean includeQualifiers = false, Boolean includeClassOrigin = false, const CIMPropertyList& propertyList = CIMPropertyList())
getInstance
|
void | deleteClass ( const CIMNamespaceName& nameSpace, const CIMName& className)
deleteClass
|
void | deleteInstance ( const CIMNamespaceName& nameSpace, const CIMObjectPath& instanceName)
deleteInstance
|
void | createClass ( const CIMNamespaceName& nameSpace, const CIMClass& newClass)
createClass
|
CIMObjectPath | createInstance ( const CIMNamespaceName& nameSpace, const CIMInstance& newInstance)
createInstance
|
void | modifyClass ( const CIMNamespaceName& nameSpace, const CIMClass& modifiedClass)
modifyClass
|
void | modifyInstance ( const CIMNamespaceName& nameSpace, const CIMInstance& modifiedInstance, Boolean includeQualifiers = true, const CIMPropertyList& propertyList = CIMPropertyList())
modifyInstance
|
Array<CIMClass> | enumerateClasses ( const CIMNamespaceName& nameSpace, const CIMName& className = CIMName(), Boolean deepInheritance = false, Boolean localOnly = true, Boolean includeQualifiers = true, Boolean includeClassOrigin = false)
enumerateClasses
|
Array<CIMName> | enumerateClassNames ( const CIMNamespaceName& nameSpace, const CIMName& className = CIMName(), Boolean deepInheritance = false)
enumerateClassNames
|
Array<CIMInstance> | enumerateInstancesForSubtree ( const CIMNamespaceName& nameSpace, const CIMName& className, Boolean deepInheritance = true, Boolean includeQualifiers = false, Boolean includeClassOrigin = false, const CIMPropertyList& propertyList = CIMPropertyList())
Enumerates the instances of the specified class and its subclasses.
|
Array<CIMInstance> | enumerateInstancesForClass ( const CIMNamespaceName& nameSpace, const CIMName& className, Boolean includeQualifiers = false, Boolean includeClassOrigin = false, const CIMPropertyList& propertyList = CIMPropertyList())
Enumerates the instances of just the specified class.
|
Array<CIMObjectPath> | enumerateInstanceNamesForSubtree ( const CIMNamespaceName& nameSpace, const CIMName& className)
Enumerates the names of the instances of the specified class and its subclasses.
|
Array<CIMObjectPath> | enumerateInstanceNamesForClass ( const CIMNamespaceName& nameSpace, const CIMName& className)
Enumerates the names of the instances of just the specified class.
|
Array<CIMObject> | associators ( const CIMNamespaceName& nameSpace, const CIMObjectPath& objectName, const CIMName& assocClass = CIMName(), const CIMName& resultClass = CIMName(), const String& role = String::EMPTY, const String& resultRole = String::EMPTY, Boolean includeQualifiers = false, Boolean includeClassOrigin = false, const CIMPropertyList& propertyList = CIMPropertyList())
associators
|
Array<CIMObjectPath> | associatorNames ( const CIMNamespaceName& nameSpace, const CIMObjectPath& objectName, const CIMName& assocClass = CIMName(), const CIMName& resultClass = CIMName(), const String& role = String::EMPTY, const String& resultRole = String::EMPTY)
associatorNames
|
Array<CIMObject> | references ( const CIMNamespaceName& nameSpace, const CIMObjectPath& objectName, const CIMName& resultClass = CIMName(), const String& role = String::EMPTY, Boolean includeQualifiers = false, Boolean includeClassOrigin = false, const CIMPropertyList& propertyList = CIMPropertyList())
references
|
Array<CIMObjectPath> | referenceNames ( const CIMNamespaceName& nameSpace, const CIMObjectPath& objectName, const CIMName& resultClass = CIMName(), const String& role = String::EMPTY)
referenceNames
|
CIMValue | getProperty ( const CIMNamespaceName& nameSpace, const CIMObjectPath& instanceName, const CIMName& propertyName)
getProperty
|
void | setProperty ( const CIMNamespaceName& nameSpace, const CIMObjectPath& instanceName, const CIMName& propertyName, const CIMValue& newValue = CIMValue())
setProperty
|
CIMQualifierDecl | getQualifier ( const CIMNamespaceName& nameSpace, const CIMName& qualifierName)
getQualifier
|
void | setQualifier ( const CIMNamespaceName& nameSpace, const CIMQualifierDecl& qualifierDecl)
setQualifier
|
void | deleteQualifier ( const CIMNamespaceName& nameSpace, const CIMName& qualifierName)
deleteQualifier
|
Array<CIMQualifierDecl> | enumerateQualifiers ( const CIMNamespaceName& nameSpace)
enumerateQualifiers
|
void | deleteNameSpace (const CIMNamespaceName& nameSpace)
Deletes a namespace in the repository.
|
Boolean | isDefaultInstanceProvider ()
Indicates whether instance operations that do not have a provider registered should be served by this repository
|
void | getSubClassNames ( const CIMNamespaceName& nameSpaceName, const CIMName& className, Boolean deepInheritance, Array<CIMName>& subClassNames) const
Get subclass names of the given class in the given namespace.
|
void | getSuperClassNames ( const CIMNamespaceName& nameSpaceName, const CIMName& className, Array<CIMName>& subClassNames) const
Get the names of all superclasses (direct and indirect) of this class
|
Protected Methods
CIMInstance | _getInstance ( const CIMNamespaceName& nameSpace, const CIMObjectPath& instanceName, Boolean includeQualifiers, Boolean includeClassOrigin, const CIMPropertyList& propertyList, Boolean resolveInstance)
Internal getInstance implementation that does not do access control
|
void | _createClass ( const CIMNamespaceName& nameSpace, const CIMClass& newClass)
Internal createClass implementation that does not do access control
|
CIMObjectPath | _createInstance ( const CIMNamespaceName& nameSpace, const CIMInstance& newInstance)
Internal createInstance implementation that does not do access control
|
void | _modifyClass ( const CIMNamespaceName& nameSpace, const CIMClass& modifiedClass)
Internal modifyClass implementation that does not do access control
|
Array<CIMObjectPath> | _associatorNames ( const CIMNamespaceName& nameSpace, const CIMObjectPath& objectName, const CIMName& assocClass, const CIMName& resultClass, const String& role, const String& resultRole)
Internal associatorNames implementation that does not do access control
|
Array<CIMObjectPath> | _referenceNames ( const CIMNamespaceName& nameSpace, const CIMObjectPath& objectName, const CIMName& resultClass, const String& role)
Internal referenceNames implementation that does not do access control
|
CIMQualifierDecl | _getQualifier ( const CIMNamespaceName& nameSpace, const CIMName& qualifierName)
Internal getQualifier implementation that does not do access control
|
void | _setQualifier ( const CIMNamespaceName& nameSpace, const CIMQualifierDecl& qualifierDecl)
Internal setQualifier implementation that does not do access control
|
- CIMRepository( const String& repositoryRoot, Uint32 mode = CIMRepository::MODE_DEFAULT, RepositoryDeclContext* declContext = 0)
- Constructor
- ~CIMRepository()
- Descructor
- CIMClass getClass( const CIMNamespaceName& nameSpace, const CIMName& className, Boolean localOnly = true, Boolean includeQualifiers = true, Boolean includeClassOrigin = false, const CIMPropertyList& propertyList = CIMPropertyList())
- getClass
- CIMInstance getInstance( const CIMNamespaceName& nameSpace, const CIMObjectPath& instanceName, Boolean includeQualifiers = false, Boolean includeClassOrigin = false, const CIMPropertyList& propertyList = CIMPropertyList())
- getInstance
- void deleteClass( const CIMNamespaceName& nameSpace, const CIMName& className)
- deleteClass
- void deleteInstance( const CIMNamespaceName& nameSpace, const CIMObjectPath& instanceName)
- deleteInstance
- void createClass( const CIMNamespaceName& nameSpace, const CIMClass& newClass)
- createClass
- CIMObjectPath createInstance( const CIMNamespaceName& nameSpace, const CIMInstance& newInstance)
- createInstance
- void modifyClass( const CIMNamespaceName& nameSpace, const CIMClass& modifiedClass)
- modifyClass
- void modifyInstance( const CIMNamespaceName& nameSpace, const CIMInstance& modifiedInstance, Boolean includeQualifiers = true, const CIMPropertyList& propertyList = CIMPropertyList())
- modifyInstance
- Array<CIMClass> enumerateClasses( const CIMNamespaceName& nameSpace, const CIMName& className = CIMName(), Boolean deepInheritance = false, Boolean localOnly = true, Boolean includeQualifiers = true, Boolean includeClassOrigin = false)
- enumerateClasses
- Array<CIMName> enumerateClassNames( const CIMNamespaceName& nameSpace, const CIMName& className = CIMName(), Boolean deepInheritance = false)
- enumerateClassNames
- Array<CIMInstance> enumerateInstancesForSubtree( const CIMNamespaceName& nameSpace, const CIMName& className, Boolean deepInheritance = true, Boolean includeQualifiers = false, Boolean includeClassOrigin = false, const CIMPropertyList& propertyList = CIMPropertyList())
-
Enumerates the instances of the specified class and its subclasses.
This method mimics the client behavior for the EnumerateInstances
operation, but of course it can only return the instances that reside
in the repository. This method does not perform deepInheritance
filtering regardless of the value given for that parameter.
This method is useful mainly for testing purposes, and should not be
relied upon for complete results in a CIM Server environment.
- Array<CIMInstance> enumerateInstancesForClass( const CIMNamespaceName& nameSpace, const CIMName& className, Boolean includeQualifiers = false, Boolean includeClassOrigin = false, const CIMPropertyList& propertyList = CIMPropertyList())
-
Enumerates the instances of just the specified class.
This method mimics the provider behavior for the EnumerateInstances
operation.
- Array<CIMObjectPath> enumerateInstanceNamesForSubtree( const CIMNamespaceName& nameSpace, const CIMName& className)
-
Enumerates the names of the instances of the specified class and its
subclasses. This method mimics the client behavior for the
EnumerateInstanceNames operation, but of course it can only return
the names of the instances that reside in the repository.
This method is useful mainly for testing purposes, and should not be
relied upon for complete results in a CIM Server environment.
- Parameters:
- nameSpace - The namespace in which className resides.
className - The name the class for which to retrieve the instance
names.
- Returns:
- An Array of CIMObjectPath objects containing the names of the
instances of the specified class in the specified namespace.
- Array<CIMObjectPath> enumerateInstanceNamesForClass( const CIMNamespaceName& nameSpace, const CIMName& className)
-
Enumerates the names of the instances of just the specified class.
This method mimics the provider behavior for the EnumerateInstanceNames
operation.
- Parameters:
- nameSpace - The namespace in which className resides.
className - The name the class for which to retrieve the instance
names.
- Returns:
- An Array of CIMObjectPath objects containing the names of the
instances of the specified class in the specified namespace.
- Array<CIMObject> associators( const CIMNamespaceName& nameSpace, const CIMObjectPath& objectName, const CIMName& assocClass = CIMName(), const CIMName& resultClass = CIMName(), const String& role = String::EMPTY, const String& resultRole = String::EMPTY, Boolean includeQualifiers = false, Boolean includeClassOrigin = false, const CIMPropertyList& propertyList = CIMPropertyList())
- associators
- Array<CIMObjectPath> associatorNames( const CIMNamespaceName& nameSpace, const CIMObjectPath& objectName, const CIMName& assocClass = CIMName(), const CIMName& resultClass = CIMName(), const String& role = String::EMPTY, const String& resultRole = String::EMPTY)
- associatorNames
- Array<CIMObject> references( const CIMNamespaceName& nameSpace, const CIMObjectPath& objectName, const CIMName& resultClass = CIMName(), const String& role = String::EMPTY, Boolean includeQualifiers = false, Boolean includeClassOrigin = false, const CIMPropertyList& propertyList = CIMPropertyList())
- references
- Array<CIMObjectPath> referenceNames( const CIMNamespaceName& nameSpace, const CIMObjectPath& objectName, const CIMName& resultClass = CIMName(), const String& role = String::EMPTY)
- referenceNames
- CIMValue getProperty( const CIMNamespaceName& nameSpace, const CIMObjectPath& instanceName, const CIMName& propertyName)
- getProperty
- void setProperty( const CIMNamespaceName& nameSpace, const CIMObjectPath& instanceName, const CIMName& propertyName, const CIMValue& newValue = CIMValue())
- setProperty
- CIMQualifierDecl getQualifier( const CIMNamespaceName& nameSpace, const CIMName& qualifierName)
- getQualifier
- void setQualifier( const CIMNamespaceName& nameSpace, const CIMQualifierDecl& qualifierDecl)
- setQualifier
- void deleteQualifier( const CIMNamespaceName& nameSpace, const CIMName& qualifierName)
- deleteQualifier
- Array<CIMQualifierDecl> enumerateQualifiers( const CIMNamespaceName& nameSpace)
- enumerateQualifiers
- void deleteNameSpace(const CIMNamespaceName& nameSpace)
- Deletes a namespace in the repository.
The deleteNameSpace method will only delete a namespace if there are
no classed defined in the namespace. Today this is a Pegasus
characteristics and not defined as part of the DMTF standards.
- Throws:
- - Throws NoSuchDirectory if the Namespace does not exist.
- Parameters:
- - String with the name of the namespace
- Boolean isDefaultInstanceProvider()
- Indicates whether instance operations that do not have a provider
registered should be served by this repository
- void getSubClassNames( const CIMNamespaceName& nameSpaceName, const CIMName& className, Boolean deepInheritance, Array<CIMName>& subClassNames) const
- Get subclass names of the given class in the given namespace.
- Throws:
- CIMException (CIM_ERR_INVALID_CLASS)
- Parameters:
- nameSpaceName -
className - - class whose subclass names will be gotten. If
className is empty, all classnames are returned.
deepInheritance - - if true all descendent classes of class
are returned. If className is empty, only root classes are returned.
subClassNames - - output argument to hold subclass names.
- void getSuperClassNames( const CIMNamespaceName& nameSpaceName, const CIMName& className, Array<CIMName>& subClassNames) const
- Get the names of all superclasses (direct and indirect) of this
class
- CIMInstance _getInstance( const CIMNamespaceName& nameSpace, const CIMObjectPath& instanceName, Boolean includeQualifiers, Boolean includeClassOrigin, const CIMPropertyList& propertyList, Boolean resolveInstance)
- Internal getInstance implementation that does not do access control
- void _createClass( const CIMNamespaceName& nameSpace, const CIMClass& newClass)
- Internal createClass implementation that does not do access control
- CIMObjectPath _createInstance( const CIMNamespaceName& nameSpace, const CIMInstance& newInstance)
- Internal createInstance implementation that does not do access control
- void _modifyClass( const CIMNamespaceName& nameSpace, const CIMClass& modifiedClass)
- Internal modifyClass implementation that does not do access control
- Array<CIMObjectPath> _associatorNames( const CIMNamespaceName& nameSpace, const CIMObjectPath& objectName, const CIMName& assocClass, const CIMName& resultClass, const String& role, const String& resultRole)
- Internal associatorNames implementation that does not do access control
- Array<CIMObjectPath> _referenceNames( const CIMNamespaceName& nameSpace, const CIMObjectPath& objectName, const CIMName& resultClass, const String& role)
- Internal referenceNames implementation that does not do access control
- CIMQualifierDecl _getQualifier( const CIMNamespaceName& nameSpace, const CIMName& qualifierName)
- Internal getQualifier implementation that does not do access control
- void _setQualifier( const CIMNamespaceName& nameSpace, const CIMQualifierDecl& qualifierDecl)
- Internal setQualifier implementation that does not do access control
- This class has no child classes.
- Friends:
- class compilerDeclContext
class RepositoryDeclContext
Alphabetic index HTML hierarchy of classes or Java
|