public final class ObjectNameManager
extends java.lang.Object
ObjectName
instances.ObjectName.getInstance(String)
Modifier and Type | Method and Description |
---|---|
static javax.management.ObjectName |
getInstance(java.lang.Object objectName)
Retrieve the
ObjectName instance corresponding to the supplied name. |
static javax.management.ObjectName |
getInstance(java.lang.String objectName)
Retrieve the
ObjectName instance corresponding to the supplied name. |
static javax.management.ObjectName |
getInstance(java.lang.String domainName,
java.util.Hashtable<java.lang.String,java.lang.String> properties)
Retrieve an
ObjectName instance with the specified domain name
and the supplied key/name properties. |
static javax.management.ObjectName |
getInstance(java.lang.String domainName,
java.lang.String key,
java.lang.String value)
Retrieve an
ObjectName instance for the specified domain and a
single property with the supplied key and value. |
public static javax.management.ObjectName getInstance(java.lang.Object objectName) throws javax.management.MalformedObjectNameException
ObjectName
instance corresponding to the supplied name.objectName
- the ObjectName
in ObjectName
or
String
formatObjectName
instancejavax.management.MalformedObjectNameException
- in case of an invalid object name specificationObjectName.ObjectName(String)
,
ObjectName.getInstance(String)
public static javax.management.ObjectName getInstance(java.lang.String objectName) throws javax.management.MalformedObjectNameException
ObjectName
instance corresponding to the supplied name.objectName
- the ObjectName
in String
formatObjectName
instancejavax.management.MalformedObjectNameException
- in case of an invalid object name specificationObjectName.ObjectName(String)
,
ObjectName.getInstance(String)
public static javax.management.ObjectName getInstance(java.lang.String domainName, java.lang.String key, java.lang.String value) throws javax.management.MalformedObjectNameException
ObjectName
instance for the specified domain and a
single property with the supplied key and value.domainName
- the domain name for the ObjectName
key
- the key for the single property in the ObjectName
value
- the value for the single property in the ObjectName
ObjectName
instancejavax.management.MalformedObjectNameException
- in case of an invalid object name specificationObjectName.ObjectName(String, String, String)
,
ObjectName.getInstance(String, String, String)
public static javax.management.ObjectName getInstance(java.lang.String domainName, java.util.Hashtable<java.lang.String,java.lang.String> properties) throws javax.management.MalformedObjectNameException
ObjectName
instance with the specified domain name
and the supplied key/name properties.domainName
- the domain name for the ObjectName
properties
- the properties for the ObjectName
ObjectName
instancejavax.management.MalformedObjectNameException
- in case of an invalid object name specificationObjectName.ObjectName(String, java.util.Hashtable)
,
ObjectName.getInstance(String, java.util.Hashtable)