com.jrockit.mc.rjmx.subscription
Class AttributeDescriptor

java.lang.Object
  extended by com.jrockit.mc.rjmx.subscription.AttributeDescriptor

public final class AttributeDescriptor
extends java.lang.Object

Simple data class representing the fully qualified name for an attribute, i.e. the ObjectName of the MBean that contains the attribute, and the name of the attribute.

Author:
Marcus Hirt

Constructor Summary
AttributeDescriptor(javax.management.ObjectName objectName, java.lang.String attributeName)
          Constructor.
AttributeDescriptor(java.lang.String beanName, java.lang.String attributeName)
          Constructor.
 
Method Summary
static AttributeDescriptor createFromQualifiedName(java.lang.String qualName)
          Factory method for creating an AttributeDescriptor from a qualified name.
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAttributeName()
          Returns the attribute name.
 javax.management.ObjectName getObjectName()
          Returns the object name (mbean) part of the descriptor.
 java.lang.String getQualifiedName()
          Returns the fully qualified name of the attribute descriptor.
 int hashCode()
           
 boolean isCompositeChild()
          Returns true if this AttributeDescriptor is a composite child.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeDescriptor

public AttributeDescriptor(java.lang.String beanName,
                           java.lang.String attributeName)
Constructor.

Parameters:
beanName - the canonical name of the MBean.
attributeName - the name of the attribute.
Throws:
java.lang.NullPointerException - if beanName is null.

AttributeDescriptor

public AttributeDescriptor(javax.management.ObjectName objectName,
                           java.lang.String attributeName)
Constructor.

Parameters:
objectName - the object name of the MBean.
attributeName - the name of the attribute.
Throws:
java.lang.NullPointerException - if objectName is null.
Method Detail

getQualifiedName

public java.lang.String getQualifiedName()
Returns the fully qualified name of the attribute descriptor.

Returns:
the fully qualified name of the attribute descriptor.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getObjectName

public javax.management.ObjectName getObjectName()
Returns the object name (mbean) part of the descriptor.

Returns:
the object name (mbean) part of the descriptor.

getAttributeName

public java.lang.String getAttributeName()
Returns the attribute name.

Returns:
the attribute name.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isCompositeChild

public boolean isCompositeChild()
Returns true if this AttributeDescriptor is a composite child.

Returns:
true if this AttributeDescriptor corresponds to a composite child, false otherwise.

createFromQualifiedName

public static AttributeDescriptor createFromQualifiedName(java.lang.String qualName)
Factory method for creating an AttributeDescriptor from a qualified name.

Parameters:
qualName - the qualified name to create the AttributeDescriptor from.
Returns:
the created AttributeDescriptor.


Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.