|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.ObjectName
Object name represents the MBean reference.
Revisions:
20020521 Adrian Brock:
20020710 Adrian Brock:
20030114 Adrian Brock:
MBeanServer
,
Serialized FormConstructor Summary | |
ObjectName(String name)
|
|
ObjectName(String domain,
Hashtable table)
Construct a new ObjectName |
|
ObjectName(String domain,
String key,
String value)
Construct a new ObjectName |
Method Summary | |
boolean |
apply(ObjectName name)
Apply this query expression to an MBean. |
boolean |
equals(Object object)
|
String |
getCanonicalKeyPropertyListString()
|
String |
getCanonicalName()
The canonical form of the name is a String consisting of the domain part, a colon (:), the canonical key property list, and a pattern indication. |
String |
getDomain()
|
static ObjectName |
getInstance(ObjectName name)
Return an instance of ObjectName that can be used anywhere the given object can be used. |
static ObjectName |
getInstance(String name)
Return an instance of an ObjectName |
static ObjectName |
getInstance(String domain,
Hashtable table)
Return an instance of an ObjectName |
static ObjectName |
getInstance(String domain,
String key,
String value)
Return an instance of an ObjectName |
String |
getKeyProperty(String property)
|
Hashtable |
getKeyPropertyList()
|
String |
getKeyPropertyListString()
Construct the key property list, ignoring patters Note, it might not be the same order |
int |
hashCode()
|
boolean |
isDomainPattern()
|
boolean |
isPattern()
|
boolean |
isPropertyPattern()
|
static String |
quote(String value)
Quotes the passed string suitable for use as a value in an ObjectName. |
void |
setMBeanServer(MBeanServer server)
Set the MBeanServer for this query. |
String |
toString()
|
static String |
unquote(String value)
Unquotes a string, unquote(quote(s)).equals(s) is always true. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ObjectName(String name) throws MalformedObjectNameException, NullPointerException
name
- a string representation of the object name
MalformedObjectNameException
- for an invalid object name
NullPointerException
- for a null namepublic ObjectName(String domain, String key, String value) throws MalformedObjectNameException, NullPointerException
domain
- the domain of the object namekey
- the key of the single propertyvalue
- the value of the single property
MalformedObjectNameException
- for an invalid object name
NullPointerException
- for a null parameterpublic ObjectName(String domain, Hashtable table) throws MalformedObjectNameException, NullPointerException
domain
- the domain of the object nametable
- of hashtable for key property pairs
MalformedObjectNameException
- for an invalid object name
NullPointerException
- for a null parameterMethod Detail |
public static ObjectName getInstance(String name) throws MalformedObjectNameException, NullPointerException
name
- a string representation of the object name
MalformedObjectNameException
- for an invalid object name
NullPointerException
- for a null namepublic static ObjectName getInstance(String domain, String key, String value) throws MalformedObjectNameException, NullPointerException
domain
- the domain of the object namekey
- the key of the single propertyvalue
- the value of the single property
MalformedObjectNameException
- for an invalid object name
NullPointerException
- for a null parameterpublic static ObjectName getInstance(String domain, Hashtable table) throws MalformedObjectNameException, NullPointerException
domain
- the domain of the object nametable
- of hashtable for key property pairs
MalformedObjectNameException
- for an invalid object name
NullPointerException
- for a null parameterpublic static ObjectName getInstance(ObjectName name) throws NullPointerException
name
- - an instance of the ObjectName class or of a subclass
NullPointerException
public static String quote(String value) throws NullPointerException
value
- the string to quote
NullPointerException
- for a null stringpublic static String unquote(String value) throws IllegalArgumentException, NullPointerException
value
- the string to unquote
IllegalArgumentException
- when the string is
not of a form that can be unquoted.
NullPointerException
- for a null stringpublic boolean equals(Object object)
public int hashCode()
public String toString()
public boolean isPattern()
public String getCanonicalName()
public String getDomain()
public String getKeyProperty(String property) throws NullPointerException
NullPointerException
public Hashtable getKeyPropertyList()
public String getKeyPropertyListString()
public String getCanonicalKeyPropertyListString()
public boolean isPropertyPattern()
public boolean isDomainPattern()
public boolean apply(ObjectName name) throws NullPointerException
QueryExp
name
- the object name of the mbean
NullPointerException
public void setMBeanServer(MBeanServer server)
QueryExp
setMBeanServer
in interface QueryExp
server
- the MBeanServer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |