|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.ObjectName
Object name represents the MBean reference.
MBeanServer
(src) ,
Serialized FormConstructor Summary | |
ObjectName(java.lang.String name)
|
|
ObjectName(java.lang.String domain,
java.util.Hashtable table)
Construct a new ObjectName |
|
ObjectName(java.lang.String domain,
java.lang.String key,
java.lang.String value)
Construct a new ObjectName |
Method Summary | |
boolean |
apply(ObjectName (src) name)
Apply this query expression to an MBean. |
boolean |
equals(java.lang.Object object)
|
java.lang.String |
getCanonicalKeyPropertyListString()
|
java.lang.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. |
java.lang.String |
getDomain()
|
static ObjectName (src) |
getInstance(ObjectName (src) name)
Return an instance of ObjectName that can be used anywhere the given object can be used. |
static ObjectName (src) |
getInstance(java.lang.String name)
Return an instance of an ObjectName |
static ObjectName (src) |
getInstance(java.lang.String domain,
java.util.Hashtable table)
Return an instance of an ObjectName |
static ObjectName (src) |
getInstance(java.lang.String domain,
java.lang.String key,
java.lang.String value)
Return an instance of an ObjectName |
java.lang.String |
getKeyProperty(java.lang.String property)
|
java.util.Hashtable |
getKeyPropertyList()
|
java.lang.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 java.lang.String |
quote(java.lang.String value)
Quotes the passed string suitable for use as a value in an ObjectName. |
void |
setMBeanServer(MBeanServer (src) server)
Set the MBeanServer for this query. |
java.lang.String |
toString()
|
static java.lang.String |
unquote(java.lang.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(java.lang.String name) throws MalformedObjectNameException (src) , java.lang.NullPointerException
name
- a string representation of the object name
MalformedObjectNameException (src)
- for an invalid object name
java.lang.NullPointerException
- for a null namepublic ObjectName(java.lang.String domain, java.lang.String key, java.lang.String value) throws MalformedObjectNameException (src) , java.lang.NullPointerException
domain
- the domain of the object namekey
- the key of the single propertyvalue
- the value of the single property
MalformedObjectNameException (src)
- for an invalid object name
java.lang.NullPointerException
- for a null parameterpublic ObjectName(java.lang.String domain, java.util.Hashtable table) throws MalformedObjectNameException (src) , java.lang.NullPointerException
domain
- the domain of the object nametable
- of hashtable for key property pairs
MalformedObjectNameException (src)
- for an invalid object name
java.lang.NullPointerException
- for a null parameterMethod Detail |
public static ObjectName (src) getInstance(java.lang.String name) throws MalformedObjectNameException (src) , java.lang.NullPointerException
name
- a string representation of the object name
MalformedObjectNameException (src)
- for an invalid object name
java.lang.NullPointerException
- for a null namepublic static ObjectName (src) getInstance(java.lang.String domain, java.lang.String key, java.lang.String value) throws MalformedObjectNameException (src) , java.lang.NullPointerException
domain
- the domain of the object namekey
- the key of the single propertyvalue
- the value of the single property
MalformedObjectNameException (src)
- for an invalid object name
java.lang.NullPointerException
- for a null parameterpublic static ObjectName (src) getInstance(java.lang.String domain, java.util.Hashtable table) throws MalformedObjectNameException (src) , java.lang.NullPointerException
domain
- the domain of the object nametable
- of hashtable for key property pairs
MalformedObjectNameException (src)
- for an invalid object name
java.lang.NullPointerException
- for a null parameterpublic static ObjectName (src) getInstance(ObjectName (src) name) throws java.lang.NullPointerException
name
- - an instance of the ObjectName class or of a subclass
java.lang.NullPointerException
public static java.lang.String quote(java.lang.String value) throws java.lang.NullPointerException
value
- the string to quote
java.lang.NullPointerException
- for a null stringpublic static java.lang.String unquote(java.lang.String value) throws java.lang.IllegalArgumentException, java.lang.NullPointerException
value
- the string to unquote
java.lang.IllegalArgumentException
- when the string is
not of a form that can be unquoted.
java.lang.NullPointerException
- for a null stringpublic boolean equals(java.lang.Object object)
public int hashCode()
public java.lang.String toString()
public boolean isPattern()
public java.lang.String getCanonicalName()
public java.lang.String getDomain()
public java.lang.String getKeyProperty(java.lang.String property) throws java.lang.NullPointerException
java.lang.NullPointerException
public java.util.Hashtable getKeyPropertyList()
public java.lang.String getKeyPropertyListString()
public java.lang.String getCanonicalKeyPropertyListString()
public boolean isPropertyPattern()
public boolean isDomainPattern()
public boolean apply(ObjectName (src) name) throws java.lang.NullPointerException
QueryExp (src)
apply
in interface QueryExp (src)
name
- the object name of the mbean
java.lang.NullPointerException
public void setMBeanServer(MBeanServer (src) server)
QueryExp (src)
setMBeanServer
in interface QueryExp (src)
server
- the MBeanServer
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |