|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the interface implemented by instance providers. Instance providers are used to serve up dynamic instances of classes.
Method Summary | |
CIMObjectPath |
createInstance(CIMObjectPath op,
CIMInstance ci)
This method creates the instance specified by the CIMInstance argument in the namespace specified by the CIMObjectPath argument. |
void |
deleteInstance(CIMObjectPath op)
This method deletes the instance specified by the CIMObjectPath argument. |
CIMObjectPath[] |
enumerateInstanceNames(CIMObjectPath op,
CIMClass cc)
This method enumerates all of object paths to the instances of the class which is specified by the CIMObjectPath argument; i.e. |
CIMInstance[] |
enumerateInstances(CIMObjectPath op,
boolean localOnly,
boolean includeQualifiers,
boolean includeClassOrigin,
java.lang.String[] propertyList,
CIMClass cc)
This method enumerates all instances of the class specified by the CIMObjectPath argument; i.e. |
CIMInstance[] |
execQuery(CIMObjectPath op,
java.lang.String query,
java.lang.String ql,
CIMClass cc)
This method enumerates all instances of the class specified by the CIMObjectpath argument that satisfy the conditions defined by the query expression (query) in query language type (ql). |
CIMInstance |
getInstance(CIMObjectPath op,
boolean localOnly,
boolean includeQualifiers,
boolean includeClassOrigin,
java.lang.String[] propertyList,
CIMClass cc)
This method retrieves the instance specified by the CIMObjectPath argument. |
void |
setInstance(CIMObjectPath op,
CIMInstance ci,
java.lang.String[] propertyList)
This method modifies the instance specified by by the CIMInstance argument in the namespace specified by the CIMObjectPath argument. |
Methods inherited from interface javax.wbem.provider.CIMProvider |
cleanup, initialize |
Method Detail |
public CIMObjectPath[] enumerateInstanceNames(CIMObjectPath op, CIMClass cc) throws CIMException
op
- The object path of the class to be enumerated. Only
the name space and class name components are used. Any other
information (e.g. keys) is ignored.cc
- The CIM class objectCIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED, CIM_ERR_NOT_SUPPORTED (provider does not support this method), CIM_ERR_INVALID_NAMESPACE, CIM_ERR_INVALID_PARAMETER (for this method), CIM_ERR_INVALID_CLASS (in this namespace), CIM_ERR_FAILED (some other unspecified error occurred)
public CIMInstance[] enumerateInstances(CIMObjectPath op, boolean localOnly, boolean includeQualifiers, boolean includeClassOrigin, java.lang.String[] propertyList, CIMClass cc) throws CIMException
op
- The object path of the class to be enumerated. Only
the name space and class name components are used. Any other
information (e.g. keys) is ignored.localOnly
- If true, only the local properties and methods of the
class are returned, otherwise all properties and methods
(local and inherited) are returned.includeQualifiers
- If
true all Qualifiers for each Instance (including
Qualifiers on the Instance and on any returned Properties) MUST be
included as elements in the response. If false no elements are present
in each returned Instance.includeClassOrigin
- If
true, the CLASSORIGIN attribute MUST be present on
all appropriate elements in each returned Instance. If false, no
CLASSORIGIN attributes are present in each returned Instance. CLASSORIGIN
is the name of the class where the property is locally defined. Where the
same property name is locally defined in another superclass or subclass,
the CIMOM will return the value for the property in the lowest subclass.propertylist
- If the PropertyList input parameter is
not NULL, the members of the array define one or more Property names.
Each returned Instance MUST NOT include elements for any Properties
missing from this list. Note that if LocalOnly is specified as true
this acts as an additional filter on the set of Properties returned
(e.g. if Property A is included in the PropertyList but LocalOnly is
set to true and A is not local to a returned Instance, then it will
not be included in that Instance). If the PropertyList input parameter
is an empty array this signifies that no Properties are included in
each returned Instance. If the PropertyList input parameter is NULL
this specifies that all Properties (subject to the conditions expressed
by the other parameters) are included in each returned Instance. The
PropertyList may contain duplicate or invalid Property names. The
Provider must ignore them but otherwise process the request normally;
i.e. the returned Instance(s) will not contain duplicate or invalid
Property Names.cc
- The CIM class objectCIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED, CIM_ERR_NOT_SUPPORTED (provider does not support this method), CIM_ERR_INVALID_NAMESPACE, CIM_ERR_INVALID_PARAMETER (for this method), CIM_ERR_INVALID_CLASS (in this namespace), CIM_ERR_FAILED (some other unspecified error occurred)
public CIMInstance getInstance(CIMObjectPath op, boolean localOnly, boolean includeQualifiers, boolean includeClassOrigin, java.lang.String[] propertyList, CIMClass cc) throws CIMException
op
- The object path of the instance to be retrieved. This must
include all of the keys and values for the instance.localOnly
- If true, only the local properties and methods of the
class are returned, otherwise all properties and methods
(local and inherited) are returned.includeQualifiers
- If
true all Qualifiers for each Instance (including
Qualifiers on the Instance and on any returned Properties) MUST be
included as elements in the response. If false no elements are present
in each returned Instance.includeClassOrigin
- If
true, the CLASSORIGIN attribute MUST be present on
all appropriate elements in each returned Instance. If false, no
CLASSORIGIN attributes are present in each returned Instance. CLASSORIGIN
is the name of the class where the property is locally defined. Where the
same property name is locally defined in another superclass or subclass,
the CIMOM will return the value for the property in the lowest subclass.propertylist
- If the PropertyList input parameter is
not NULL, the members of the array define one or more Property names.
Each returned Instance MUST NOT include elements for any Properties
missing from this list. Note that if LocalOnly is specified as true
this acts as an additional filter on the set of Properties returned
(e.g. if Property A is included in the PropertyList but LocalOnly is
set to true and A is not local to a returned Instance, then it will
not be included in that Instance). If the PropertyList input parameter
is an empty array this signifies that no Properties are included in
each returned Instance. If the PropertyList input parameter is NULL
this specifies that all Properties (subject to the conditions expressed
by the other parameters) are included in each returned Instance. The
PropertyList may contain duplicate or invalid Property names. The
Provider must ignore them but otherwise process the request normally;
i.e. the returned Instance(s) will not contain duplicate or invalid
Property Names. This
argument can be used to do the GetProperty operation
as defined by the CIM operations over HTTP spec at http://www.dmtf.org/.cc
- The CIM class objectCIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED, CIM_ERR_NOT_SUPPORTED (provider does not support this method), CIM_ERR_INVALID_NAMESPACE, CIM_ERR_INVALID_PARAMETER (for this method), CIM_ERR_INVALID_CLASS (in this namespace), CIM_ERR_NOT_FOUND (if instance does not exist), CIM_ERR_FAILED (some other unspecified error occurred)
public CIMObjectPath createInstance(CIMObjectPath op, CIMInstance ci) throws CIMException
op
- The object path of the instance to be created. Only the
name space component is used. Any other
information (e.g. keys) is ignored.ci
- The instance to be created. Its keys and properties may be
initialized by either the client or provider.CIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED, CIM_ERR_NOT_SUPPORTED (provider does not support this method), CIM_ERR_INVALID_NAMESPACE, CIM_ERR_INVALID_PARAMETER (for this method), CIM_ERR_INVALID_CLASS (in this namespace), CIM_ERR_ALREADY_EXISTS, CIM_ERR_FAILED (some other unspecified error occurred)
public void setInstance(CIMObjectPath op, CIMInstance ci, java.lang.String[] propertyList) throws CIMException
op
- The object path of the instance to be set. It must include
all of the keys.ci
- The instance to be set. Its properties may be initialized by
either the client or provider.propertyList
- Refer to propertyList in enumerateInstances. This
argument can be used to perform the SetProperty operation
as defined by the CIM operations over HTTP spec at http://www.dmtf.org/.CIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED, CIM_ERR_NOT_SUPPORTED (provider does not support this method), CIM_ERR_INVALID_NAMESPACE, CIM_ERR_INVALID_PARAMETER (for this method), CIM_ERR_INVALID_CLASS (in this namespace), CIM_ERR_NOT_FOUND (if instance does not exist), CIM_ERR_FAILED (some other unspecified error occurred)
public void deleteInstance(CIMObjectPath op) throws CIMException
op
- The object path of the instance to be deleted. It must
include all of the keys.CIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED, CIM_ERR_NOT_SUPPORTED (provider does not support this method), CIM_ERR_INVALID_NAMESPACE, CIM_ERR_INVALID_PARAMETER (for this method), CIM_ERR_INVALID_CLASS (in this namespace), CIM_ERR_NOT_FOUND (if instance does not exist), CIM_ERR_FAILED (some other unspecified error occurred)
public CIMInstance[] execQuery(CIMObjectPath op, java.lang.String query, java.lang.String ql, CIMClass cc) throws CIMException
op
- The object path of the class to enumerate and apply
the query to. Only the name space and class name components are used.
Any other information (e.g. keys) is ignored.query
- The CIM query expression (e.g. SELECT *)ql
- The CIM query language type (e.g. WQL)cc
- The CIM class object.CIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED, CIM_ERR_NOT_SUPPORTED (provider does not support this method), CIM_ERR_INVALID_NAMESPACE, CIM_ERR_INVALID_PARAMETER (for this method), CIM_ERR_QUERY_LANGUAGE_NOT_SUPPORTED, CIM_ERR_INVALID_QUERY, CIM_ERR_FAILED (some other unspecified error occurred)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |