com.jrockit.mc.rjmx.subscription
Interface IAttributeInfoService


public interface IAttributeInfoService

Manages IAttributeInfos and meta data associated with IAttributeInfos. This is one of the standard services usually available from an IConnectionHandle.

Author:
Marcus Hirt, Mattias Jo\xEBlson

Method Summary
 IAttributeInfo getAttributeInfo(AttributeDescriptor descriptor)
          Returns the basic IAttributeInfo associated with an AttributeDescriptor.
 java.util.Map<AttributeDescriptor,IAttributeInfo> getAvailableAttributes()
          Returns a map (<AttributeDescriptor, IAttributeInfo>) with all known attributes.
 java.util.Map<AttributeDescriptor,IAttributeInfo> getAvailableAttributes(javax.management.ObjectName mbeanName)
          Returns a map (<AttributeDescriptor, IAttributeInfo>) with all known attributes for given MBean.
 java.lang.Object getMetaData(AttributeDescriptor descriptor, java.lang.String dataKey)
          Looks up the specified piece of meta-data associated with the specified attribute.
 void setMetaData(AttributeDescriptor descriptor, java.lang.String dataKey, java.lang.Object data)
          Updates the meta-data associated with the attribute.
 

Method Detail

getAvailableAttributes

java.util.Map<AttributeDescriptor,IAttributeInfo> getAvailableAttributes()
Returns a map (<AttributeDescriptor, IAttributeInfo>) with all known attributes.

Returns:
a map (<AttributeDescriptor, IAttributeInfo>) with all known attributes.

getAvailableAttributes

java.util.Map<AttributeDescriptor,IAttributeInfo> getAvailableAttributes(javax.management.ObjectName mbeanName)
Returns a map (<AttributeDescriptor, IAttributeInfo>) with all known attributes for given MBean.

Parameters:
mbeanName - the MBean to find attributes for
Returns:
a map (<AttributeDescriptor, IAttributeInfo>) with all known attributes for given MBean.

getAttributeInfo

IAttributeInfo getAttributeInfo(AttributeDescriptor descriptor)
Returns the basic IAttributeInfo associated with an AttributeDescriptor.

Returns:
the basic IAttributeInfo associated with an AttributeDescriptor.

getMetaData

java.lang.Object getMetaData(AttributeDescriptor descriptor,
                             java.lang.String dataKey)
Looks up the specified piece of meta-data associated with the specified attribute.

Parameters:
descriptor - the attribute for which to retrieve the data.
dataKey - the key for the data to retrieve.
Returns:
the meta-data resulting from the lookup, or null if no such data exist.

setMetaData

void setMetaData(AttributeDescriptor descriptor,
                 java.lang.String dataKey,
                 java.lang.Object data)
Updates the meta-data associated with the attribute.

Parameters:
descriptor - the attribute descriptor.
dataKey - the data key under which to store the meta-data.
data - the actual meta data.


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