|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.wbem.client.CIMClient
Constructs a CIM client on the local host (default) or the specified host. This class invokes the CIM object manager for this client session to perform a WBEM operation, such as, adding, modifying, or deleting a CIM class, CIM instance, and CIM qualifier type in a namespace.
A WBEM client application connects to a CIM Object Manager to establish an initial connection when it needs to perform WBEM operations.
Field Summary | |
static java.lang.String |
CIM_RMI
Constant identifying the CIM operations over RMI protocol. |
static java.lang.String |
CIM_XML
Constant identifying the CIM operations over XML protocol. |
static java.lang.String |
WQL
WBEM Query Language level 1 is currently supported |
Constructor Summary | |
CIMClient(CIMNameSpace name,
java.security.Principal principal,
java.lang.Object credential)
Creates a new client connection to the CIM Object Manager on the host and namespace specified in the namespace object, using the specified principal and credential to authenticate the client user identity to the CIM Object Manager. |
|
CIMClient(CIMNameSpace name,
java.security.Principal principal,
java.lang.Object credential,
java.lang.String protocol)
Creates a new client connection to the CIM Object Manager on the host and namespace specified in the namespace object, using the specified principal and credential to authenticate the client user identity to the CIM Object Manager. |
Method Summary | |
void |
addCIMListener(CIMListener l)
Adds the specified listener which receives indications from the CIM Object Manager. |
java.util.Enumeration |
associatorNames(CIMObjectPath objectName,
java.lang.String assocClass,
java.lang.String resultClass,
java.lang.String role,
java.lang.String resultRole)
Enumerates the object paths to CIM Objects that are associated to a particular source CIM Object. |
java.util.Enumeration |
associators(CIMObjectPath objectName,
java.lang.String assocClass,
java.lang.String resultClass,
java.lang.String role,
java.lang.String resultRole,
boolean includeQualifiers,
boolean includeClassOrigin,
java.lang.String[] propertyList)
Enumerate CIM Objects that are associated to a particular source CIM Object. |
void |
close()
Closes the client connection to the CIM Object Manager. |
void |
createClass(CIMObjectPath name,
CIMClass cc)
Adds the CIM class to the specified namespace. |
CIMObjectPath |
createInstance(CIMObjectPath name,
CIMInstance ci)
Adds the specified CIM Instance to the specified namespace |
void |
createNameSpace(CIMNameSpace ns)
Creates a CIM namespace, a directory containing CIM classes and CIM instances. |
void |
createQualifierType(CIMObjectPath name,
CIMQualifierType qt)
Adds the specified CIM qualifier type to the specified namespace. |
void |
deleteClass(CIMObjectPath path)
Deletes the CIM class to the specified namespace. |
void |
deleteInstance(CIMObjectPath path)
Deletes the CIM instance specified by the CIM object path, a name that uniquely identifies a CIM object. |
void |
deleteNameSpace(CIMNameSpace ns)
Deletes the specified namespace on the current host. |
void |
deleteQualifierType(CIMObjectPath path)
Deletes the CIM qualfier to the specified namespace. |
java.lang.String |
encryptData(java.lang.String clearData)
Encrypts a limited sized string value using the current authentication exchange session key. |
java.util.Enumeration |
enumerateClasses(CIMObjectPath path)
Enumerates the first level children of the class specified in the path. |
java.util.Enumeration |
enumerateClasses(CIMObjectPath path,
boolean deep)
Enumerates the class specified in the path. |
java.util.Enumeration |
enumerateClasses(CIMObjectPath path,
boolean deep,
boolean localOnly)
Enumerates the class specified in the path. |
java.util.Enumeration |
enumerateClasses(CIMObjectPath path,
boolean deep,
boolean localOnly,
boolean includeQualifiers)
Enumerates the class specified in the path. |
java.util.Enumeration |
enumerateClasses(CIMObjectPath path,
boolean deep,
boolean localOnly,
boolean includeQualifiers,
boolean includeClassOrigin)
Enumerates the class specified in the path. |
java.util.Enumeration |
enumerateClassNames(CIMObjectPath path)
Enumerates the class specified in the path. |
java.util.Enumeration |
enumerateClassNames(CIMObjectPath path,
boolean deep)
Enumerates the class specified in the path. |
java.util.Enumeration |
enumerateInstanceNames(CIMObjectPath path)
Returns the object paths to all instances belonging to the class specified in the path. |
java.util.Enumeration |
enumerateInstances(CIMObjectPath path)
Returns all instances of the class specified in the path. |
java.util.Enumeration |
enumerateInstances(CIMObjectPath path,
boolean deep)
Returns all instances of the class specified in the path. |
java.util.Enumeration |
enumerateInstances(CIMObjectPath path,
boolean deep,
boolean localOnly)
Returns all instances of the class specified in the path. |
java.util.Enumeration |
enumerateInstances(CIMObjectPath path,
boolean deep,
boolean localOnly,
boolean includeQualifiers)
Returns all instances of the class specified in the path. |
java.util.Enumeration |
enumerateInstances(CIMObjectPath path,
boolean deep,
boolean localOnly,
boolean includeQualifiers,
boolean includeClassOrigin)
Returns all instances of the class specified in the path. |
java.util.Enumeration |
enumerateInstances(CIMObjectPath path,
boolean deep,
boolean localOnly,
boolean includeQualifiers,
boolean includeClassOrigin,
java.lang.String[] propertyList)
Returns all instances of the class specified in the path. |
java.util.Enumeration |
enumNameSpace(CIMObjectPath path,
boolean deep)
Gets a list of the namespaces within the namespace specified by the CIM object path. |
java.util.Enumeration |
enumQualifierTypes(CIMObjectPath path)
Enumerates the qualifiers defined in a namespace. |
java.util.Enumeration |
execQuery(CIMObjectPath name,
java.lang.String query,
java.lang.String ql)
Executes a query to retrieve objects. |
CIMClass |
getClass(CIMObjectPath name)
Gets the CIM class for the specified CIM object path. |
CIMClass |
getClass(CIMObjectPath name,
boolean localOnly)
Gets the CIM class for the specified CIM object path. |
CIMClass |
getClass(CIMObjectPath name,
boolean localOnly,
boolean includeQualifiers)
Gets the CIM class for the specified CIM object path. |
CIMClass |
getClass(CIMObjectPath name,
boolean localOnly,
boolean includeQualifiers,
boolean includeClassOrigin)
Gets the CIM class for the specified CIM object path. |
CIMClass |
getClass(CIMObjectPath name,
boolean localOnly,
boolean includeQualifiers,
boolean includeClassOrigin,
java.lang.String[] propertyList)
Gets the CIM class for the specified CIM object path. |
CIMInstance |
getInstance(CIMObjectPath name)
Gets the CIM instance for the specified CIM object path. |
CIMInstance |
getInstance(CIMObjectPath name,
boolean localOnly)
Gets the CIM instance for the specified CIM object path. |
CIMInstance |
getInstance(CIMObjectPath name,
boolean localOnly,
boolean includeQualifiers)
Gets the CIM instance for the specified CIM object path. |
CIMInstance |
getInstance(CIMObjectPath name,
boolean localOnly,
boolean includeQualifiers,
boolean includeClassOrigin)
Gets the CIM instance for the specified CIM object path. |
CIMInstance |
getInstance(CIMObjectPath name,
boolean localOnly,
boolean includeQualifiers,
boolean includeClassOrigin,
java.lang.String[] propertyList)
Gets the CIM instance for the specified CIM object path. |
CIMValue |
getProperty(CIMObjectPath name,
java.lang.String propertyName)
Gets the value of the specified property for the instance specified in the object path. |
CIMQualifierType |
getQualifierType(CIMObjectPath name)
Gets the CIM qualifier type specified in the CIM object path. |
CIMValue |
invokeMethod(CIMObjectPath name,
java.lang.String methodName,
java.util.Vector inParams,
java.util.Vector outParams)
Executes the specified method on the specified object. |
BatchResult |
performBatchOperations(BatchHandle bc)
|
java.util.Enumeration |
referenceNames(CIMObjectPath objectName,
java.lang.String resultClass,
java.lang.String role)
Enumerates the object paths to association objects that refer to a particular target CIM Object. |
java.util.Enumeration |
references(CIMObjectPath objectName,
java.lang.String resultClass,
java.lang.String role,
boolean includeQualifiers,
boolean includeClassOrigin,
java.lang.String[] propertyList)
Enumerates the association objects that refer to a particular target CIM Object. |
void |
removeCIMListener(CIMListener l)
Removes the specified listener which receives indications from the CIM Object Manager. |
void |
setClass(CIMObjectPath name,
CIMClass cc)
Modifies the CIM class in the specified namespace. |
void |
setInstance(CIMObjectPath name,
CIMInstance ci)
Modifies the specified CIM instance in the specified namespace. |
void |
setProperty(CIMObjectPath name,
java.lang.String propertyName,
CIMValue newValue)
Modifies the value of the specified property for the instance specified in the object path. |
void |
setQualifierType(CIMObjectPath name,
CIMQualifierType qt)
Adds the specified CIM qualifier type to the specified namespace if it does not already exist. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String WQL
execQuery(javax.wbem.cim.CIMObjectPath, java.lang.String, java.lang.String)
public static final java.lang.String CIM_XML
public static final java.lang.String CIM_RMI
Constructor Detail |
public CIMClient(CIMNameSpace name, java.security.Principal principal, java.lang.Object credential) throws CIMException
name
- The namespace in which operations will be performedprincipal
- The client user principal identitycredential
- The client user credential for authenticationCIMException
- Throws a CIM exception if the
namespace already exists, the client connection
fails due to a network error, the user account
does not exist, or the password is not the correct
password for the specified user account.public CIMClient(CIMNameSpace name, java.security.Principal principal, java.lang.Object credential, java.lang.String protocol) throws CIMException
name
- The namespace in which operations will be performedprincipal
- The client user principal identitycredential
- The client user credential for authenticationprotocol
- The protocol to use for sending messages; e.g. CIM_XMLCIMException
- Throws a CIM exception if the
namespace already exists, the client connection
fails due to a network error, the user account
does not exist, or the password is not the correct
password for the specified user account.Method Detail |
public void createNameSpace(CIMNameSpace ns) throws CIMException
createNameSpace
in interface CIMOMHandle
ns
- The CIMNameSpace object that specifies a string
for the host and a string for the namespaceCIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED, CIM_ERR_NOT_SUPPORTED, CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters), CIM_ERR_ALREADY_EXISTS (if namespace already exists), CIM_ERR_FAILED (some other unspecified error occurred)
public void close() throws CIMException
Example:
The following sample code closes the client connection (cc
).
cc.close();
close
in interface CIMOMHandle
CIMException
- Throws a CIM Exception if the
client session does not existpublic void deleteNameSpace(CIMNameSpace ns) throws CIMException
deleteNameSpace
in interface CIMOMHandle
ns
- The CIMNameSpace object that identifies the namespace
to be deletedCIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED, CIM_ERR_NOT_SUPPORTED, CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters), CIM_ERR_NOT_FOUND (if namespace does not exist), CIM_ERR_FAILED (some other unspecified error occurred)
public void deleteClass(CIMObjectPath path) throws CIMException
The model path portion of the CIM object path uniquely identifies a CIM object within the namespace on the host. The model path for a class is the class name.
deleteClass
in interface CIMOMHandle
path
- The CIMObjectPath identifying the class to deleteCIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED, CIM_ERR_NOT_SUPPORTED, CIM_ERR_INVALID_NAMESPACE, CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters), CIM_ERR_NOT_FOUND (the CIM Class to be deleted does not exisT), CIM_ERR_CLASS_HAS_CHILDREN (the CIM Class has one or more subclasses which cannot be deleted), CIM_ERR_CLASS_HAS_INSTANCES (the CIM Class has one or more instances which cannot be deleted), CIM_ERR_FAILED (some other unspecified error occurred)
public void deleteInstance(CIMObjectPath path) throws CIMException
KEY
qualifier.deleteInstance
in interface CIMOMHandle
path
- The CIMObjectPath identifying the CIM instance to deleteCIMException
- 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 (including missing, duplicate, unrecognized or otherwise incorrect parameters), 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 deleteQualifierType(CIMObjectPath path) throws CIMException
deleteQualifierType
in interface CIMOMHandle
path
- the CIMObjectPath identifying the CIM qualifier
to deleteCIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED, CIM_ERR_NOT_SUPPORTED, CIM_ERR_INVALID_NAMESPACE, CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters), CIM_ERR_NOT_FOUND (the requested Qualifier declaration did not exist), CIM_ERR_FAILED (some other unspecified error occurred)
public java.util.Enumeration enumNameSpace(CIMObjectPath path, boolean deep) throws CIMException
enumNameSpace
in interface CIMOMHandle
path
- The CIMObjectPath identifying the namespace to be enumerated.deep
- If set to true, the enumeration returned will
contain the entire hierarchy of namespaces present under the
enumerated namespace. If set to false the
enumeration will return only the first level children of the
enumerated namespace.CIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED, CIM_ERR_NOT_SUPPORTED, CIM_ERR_INVALID_NAMESPACE, CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters), CIM_ERR_FAILED (some other unspecified error occurred)
public java.util.Enumeration enumerateClasses(CIMObjectPath path) throws CIMException
path
- The CIMObjectPath identifying the class to be
enumerated.CIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED, CIM_ERR_NOT_SUPPORTED, CIM_ERR_INVALID_NAMESPACE, CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters), CIM_ERR_INVALID_CLASS (the CIM Class that is the basis for this enumeration does not exist), CIM_ERR_FAILED (some other unspecified error occurred)
public java.util.Enumeration enumerateClasses(CIMObjectPath path, boolean deep) throws CIMException
path
- The CIMObjectPath identifying the class to be
enumerated.deep
- If true, the enumeration returned will
contain the contents of the specified class and the
contents of all classes derived from the
specified class. If false, the
enumeration will return only the contents of the first
level children of the specified class.CIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED, CIM_ERR_NOT_SUPPORTED, CIM_ERR_INVALID_NAMESPACE, CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters), CIM_ERR_INVALID_CLASS (the CIM Class that is the basis for this enumeration does not exist), CIM_ERR_FAILED (some other unspecified error occurred)
public java.util.Enumeration enumerateClasses(CIMObjectPath path, boolean deep, boolean localOnly) throws CIMException
path
- The CIMObjectPath identifying the class to be
enumerated.deep
- If true, the enumeration returned will
contain the contents of the specified class and the
contents of all classes derived from the
specified class. If false, the
enumeration will return only the contents of the first
level children of the specified class.localOnly
- If true, only the non-inherited properties and
methods of each class are returned. If false, all properties
and methods of each class are returned.CIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED, CIM_ERR_NOT_SUPPORTED, CIM_ERR_INVALID_NAMESPACE, CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters), CIM_ERR_INVALID_CLASS (the CIM Class that is the basis for this enumeration does not exist), CIM_ERR_FAILED (some other unspecified error occurred)
public java.util.Enumeration enumerateClasses(CIMObjectPath path, boolean deep, boolean localOnly, boolean includeQualifiers) throws CIMException
path
- The CIMObjectPath identifying the class to be
enumerated.deep
- If true, the enumeration returned will
contain the contents of the specified class and the
contents of all classes derived from the
specified class. If false, the
enumeration will return only the contents of the first
level children of the specified class.localOnly
- If true, only the non-inherited properties and
methods of each class are returned. If false, all properties
and methods of each class are returned.includeQualifiers
- If the IncludeQualifiers input parameter is true
this specifies that all Qualifiers for each Object (including Qualifiers
on the Object and on any returned Properties) MUST be included.
If false no Qualifiers are present in the returned 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, CIM_ERR_INVALID_NAMESPACE, CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters), CIM_ERR_INVALID_CLASS (the CIM Class that is the basis for this enumeration does not exist), CIM_ERR_FAILED (some other unspecified error occurred)
public java.util.Enumeration enumerateClasses(CIMObjectPath path, boolean deep, boolean localOnly, boolean includeQualifiers, boolean includeClassOrigin) throws CIMException
enumerateClasses
in interface CIMOMHandle
path
- The CIMObjectPath identifying the class to be enumerated.deep
- If true, the enumeration returned will
contain the contents of the specified class and the
contents of all classes derived from the
specified class. If false, the
enumeration will return only the contents of the first
level children of the specified class.localOnly
- If true, only the non-inherited properties and
methods of each class are returned. If false, all properties
and methods of each class are returned.includeQualifiers
- If the IncludeQualifiers input parameter is true
this specifies that all Qualifiers for each Object (including Qualifiers
on the Object and on any returned Properties) MUST be included.
If false no Qualifiers are present in the returned Object.includeClassOrigin
- If the IncludeClassOrigin input parameter is
true, this specifies that the CLASSORIGIN attribute MUST be present on
all appropriate elements in each returned Object. If false, no
CLASSORIGIN attributes are present in each returned 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, CIM_ERR_INVALID_NAMESPACE, CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters), CIM_ERR_INVALID_CLASS (the CIM Class that is the basis for this enumeration does not exist), CIM_ERR_FAILED (some other unspecified error occurred)
enumerateClassNames(javax.wbem.cim.CIMObjectPath)
,
enumerateClasses(javax.wbem.cim.CIMObjectPath)
public java.util.Enumeration enumerateClassNames(CIMObjectPath path) throws CIMException
path
- The CIMObjectPath identifying the class to be
enumerated.
If the class name component of the object path is NULL,
then the names of all base classes in the target namespace
are returned. If the class name component of the object
path is non-NULL, then the names of all classes derived
from the specified class are returned.CIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED, CIM_ERR_NOT_SUPPORTED, CIM_ERR_INVALID_NAMESPACE, CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters), CIM_ERR_INVALID_CLASS (the CIM Class that is the basis for this enumeration does not exist), CIM_ERR_FAILED (some other unspecified error occurred)
public java.util.Enumeration enumerateClassNames(CIMObjectPath path, boolean deep) throws CIMException
enumerateClassNames
in interface CIMOMHandle
path
- The CIMObjectPath identifying the class to be enumerated.deep
- If true, the enumeration returned will
contain the names of all classes derived from the specified
class. If false, the enumeration will return
only the names of the first level children of the specified
class.CIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED, CIM_ERR_NOT_SUPPORTED, CIM_ERR_INVALID_NAMESPACE, CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters), CIM_ERR_INVALID_CLASS (the CIM Class that is the basis for this enumeration does not exist), CIM_ERR_FAILED (some other unspecified error occurred)
public java.util.Enumeration enumerateInstanceNames(CIMObjectPath path) throws CIMException
enumerateInstanceNames
in interface CIMOMHandle
path
- The CIMObjectPath identifying the class whose instances are
to be enumerated. Only
the name space and class name components are used. Any other
information (e.g. keys) is ignored.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_FAILED (some other unspecified error occurred)
public java.util.Enumeration enumerateInstances(CIMObjectPath path) throws CIMException
path
- The CIMObjectPath identifying the class whose instances
are to be enumerated. Only
the name space and class name components are used. Any other
information (e.g. keys) is ignored.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_FAILED (some other unspecified error occurred)
public java.util.Enumeration enumerateInstances(CIMObjectPath path, boolean deep) throws CIMException
path
- The CIMObjectPath identifying the class whose instances
are to be enumerated.deep
- If false, each returned instance will only contain inherited
and local properties and methods of the specified class. If true, each
returned instance will also contain any additional properties and methods
defined in all classes derived from the specified class.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_FAILED (some other unspecified error occurred)
public java.util.Enumeration enumerateInstances(CIMObjectPath path, boolean deep, boolean localOnly) throws CIMException
path
- The CIMObjectPath identifying the class whose instances
are to be enumerated. Only
the name space and class name components are used. Any other
information (e.g. keys) is ignored.deep
- If false, each returned instance will only contain inherited
and local properties and methods of the specified class. If true, each
returned instance will also contain any additional properties and methods
defined in all classes derived from the specified class.localOnly
- if true, only the non-inherited properties and methods
are returned, otherwise all properties and methods are returned.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_FAILED (some other unspecified error occurred)
public java.util.Enumeration enumerateInstances(CIMObjectPath path, boolean deep, boolean localOnly, boolean includeQualifiers) throws CIMException
path
- The CIMObjectPath identifying the class whose instances
are to be enumerated. Only
the name space and class name components are used. Any other
information (e.g. keys) is ignored.deep
- If false, each returned instance will only contain inherited
and local properties and methods of the specified class. If true, each
returned instance will also contain any additional properties and methods
defined in all classes derived from the specified class.localOnly
- If true, only the non-inherited properties and methods
are returned. If fals, all properties and methods are returned.includeQualifiers
- If the IncludeQualifiers input parameter is true
this specifies that all Qualifiers for each Object (including Qualifiers
on the Object and on any returned Properties) MUST be included.
If false no Qualifiers are present in the returned 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_INVALID_CLASS (in this namespace), CIM_ERR_FAILED (some other unspecified error occurred)
public java.util.Enumeration enumerateInstances(CIMObjectPath path, boolean deep, boolean localOnly, boolean includeQualifiers, boolean includeClassOrigin) throws CIMException
path
- The CIMObjectPath identifying the class whose instances
are to be enumerated.deep
- If false, each returned instance will only contain inherited
and local properties and methods of the specified class. If true, each
returned instance will also contain any additional properties and methods
defined in all classes derived from the specified class.localOnly
- If true, only the non-inherited properties and methods
are returned. If fals, all properties and methods are returned.includeQualifiers
- If the IncludeQualifiers input parameter is true
this specifies that all Qualifiers for each Object (including Qualifiers
on the Object and on any returned Properties) MUST be included.
If false no Qualifiers are present in the returned Object.includeClassOrigin
- If the IncludeClassOrigin input parameter is
true, this specifies that the CLASSORIGIN attribute MUST be present on
all appropriate elements in each returned Object. If false, no
CLASSORIGIN attributes are present in each returned 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_INVALID_CLASS (in this namespace), CIM_ERR_FAILED (some other unspecified error occurred)
public java.util.Enumeration enumerateInstances(CIMObjectPath path, boolean deep, boolean localOnly, boolean includeQualifiers, boolean includeClassOrigin, java.lang.String[] propertyList) throws CIMException
enumerateInstances
in interface CIMOMHandle
path
- The CIMObjectPath identifying the class whose instances are
to be enumerated. Only
the name space and class name components are used. Any other
information (e.g. keys) is ignored.deep
- If false, each returned instance will only contain inherited
and local properties and methods of the specified class. If true, each
returned instance will also contain any additional properties and methods
defined in all classes derived from the specified class.localOnly
- If true, only the non-inherited properties and methods
are returned. If fals, all properties and methods are returned.includeQualifiers
- If the IncludeQualifiers input parameter is true
this specifies that all Qualifiers for each Object (including Qualifiers
on the Object and on any returned Properties) MUST be included.
If false no Qualifiers are present in the returned Object.includeClassOrigin
- If the IncludeClassOrigin input parameter is
true, this specifies that the CLASSORIGIN attribute MUST be present on
all appropriate elements in each returned Object. If false, no
CLASSORIGIN attributes are present in each returned Object.propertyList
- If the PropertyList input parameter is not NULL, the
members of the array define one or more Property names. Each returned
Object MUST NOT include elements for any Properties missing from this
list. Note that if LocalOnly is specified as true (or DeepInheritance is
specified as false) this acts as an additional filter on the set of
Properties returned (for example, 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 Object. 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 Object.
If the PropertyList contains duplicate elements, the Server ignores the
duplicates but otherwise process the request normally. If the
PropertyList contains elements which are invalid Property names for any
target Object, the Server ignores such entries but otherwise process the
request normally.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_FAILED (some other unspecified error occurred)
public java.util.Enumeration enumQualifierTypes(CIMObjectPath path) throws CIMException
enumQualifierTypes
in interface CIMOMHandle
path
- The CIMObjectPath identifying the namespace whose
qualifier definitions are to be enumerated.CIMException
- TIf unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED, CIM_ERR_NOT_SUPPORTED, CIM_ERR_INVALID_NAMESPACE, CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters), CIM_ERR_FAILED (some other unspecified error occurred)
public CIMClass getClass(CIMObjectPath name) throws CIMException
name
- the CIMObjectPath that identifies the CIM classCIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED, CIM_ERR_INVALID_NAMESPACE, CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters), CIM_ERR_NOT_FOUND (the request CIM Class does not exist in the specified namespace) CIM_ERR_FAILED (some other unspecified error occurred)
enumerateClasses(javax.wbem.cim.CIMObjectPath)
,
enumerateClassNames(javax.wbem.cim.CIMObjectPath)
public CIMClass getClass(CIMObjectPath name, boolean localOnly) throws CIMException
name
- the CIMObjectPath that identifies the CIM classlocalOnly
- if true, only the non-inherited properties and
methods are returned, otherwise all properties
and methods are returned.CIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED, CIM_ERR_INVALID_NAMESPACE, CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters), CIM_ERR_NOT_FOUND (the request CIM Class does not exist in the specified namespace) CIM_ERR_FAILED (some other unspecified error occurred)
enumerateClasses(javax.wbem.cim.CIMObjectPath)
,
enumerateClassNames(javax.wbem.cim.CIMObjectPath)
public CIMClass getClass(CIMObjectPath name, boolean localOnly, boolean includeQualifiers) throws CIMException
name
- the CIMObjectPath that identifies the CIM classlocalOnly
- If true, only the non-inherited properties and
methods are returned. If false, all properties
and methods are returned.includeQualifiers
- If the IncludeQualifiers input parameter is true
this specifies that all Qualifiers for each Object (including Qualifiers
on the Object and on any returned Properties) MUST be included.
If false no Qualifiers are present in the returned Object.CIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED, CIM_ERR_INVALID_NAMESPACE, CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters), CIM_ERR_NOT_FOUND (the request CIM Class does not exist in the specified namespace) CIM_ERR_FAILED (some other unspecified error occurred)
enumerateClasses(javax.wbem.cim.CIMObjectPath)
,
enumerateClassNames(javax.wbem.cim.CIMObjectPath)
public CIMClass getClass(CIMObjectPath name, boolean localOnly, boolean includeQualifiers, boolean includeClassOrigin) throws CIMException
name
- the CIMObjectPath that identifies the CIM classlocalOnly
- iIf true, only the non-inherited properties and
methods are returned. If false, all properties
and methods are returned.includeQualifiers
- If the IncludeQualifiers input parameter is true
this specifies that all Qualifiers for each Object (including Qualifiers
on the Object and on any returned Properties) MUST be included.
If false no Qualifiers are present in the returned Object.includeClassOrigin
- If the IncludeClassOrigin input parameter is
true, this specifies that the CLASSORIGIN attribute MUST be present on
all appropriate elements in each returned Object. If false, no
CLASSORIGIN attributes are present in each returned Object.CIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED, CIM_ERR_INVALID_NAMESPACE, CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters), CIM_ERR_NOT_FOUND (the request CIM Class does not exist in the specified namespace) CIM_ERR_FAILED (some other unspecified error occurred)
enumerateClasses(javax.wbem.cim.CIMObjectPath)
,
enumerateClassNames(javax.wbem.cim.CIMObjectPath)
public CIMClass getClass(CIMObjectPath name, boolean localOnly, boolean includeQualifiers, boolean includeClassOrigin, java.lang.String[] propertyList) throws CIMException
getClass
in interface CIMOMHandle
name
- the CIMObjectPath that identifies the CIM classlocalOnly
- If true, only the non-inherited properties and
methods are returned. If false, all properties
and methods are returned.includeQualifiers
- If the IncludeQualifiers input parameter is true
this specifies that all Qualifiers for each Object (including Qualifiers
on the Object and on any returned Properties) MUST be included.
If false no Qualifiers are present in the returned Object.includeClassOrigin
- If the IncludeClassOrigin input parameter is
true, this specifies that the CLASSORIGIN attribute MUST be present on
all appropriate elements in each returned Object. If false, no
CLASSORIGIN attributes are present in each returned Object.propertyList
- If the PropertyList input parameter is not NULL, the
members of the array define one or more Property names. Each returned
Object MUST NOT include elements for any Properties missing from this
list. Note that if LocalOnly is specified as true (or DeepInheritance is
specified as false) this acts as an additional filter on the set of
Properties returned (for example, 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 Object. 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 Object.
If the PropertyList contains duplicate elements, the Server ignores the
duplicates but otherwise process the request normally. If the
PropertyList contains elements which are invalid Property names for any
target Object, the Server ignores such entries but otherwise process the
request normally.CIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED, CIM_ERR_INVALID_NAMESPACE, CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters), CIM_ERR_NOT_FOUND (the request CIM Class does not exist in the specified namespace) CIM_ERR_FAILED (some other unspecified error occurred)
enumerateClasses(javax.wbem.cim.CIMObjectPath)
,
enumerateClassNames(javax.wbem.cim.CIMObjectPath)
public CIMInstance getInstance(CIMObjectPath name) throws CIMException
name
- CIM Object Path that identifies this CIM instance. This
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)
enumerateInstances(javax.wbem.cim.CIMObjectPath)
,
enumerateInstanceNames(javax.wbem.cim.CIMObjectPath)
public CIMInstance getInstance(CIMObjectPath name, boolean localOnly) throws CIMException
name
- CIM Object Path that identifies this CIM instance. This
must include all of the keys.localOnly
- If true, only the non-inherited properties and
methods are returned. If false, all properties
and methods are returned.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)
enumerateInstances(javax.wbem.cim.CIMObjectPath)
,
enumerateInstanceNames(javax.wbem.cim.CIMObjectPath)
public CIMInstance getInstance(CIMObjectPath name, boolean localOnly, boolean includeQualifiers) throws CIMException
name
- CIM Object Path that identifies this CIM instance. This
must include all of the keys.localOnly
- If true, only the non-inherited properties and
methods are returned. If false, all properties
and methods are returned.includeQualifiers
- If the IncludeQualifiers input parameter is true
this specifies that all Qualifiers for each Object (including Qualifiers
on the Object and on any returned Properties) MUST be included.
If false no Qualifiers are present in the returned instance.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)
enumerateInstances(javax.wbem.cim.CIMObjectPath)
,
enumerateInstanceNames(javax.wbem.cim.CIMObjectPath)
public CIMInstance getInstance(CIMObjectPath name, boolean localOnly, boolean includeQualifiers, boolean includeClassOrigin) throws CIMException
name
- CIM Object Path that identifies this CIM instance. This
must include all of the keys.localOnly
- iIf true, only the non-inherited properties and
methods are returned. If false, all properties
and methods are returned.includeQualifiers
- If the IncludeQualifiers input parameter is true
this specifies that all Qualifiers for each Object (including Qualifiers
on the Object and on any returned Properties) MUST be included.
If false no Qualifiers are present in the returned instance.includeClassOrigin
- If the IncludeClassOrigin input parameter is
true, this specifies that the CLASSORIGIN attribute MUST be present on
all appropriate elements in each returned Object. If false, no
CLASSORIGIN attributes are present in each returned 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_INVALID_CLASS (in this namespace), CIM_ERR_NOT_FOUND (if instance does not exist), CIM_ERR_FAILED (some other unspecified error occurred)
enumerateInstances(javax.wbem.cim.CIMObjectPath)
,
enumerateInstanceNames(javax.wbem.cim.CIMObjectPath)
public CIMInstance getInstance(CIMObjectPath name, boolean localOnly, boolean includeQualifiers, boolean includeClassOrigin, java.lang.String[] propertyList) throws CIMException
getInstance
in interface CIMOMHandle
name
- CIM Object Path that identifies this CIM instance. This
must include all of the keys.localOnly
- If true, only the non-inherited properties and
methods are returned. If false, all properties
and methods are returned.includeQualifiers
- If the IncludeQualifiers input parameter is true
this specifies that all Qualifiers for each Object (including Qualifiers
on the Object and on any returned Properties) MUST be included.
If false no Qualifiers are present in the returned Object.includeClassOrigin
- If the IncludeClassOrigin input parameter is
true, this specifies that the CLASSORIGIN attribute MUST be present on
all appropriate elements in each returned Object. If false, no
CLASSORIGIN attributes are present in each returned Object.propertyList
- If the PropertyList input parameter is not NULL, the
members of the array define one or more Property names. Each returned
Object MUST NOT include elements for any Properties missing from this
list. Note that if LocalOnly is specified as true (or DeepInheritance is
specified as false) this acts as an additional filter on the set of
Properties returned (for example, 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 Object. 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 Object.
If the PropertyList contains duplicate elements, the Server ignores the
duplicates but otherwise process the request normally. If the
PropertyList contains elements which are invalid Property names for any
target Object, the Server ignores such entries but otherwise process the
request normally.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)
enumerateInstances(javax.wbem.cim.CIMObjectPath)
,
enumerateInstanceNames(javax.wbem.cim.CIMObjectPath)
public CIMValue invokeMethod(CIMObjectPath name, java.lang.String methodName, java.util.Vector inParams, java.util.Vector outParams) throws CIMException
invokeMethod
in interface CIMOMHandle
name
- CIM object path of the object whose method must
be invoked. It must include all of the keys.methodName
- the string name of the method to be invokedinParams
- the input parameters specified as a vector of CIMValue.outParams
- The output parameters, the CIMValue of these parameters
will be appended to the outParams vector.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_NOT_FOUND (if instance does not exist), CIM_ERR_METHOD_NOT_FOUND, CIM_ERR_METHOD_NOT_AVAILABLE, CIM_ERR_FAILED (some other unspecified error occurred)
public CIMQualifierType getQualifierType(CIMObjectPath name) throws CIMException
getQualifierType
in interface CIMOMHandle
name
- CIM object path that identifies the CIM qualifier typeCIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED, CIM_ERR_NOT_SUPPORTED, CIM_ERR_INVALID_NAMESPACE, CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters), CIM_ERR_NOT_FOUND (the requested Qualifier declaration did not exist), CIM_ERR_FAILED (some other unspecified error occurred)
public void createQualifierType(CIMObjectPath name, CIMQualifierType qt) throws CIMException
createQualifierType
in interface CIMOMHandle
name
- CIM object path that identifies the CIM
qualifier typeqt
- the CIM qualifier type to be addsCIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED, CIM_ERR_NOT_SUPPORTED, CIM_ERR_INVALID_NAMESPACE, CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters), CIM_ERR_FAILED (some other unspecified error occurred)
public void setQualifierType(CIMObjectPath name, CIMQualifierType qt) throws CIMException
setQualifierType
in interface CIMOMHandle
name
- CIM object path that identifies the CIM
qualifier typeqt
- the CIM qualifier type to be addedCIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED, CIM_ERR_NOT_SUPPORTED, CIM_ERR_INVALID_NAMESPACE, CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters), CIM_ERR_FAILED (some other unspecified error occurred)
public void createClass(CIMObjectPath name, CIMClass cc) throws CIMException
createClass
in interface CIMOMHandle
name
- CIM object path that identifies the CIM
class to be addedcc
- CIMClass to be addedCIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED, CIM_ERR_NOT_SUPPORTED, CIM_ERR_INVALID_NAMESPACE, CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters), CIM_ERR_ALREADY_EXISTS (the CIM Class already exists) CIM_ERR_INVALID_SUPERCLASS (the putative CIM Class declares a non-existent superclass), CIM_ERR_FAILED (some other unspecified error occurred)
public void setClass(CIMObjectPath name, CIMClass cc) throws CIMException
setClass
in interface CIMOMHandle
name
- CIM object path that identifies the CIM
class to be modifiedcc
- CIMClass to be modifiedCIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED, CIM_ERR_NOT_SUPPORTED, CIM_ERR_INVALID_NAMESPACE, CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters), CIM_ERR_INVALID_SUPERCLASS (the putative CIM Class declares a non-existent superclass), CIM_ERR_CLASS_HAS_CHILDREN (the modification could not be performed because it was not possible to update the subclasses of the Class in a consistent fashion), CIM_ERR_CLASS_HAS_INSTANCES (the modification could not be performed because it was not possible to update the instances of the Class in a consistent fashion) CIM_ERR_FAILED (some other unspecified error occurred)
public CIMObjectPath createInstance(CIMObjectPath name, CIMInstance ci) throws CIMException
createInstance
in interface CIMOMHandle
name
- CIM object path that identifies the CIM
instance to be added. Only the
name space component is used. Any other
information (e.g. keys) is ignored.ci
- CIM instance to be added. Its keys and properties may be
initialized by either the client or server.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 name, CIMInstance ci) throws CIMException
setInstance
in interface CIMOMHandle
name
- CIM object path that identifies the CIM
instance to be modified. It must include
all of the keys.ci
- CIM instance to be modified. Its properties may be initialized by
either the client or server.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)
Example:
The following code sample gets instances for each element in a vector, updates the property value of b to 10 in each instance, and passes the updated instance to the CIM Object Manager.
For (int i=0; i(v.size(); i++) {
CIMInstance ci = cc.getInstance(v.elementAt(i));
ci.setProperty("b",new CIMValue(10));
// sets the instance in the current namespace.cc.setInstance(new CIMObjectPath(),ci);
}
public CIMValue getProperty(CIMObjectPath name, java.lang.String propertyName) throws CIMException
getProperty
in interface CIMOMHandle
name
- CIM object path that identifies the CIM
instance to be accessed. It must include all of the keys.propertyName
- Property whose value is required.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_NO_SUCH_PROPERTY (in this instance), CIM_ERR_TYPE_MISMATCH (for this property), CIM_ERR_FAILED (some other unspecified error occurred)
public void setProperty(CIMObjectPath name, java.lang.String propertyName, CIMValue newValue) throws CIMException
setProperty
in interface CIMOMHandle
name
- CIM object path that identifies the CIM
instance to be accessed. It must include all of the keys.propertyName
- Property whose value is to be set.newValue
- The value for property propertyName.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_NO_SUCH_PROPERTY (in this instance), CIM_ERR_TYPE_MISMATCH (for this property), CIM_ERR_FAILED (some other unspecified error occurred)
public java.lang.String encryptData(java.lang.String clearData) throws CIMException
encryptData
in interface CIMOMHandle
clearData
- The string to be encryptedCIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED, CIM_ERR_NOT_SUPPORTED, CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters), CIM_ERR_FAILED (some other unspecified error occurred)
public java.util.Enumeration execQuery(CIMObjectPath name, java.lang.String query, java.lang.String ql) throws CIMException
Only queries on class instances are supported.
execQuery
in interface CIMOMHandle
name
- CIMObjectPath that identifies the class in which
to query. Only the name space and class name components are used.
Any other information (e.g. keys) is ignored.query
- A string containing the text of the query.
This parameter cannot be null.ql
- String that identifies the query language to use
for parsing the query string (e.g. WQL). WQL level 1 is
the only currently supported query language.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)
Example:
The following API call returns an enumeration of all instances of
the device_class
.
cc.execQuery(new CIMObjectPath(),
SELECT * FROM device_class, cc.WQL)
public java.util.Enumeration associators(CIMObjectPath objectName, java.lang.String assocClass, java.lang.String resultClass, java.lang.String role, java.lang.String resultRole, boolean includeQualifiers, boolean includeClassOrigin, java.lang.String[] propertyList) throws CIMException
associators
in interface CIMOMHandle
objectName
- - Defines the source CIM Object whose associated
Objects are to be returned. This may be either
a Class name or Instance name (modelpath).assocClass
- The AssocClass input parameter, if not NULL, MUST be a
valid CIM Association Class name. It acts as a filter on the
returned set of Objects by mandating that each returned Object MUST be
associated to the source Object via an Instance of this
Class or one of its subclasses.resultClass
- The ResultClass input parameter, if not NULL, MUST be
a valid CIM Class name. It acts as a filter on the returned set of
Objects by mandating that each returned Object MUST be either an
Instance of this Class (or one of its subclasses) or be this
Class (or one of its subclasses).role
- The Role input parameter, if not NULL, MUST be a valid
Property name. It acts as a filter on the returned set of Objects by
mandating that each returned Object MUST be associated to the source
Object via an Association in which the source Object plays the specified
role (i.e. the name of the Property in the Association Class that refers
to the source Object MUST match the value of this parameter).resultRole
- The ResultRole input parameter, if not NULL, MUST be a
valid Property name. It acts as a filter on the returned set of Objects
by mandating that each returned Object MUST be associated to the source
Object via an Association in which the returned Object plays the
specified role (i.e. the name of the Property in the Association Class
that refers to the returned Object MUST match the value of this
parameter).includeQualifiers
- If the IncludeQualifiers input parameter is true
this specifies that all Qualifiers for each Object (including Qualifiers
on the Object and on any returned Properties) MUST be included as
includeClassOrigin
- If the IncludeClassOrigin input parameter is
true, this specifies that the CLASSORIGIN attribute MUST be present on
all appropriate elements in each returned Object. If false, no
CLASSORIGIN attributes are present in each returned Object.propertyList
- If the PropertyList input parameter is not NULL, the
members of the array define one or more Property names. Each returned
Object MUST NOT include elements for any Properties missing from this
list. Note that if LocalOnly is specified as true (or DeepInheritance is
specified as false) this acts as an additional filter on the set of
Properties returned (for example, 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 Object. 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 Object.
If the PropertyList contains duplicate elements, the Server ignores the
duplicates but otherwise process the request normally. If the
PropertyList contains elements which are invalid Property names for any
target Object, the Server ignores such entries but otherwise process the
request normally.
Clients SHOULD NOT explicitly specify properties in the PropertyList
parameter unless they have specified a non-NULL value for the
ResultClass parameter.CIMException.
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED CIM_ERR_NOT_SUPPORTED CIM_ERR_INVALID_NAMESPACE CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters) CIM_ERR_FAILED (some other unspecified error occurred)
public java.util.Enumeration associatorNames(CIMObjectPath objectName, java.lang.String assocClass, java.lang.String resultClass, java.lang.String role, java.lang.String resultRole) throws CIMException
associatorNames
in interface CIMOMHandle
objectName
- - Defines the source CIM Object whose associated
Objects are to be returned. This may be either
a Class name or Instance name (modelpath).assocClass
- The AssocClass input parameter, if not NULL, MUST be a
valid CIM Association Class name. It acts as a filter on the
returned set of Objects by mandating that each returned Object MUST be
associated to the source Object via an Instance of this
Class or one of its subclasses.resultClass
- The ResultClass input parameter, if not NULL, MUST be
a valid CIM Class name. It acts as a filter on the returned set of
Objects by mandating that each returned Object MUST be either an
Instance of this Class (or one of its subclasses) or be this
Class (or one of its subclasses).role
- The Role input parameter, if not NULL, MUST be a valid
Property name. It acts as a filter on the returned set of Objects by
mandating that each returned Object MUST be associated to the source
Object via an Association in which the source Object plays the specified
role (i.e. the name of the Property in the Association Class that refers
to the source Object MUST match the value of this parameter).resultRole
- The ResultRole input parameter, if not NULL, MUST be a
valid Property name. It acts as a filter on the returned set of Objects
by mandating that each returned Object MUST be associated to the source
Object via an Association in which the returned Object plays the
specified role (i.e. the name of the Property in the Association Class
that refers to the returned Object MUST match the value of this
parameter).CIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED CIM_ERR_NOT_SUPPORTED CIM_ERR_INVALID_NAMESPACE CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters) CIM_ERR_FAILED (some other unspecified error occurred)
public java.util.Enumeration references(CIMObjectPath objectName, java.lang.String resultClass, java.lang.String role, boolean includeQualifiers, boolean includeClassOrigin, java.lang.String[] propertyList) throws CIMException
references
in interface CIMOMHandle
objectName
- The ObjectName input parameter defines the target CIM
Object whose referring Objects are to be returned. This is either a Class
name or Instance name (model path).ResultClass
- The ResultClass input parameter, if not NULL, MUST be
a valid CIM Class name. It acts as a filter on the returned set of
Objects by mandating that each returned Object MUST be an Instance of
this Class (or one of its subclasses), or this Class (or one of its
subclasses).role
- The Role input parameter, if not NULL, MUST be a valid
Property name. It acts as a filter on the returned set of Objects by
mandating that each returned Objects MUST refer to the target Object via
a Property whose name matches the value of this parameter.includeQualifiers
- If the IncludeQualifiers input parameter is true
this specifies that all Qualifiers for each Object (including Qualifiers
on the Object and on any returned Properties) MUST be included as
includeClassOrigin
- If the IncludeClassOrigin input parameter is
true, this specifies that the CLASSORIGIN attribute MUST be present on
all appropriate elements in each returned Object. If false, no
CLASSORIGIN attributes are present in each returned Object.propertyList
- If the PropertyList input parameter is not NULL, the
members of the array define one or more Property names. Each returned
Object MUST NOT include elements for any Properties missing from this
list. Note that if LocalOnly is specified as true (or DeepInheritance is
specified as false) this acts as an additional filter on the set of
Properties returned (for example, 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 Object. 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 Object.
If the PropertyList contains duplicate elements, the Server ignores the
duplicates but otherwise process the request normally. If the
PropertyList contains elements which are invalid Property names for any
target Object, the Server ignores such entries but otherwise process the
request normally.
Clients SHOULD NOT explicitly specify properties in the PropertyList
parameter unless they have specified a non-NULL value for the
ResultClass parameter.CIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED CIM_ERR_NOT_SUPPORTED CIM_ERR_INVALID_NAMESPACE CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters) CIM_ERR_FAILED (some other unspecified error occurred)
public java.util.Enumeration referenceNames(CIMObjectPath objectName, java.lang.String resultClass, java.lang.String role) throws CIMException
referenceNames
in interface CIMOMHandle
objectName
- The ObjectName input parameter defines the target CIM
Object whose referring Objects are to be returned. This is either a Class
name or Instance name (model path).ResultClass
- The ResultClass input parameter, if not NULL, MUST be
a valid CIM Class name. It acts as a filter on the returned set of
Objects by mandating that each returned Object MUST be an Instance of
this Class (or one of its subclasses), or this Class (or one of its
subclasses).role
- The Role input parameter, if not NULL, MUST be a valid
Property name. It acts as a filter on the returned set of Objects by
mandating that each returned Objects MUST refer to the target Object via
a Property whose name matches the value of this parameter.CIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED CIM_ERR_NOT_SUPPORTED CIM_ERR_INVALID_NAMESPACE CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters) CIM_ERR_FAILED (some other unspecified error occurred)
public void addCIMListener(CIMListener l) throws CIMException
addCIMListener
in interface CIMOMHandle
l
- The listener to add.CIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED, CIM_ERR_NOT_SUPPORTED (if CIMOM does not support events), CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters), CIM_ERR_FAILED (some other unspecified error occurred)
public void removeCIMListener(CIMListener l) throws CIMException
removeCIMListener
in interface CIMOMHandle
l
- The listener to add.CIMException
- If unsuccessful, one of the following status
codes MUST be returned. The ORDERED list is:
CIM_ERR_ACCESS_DENIED, CIM_ERR_NOT_SUPPORTED (if CIMOM does not support events), CIM_ERR_FAILED (some other unspecified error occurred)
public BatchResult performBatchOperations(BatchHandle bc) throws CIMException
performBatchOperations
in interface CIMOMHandle
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |