API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.management. ObjectName View Source
Author(s)
Since
1.5
Version
Serial
Hierarchy
 Object
      ObjectName
Implements
 Comparable
 QueryExp
Subclasses
Description
@SuppressWarnings (value="serial")
public class ObjectName
  Represents the object name of an MBean, or a pattern that can match the names of several MBeans.
See also:   
Constructors
public ObjectName (String name) throws MalformedObjectNameException NullPointerException
  Construct an object name from the given string.
public ObjectName (String domain, Hashtable<String, String> table) throws MalformedObjectNameException NullPointerException
  Construct an object name with several key properties from a Hashtable.
public ObjectName (String domain, String key, String value) throws MalformedObjectNameException NullPointerException
  Construct an object name with exactly one key property.
Methods
Hide/Show inherited methods
public boolean apply (ObjectName name) throws NullPointerException [Specified in QueryExp]
  Test whether this ObjectName, which may be a pattern, matches another ObjectName.
public int compareTo (ObjectName name)
  Compares two ObjectName instances.
public boolean equals (Object object)
  Compares the current object name with another object name.
public String getCanonicalKeyPropertyListString ()
  Returns a string representation of the list of key properties, in which the key properties are sorted in lexical order.
public 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.
publicstatic ObjectName getInstance (ObjectName name) throws NullPointerException
  Return an instance of ObjectName that can be used anywhere the given object can be used.
publicstatic ObjectName getInstance (String name) throws MalformedObjectNameException NullPointerException
  Return an instance of ObjectName that can be used anywhere an object obtained with new ObjectName(name) can be used.
publicstatic ObjectName getInstance (String domain, Hashtable<String, String> table) throws MalformedObjectNameException NullPointerException
  Return an instance of ObjectName that can be used anywhere an object obtained with new ObjectName(domain, table) can be used.
publicstatic ObjectName getInstance (String domain, String key, String value) throws MalformedObjectNameException NullPointerException
  Return an instance of ObjectName that can be used anywhere an object obtained with new ObjectName(domain, key, value) can be used.
public String getKeyProperty (String property) throws NullPointerException
  Obtains the value associated with a key in a key property.
public Hashtable<String, String> getKeyPropertyList ()
  Returns the key properties as a Hashtable.
public 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 isDomainPattern ()
  Checks whether the object name is a pattern on the domain part.
public boolean isPattern ()
  Checks whether the object name is a pattern.
public boolean isPropertyListPattern ()
  Checks whether the object name is a pattern on the key property list.
public boolean isPropertyPattern ()
  Checks whether the object name is a pattern on the key properties.
public boolean isPropertyValuePattern ()
  Checks whether the object name is a pattern on the value part of at least one of the key properties.
public boolean isPropertyValuePattern (String property) throws NullPointerException IllegalArgumentException
  Checks whether the value associated with a key in a key property is a pattern.
publicstatic String quote (String s) throws NullPointerException
  Returns a quoted form of the given String, suitable for inclusion in an ObjectName.
public void setMBeanServer (MBeanServer mbs) [Specified in QueryExp]
public String toString ()
  Returns a string representation of the object name.
publicstatic String unquote (String q) throws IllegalArgumentException NullPointerException
  Returns an unquoted form of the given String.
Fields
Hide/Show inherited fields
publicfinalstatic ObjectName WILDCARD
  Defines the wildcard "*:*" ObjectName.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar