org.mc4j.ems.connection.bean
Interface EmsBeanName

All Superinterfaces:
java.lang.Comparable

public interface EmsBeanName
extends java.lang.Comparable

An MBean name.


Method Summary
 boolean apply(java.lang.String name)
          Tests whether this name, which may be a pattern, matches another MBean name.
 java.lang.String getCanonicalName()
          Returns the canonical form of the name as defined by ObjectName#getCanonicalName().
 java.lang.String getDomain()
          Returns the domain of this name.
 java.util.Map<java.lang.String,java.lang.String> getKeyProperties()
          Returns a Map of this name's key properties.
 java.lang.String getKeyProperty(java.lang.String key)
          Returns the value for the key property with the specified name.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getDomain

java.lang.String getDomain()
Returns the domain of this name.

Returns:
the domain of this name

getCanonicalName

java.lang.String getCanonicalName()
Returns the canonical form of the name as defined by ObjectName#getCanonicalName().

Returns:
the canonical form of the name as defined by ObjectName#getCanonicalName()

getKeyProperties

java.util.Map<java.lang.String,java.lang.String> getKeyProperties()
Returns a Map of this name's key properties. The keys of the Map are the key property names, and the values are the values of the corresponding key properties.

Returns:
a Map of this name's key properties

getKeyProperty

java.lang.String getKeyProperty(java.lang.String key)
Returns the value for the key property with the specified name.

Parameters:
name - the key property name
Returns:
the value of the key property, or null if there is no such key property in this DBeanName.
Throws:
java.lang.NullPointerException - If name is null

apply

boolean apply(java.lang.String name)
Tests whether this name, which may be a pattern, matches another MBean name. If name is a pattern, the result is false. If this EmsBeanName is a pattern, the result is true if and only if name matches the pattern. If neither this EmsBeanName nor name is a pattern, the result is true if and only if the two EmsBeanNames have canonical String forms that are equal.

Parameters:
name - the MBean name to compare to
Returns:
true if name matches this EmsBeanName
Throws:
java.lang.NullPointerException - if name is null