The Client API package contains classes and methods that transfer data between applications and the CIM Object Manager. Applications use the CIMClient class to connect to the CIM Object Manager, and they use the methods listed in the following table in the CIMClient class to transfer data to and from the CIM Object Manager.
Table 5-3 Client Methods
Method |
Description |
---|---|
close |
Close the client connection to the CIM Object Manager. This interface frees resources used for the client session. |
createNameSpace |
Creates a CIM namespace, a directory containing classes and instances. When a client application connects to the CIM Object Manager, it specifies a namespace. All subsequent operations occur within that namespace on the CIM Object Manager host |
deleteNameSpace |
Deletes the specified namespace on the specified host. |
deleteClass |
Deletes the specified class. |
deleteInstance |
Deletes the specified instance. |
deleteQualifierType |
Deletes the specified qualifier type. |
enumClass |
Retrieves the specified class or classes from the CIM Object Manager. |
enumInstances |
Gets a list of instances for the specified class or classes. |
enumNameSpace |
Gets a list of namespaces. |
enumQualifierTypes |
Gets a set of qualifier types for the specified class or classes. |
getClass |
Gets the CIM class for the specified CIM object path. |
getInstance |
Gets the CIM instance for the specified CIM object path. |
getQualifierType |
Gets the qualifier type for the specified CIM object path. |
invokeMethod |
Executes the specified method on the specified object. A method is a declaration containing the method name, return type, and parameters in the method. |
setClass |
Invokes the CIM Object Manager on this client to add the specified CIM class to the specified namespace. |
setInstance |
Invokes the CIM Object Manager to add or update the specified CIM instance to the specified namespace. |
setQualifierType |
Invokes the CIM Object Manager to add the specified qualifier type to the specified namespace. |