javax.cim
public class CIMObjectPath extends Object implements Serializable
CIMObjectPath
is a reference to a specified CIM class, CIM
instance or CIM qualifier. It is only valid in context of an active
connection to a CIM object manager on a host. In order to uniquely identify a
given object on a host, a CIM object path includes the namespace, object name
and keys (if the object is an instance). The namespace is relative to the
namespace to which the CIMClient
is currently connected. One or
more Key properties are used to uniquely identify an instance of a class. Key
properties are marked with the KEY qualifier.
http://myserver/root/cimv2:My_ComputerSystem.Name=mycomputer,
CreationClassName=My_ComputerSystem
http://myserver/root/cimv2
- Specifies the
"root/cimv2"
namespace on the host myserver
.My_ComputerSystem.Name=mycomputer,CreationClassName=My_ComputerSystem
- Specifies a My_ComputerSystem
object which is
uniquely identified by two key properties and their corresponding values in
the format (key=value): Name=mycomputer
CreationClassName=My_ComputerSystem
Constructor Summary | |
---|---|
CIMObjectPath(String pObjectPath)
Constructs a CIM Object Path referencing a CIM element. | |
CIMObjectPath(String pElementName, String pNamespace)
Constructs a CIM Object Path referencing a CIM element along in the
specified namespace. | |
CIMObjectPath(String pObjectName, String pNamespace, CIMProperty<?>[] pKeys)
Constructs a CIM Object Path referencing an instance of the specified CIM
element as defined in the specified namespace and identified by the given
key properties and their corresponding values. | |
CIMObjectPath(String pHost, String pNamespace, String pObjectName, CIMProperty<?>[] pKeys)
Constructs a CIM Object Path referencing an instance of the specified CIM
element as defined in the specified namespace on the specified host and
identified by the given key properties and their corresponding values.
| |
CIMObjectPath(String pScheme, String pHost, String pPort, String pNamespace, String pObjectName, CIMProperty<?>[] pKeys)
Constructs a CIM Object Path referencing an instance of the specified CIM
element as defined in the specified namespace on the specified host and
identified by the given key properties and their corresponding values.
| |
CIMObjectPath(String pScheme, String pHost, String pPort, String pNamespace, String pObjectName, CIMProperty<?>[] pKeys, String pXmlSchemaName)
Constructs a CIM Object Path referencing an instance of the specified CIM
element as defined in the specified namespace on the specified host and
identified by the given key properties and their corresponding values.
|
Method Summary | |
---|---|
boolean | equalsModelPath(CIMObjectPath pModelPath) |
String | getHost()
Gets the host.
|
CIMProperty<?> | getKey(String pName)
Gets a key property by name.
|
CIMProperty<?>[] | getKeys()
Gets all key properties.
|
String | getNamespace()
Gets the namespace.
|
String | getObjectName()
Gets the object name. |
String | getPort()
Gets the the port on the host to which the connection was established.
|
String | getScheme()
Get the connection scheme.
|
http://myserver.org:5066/root/cimv2:My_ComputerSystem.Name="mycmp",CreationClassName="My_ComputerSystem"
http://myserver.org/root/cimv2:My_ComputerSystem.Name="mycmp",CreationClassName="My_ComputerSystem"
//myserver.org/root/cimv2:My_ComputerSystem
/root/cimv2:My_ComputerSystem
Parameters: pObjectPath
The string representation of an
object path for a CIM element that which will be parsed and
used to initialize the object.
Parameters: pElementName - The name of a CIM element. pNamespace - The namespace relative to the current namespace.
Parameters: pObjectName
- The name of the CIM element referenced. pNamespace
- The namespace in which the CIM element is defined. pKeys
- CIMProperty[]
The keys and their corresponding
values that identify an instance of the CIM element.
Parameters: pHost
- The host name or IP Address. pNamespace
- The namepace in which the CIM element is defined. pObjectName
- The name of the CIM element referenced. pKeys
- CIMProperty[]
The keys and their corresponding
values that identify an instance of the CIM element.
Parameters: pScheme
- The connection scheme to the host (e.g. http, https, ...) pHost
- The host name or IP Address. pPort
- The port on the host to which the connection was established pNamespace
- The namepace in which the CIM element is defined. pObjectName
- The name of the CIM element referenced. pKeys
- CIMProperty[]
The keys and their corresponding
values that identify an instance of the CIM element.
Parameters: pScheme
The connection scheme to the host (e.g. http, https, ...) pHost
The host name or IP Address. pPort
The port on the host to which the connection was established. pNamespace
The namepace in which the CIM element is defined. pObjectName
The name of the CIM element referenced. pKeys
CIMProperty[]
The keys and their corresponding
values that identify an instance of the CIM element. pXmlSchemaName
The name of the XML Schema for this object. This is only
needed for protocols that require this information.
Parameters: pModelPath
Returns: boolean
Returns: The name of the host.
Parameters: pName - The name of the key property to retrieve.
Returns: The CIMProperty
with the given name, or
null
if it is not found.
Returns: The container of key properties.
Returns: The name of the namespace.
Returns: The name of this CIM element.
Returns: The port on the host.
Returns: The connection scheme (e.g. http, https,...)