Java javax.management ObjectName fields, constructors, methods, implement or subclass

Example usage for Java javax.management ObjectName fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.management ObjectName.

The text is from its open source code.

Field

ObjectNameWILDCARD
Defines the wildcard "*:*" ObjectName.

Constructor

ObjectName(String name)
Construct an object name from the given string.
ObjectName(String domain, String key, String value)
Construct an object name with exactly one key property.
ObjectName(String domain, Hashtable table)
Construct an object name with several key properties from a Hashtable.

Method

booleanapply(ObjectName name)

Test whether this ObjectName, which may be a pattern, matches another ObjectName.

booleanequals(Object object)
Compares the current object name with another object name.
StringgetCanonicalKeyPropertyListString()
Returns a string representation of the list of key properties, in which the key properties are sorted in lexical order.
StringgetCanonicalName()

Returns the canonical form of the name; that is, a string representation where the properties are sorted in lexical order.

More precisely, 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.

The canonical key property list is the same string as described for #getCanonicalKeyPropertyListString() .

The pattern indication is:

  • empty for an ObjectName that is not a property list pattern;
  • an asterisk for an ObjectName that is a property list pattern with no keys; or
  • a comma and an asterisk (,*) for an ObjectName that is a property list pattern with at least one key.
StringgetDomain()
Returns the domain part.
ObjectNamegetInstance(String name)

Return an instance of ObjectName that can be used anywhere an object obtained with #ObjectName(String) new ObjectName(name) can be used.

ObjectNamegetInstance(ObjectName name)

Return an instance of ObjectName that can be used anywhere the given object can be used.

ObjectNamegetInstance(String domain, String key, String value)

Return an instance of ObjectName that can be used anywhere an object obtained with #ObjectName(String,String,String) new ObjectName(domain, key, value) can be used.

ObjectNamegetInstance(String domain, Hashtable table)

Return an instance of ObjectName that can be used anywhere an object obtained with #ObjectName(String,Hashtable) new ObjectName(domain, table) can be used.

StringgetKeyProperty(String property)
Obtains the value associated with a key in a key property.
HashtablegetKeyPropertyList()

Returns the key properties as a Hashtable.

StringgetKeyPropertyListString()

Returns a string representation of the list of key properties specified at creation time.

booleanisPattern()
Checks whether the object name is a pattern.
Stringquote(String s)

Returns a quoted form of the given String, suitable for inclusion in an ObjectName.

StringtoString()

Returns a string representation of the object name.

Stringunquote(String q)

Returns an unquoted form of the given String.