| |
|
| java.lang.Object javax.management.ObjectName
ObjectName | public class ObjectName implements Serializable(Code) | | This class represents the object name of an MBean.
An instance of this class can be used to represent:
- An object name
- An object name pattern, within the context of a query
|
Constructor Summary | |
public | ObjectName(String name) Allows an object name to be created from the given string. | public | ObjectName(String domain, Hashtable table) Allows an object name with several key properties to be created. | public | ObjectName(String domain, String key, String value) Allows an object name to be created using only one key property. |
Method Summary | |
public boolean | equals(Object object) Compares the current object name with another object name.
Parameters: object - - The object name that the current object name is to becompared with. | public java.lang.String | getCanonicalKeyPropertyListString() Returns a string representation of the list of key properties in which
the key properties are sorted in lexical order. | public java.lang.String | getCanonicalName() Returns the canonical form of the name; that is, a string representation
where the properties are sorted in lexical order. | public String | getDomain() Returns the domain part. | public String | getKeyProperty(String property) Obtains the value of a key property in a key property.
Parameters: property - - The property whose value is to be obtained. | public Hashtable | getKeyPropertyList() Returns a pointer to the list of key properties. | public java.lang.String | getKeyPropertyListString() Returns a string representation of the list of key properties specified at creation
time. | public int | hashCode() Returns a hash code for this object name. | public boolean | isPattern() Checks if a name to be used is a pattern for a query. | public boolean | isPropertyPattern() Checks whether the object name is a pattern on the key properties. | public String | toString() Returns a string representation of the object name. |
serialVersionUID | final static long serialVersionUID(Code) | | |
ObjectName | public ObjectName(String name) throws MalformedObjectNameException(Code) | | Allows an object name to be created from the given string. If the string
does not have the right format an MalformedObjectNameException should be
raised.
Parameters: name - - A string representation of the object name. throws: MalformedObjectNameException - - the string passed in parameterdoes not have the right format. |
ObjectName | public ObjectName(String domain, Hashtable table) throws javax.management.MalformedObjectNameException(Code) | | Allows an object name with several key properties to be created. If the
parameters do not have the right format an MalformedObjectNameException
should be raised.
Parameters: domain - - The domain part of the object name. Parameters: table - - A hash table containing one or more search keys.Each search key is an attribute-value pair. throws: MalformedObjectNameException - - the string passed in parameterdoes not have the right format. |
ObjectName | public ObjectName(String domain, String key, String value) throws MalformedObjectNameException(Code) | | Allows an object name to be created using only one key property. If the
parameters do not have the right format an MalformedObjectNameException
should be raised.
Parameters: domain - - The domain part of the object name. Parameters: key - - The attribute in the key property of the object name. Parameters: value - - The value in the key property of the object name. throws: MalformedObjectNameException - - the string passed in parameterdoes not have the right format. |
equals | public boolean equals(Object object)(Code) | | Compares the current object name with another object name.
Parameters: object - - The object name that the current object name is to becompared with. True if the two object names are equal, otherwise false. |
getCanonicalKeyPropertyListString | public java.lang.String getCanonicalKeyPropertyListString()(Code) | | Returns a string representation of the list of key properties in which
the key properties are sorted in lexical order. This is used in
lexicographic comparisons performed in order to select MBeans based on
their key property list.
This returns a string representation of the list of key propertiesin which the key properties are sorted in lexical order. |
getCanonicalName | public java.lang.String getCanonicalName()(Code) | | Returns the canonical form of the name; that is, a string representation
where the properties are sorted in lexical order.
Returns the canonical form of the name; that is, a stringrepresentation where the properties are sorted in lexical order. |
getDomain | public String getDomain()(Code) | | Returns the domain part.
This returns the domain name |
getKeyProperty | public String getKeyProperty(String property)(Code) | | Obtains the value of a key property in a key property.
Parameters: property - - The property whose value is to be obtained. The value of the property. |
getKeyPropertyList | public Hashtable getKeyPropertyList()(Code) | | Returns a pointer to the list of key properties.
This returns a HashTable of key properties |
getKeyPropertyListString | public java.lang.String getKeyPropertyListString()(Code) | | Returns a string representation of the list of key properties specified at creation
time.
This returns a string representation of the list of key properties |
hashCode | public int hashCode()(Code) | | Returns a hash code for this object name.
This returns a hash code of type int for this object name |
isPattern | public boolean isPattern()(Code) | | Checks if a name to be used is a pattern for a query.
True if the name is a pattern, otherwise false. |
isPropertyPattern | public boolean isPropertyPattern()(Code) | | Checks whether the object name is a pattern on the key properties.
true if the name is a pattern, otherwise false |
toString | public String toString()(Code) | | Returns a string representation of the object name.
This returns the string representation of the oject name |
|
|
|