com.jrockit.mc.rjmx.proxy
Interface IProxyNames


public interface IProxyNames

This is interface represents a mapping from one of the enumerated keys to where the corresponding attribute can be found in the JVM we are connected to. This interface decouples the client somewhat from the JMX implementation, and allows us to change the JRockit specific JMX API in any release. The locations of these attributes are for example different for 1.4 and >= 1.5 releases for JRockit. They are also different for R26 and >= R27 releases of JRockit.

Author:
William Saar, Marcus Hirt, Mattias Jo\xEBlson

Nested Class Summary
static class IProxyNames.Key
          Class for the available keys.
 
Method Summary
 AttributeDescriptor getAttributeDescriptor(IProxyNames.Key key)
          Returns the AttributeDescriptor corresponding to the key.
 IProxyNames.Key getKeyByAttribute(AttributeDescriptor descriptor)
          Returns the IProxyNames.Key corresponding to the AttributeDescriptor.
 java.lang.String getVersion()
          Returns the version of the JVM that lead to the creation of this proxy.
 AttributeDescriptor resolveUnresolvedName(AttributeDescriptor descriptor)
          This method will try to resolve a descriptor containing an unresolved proxy name to the actual attribute.
 boolean supportsAttribute(AttributeDescriptor descriptor)
          Returns whether the AttributeDescriptor is supported by IProxyNames through one of its keys or not.
 boolean supportsKey(IProxyNames.Key key)
          Returns whether the IProxyNames.Key is supported by IProxyNames or not.
 

Method Detail

getAttributeDescriptor

AttributeDescriptor getAttributeDescriptor(IProxyNames.Key key)
Returns the AttributeDescriptor corresponding to the key.

Parameters:
key - the key for which to get the attribute.
Returns:
the AttributeDescriptor corresponding to the key.

getKeyByAttribute

IProxyNames.Key getKeyByAttribute(AttributeDescriptor descriptor)
Returns the IProxyNames.Key corresponding to the AttributeDescriptor.

Parameters:
descriptor - the attribute descriptor for which to get the key.
Returns:
the IProxyNames.Key corresponding to the AttributeDescriptor.

supportsKey

boolean supportsKey(IProxyNames.Key key)
Returns whether the IProxyNames.Key is supported by IProxyNames or not.

Parameters:
key - the key to test support for.
Returns:
true if supported, false otherwise.

supportsAttribute

boolean supportsAttribute(AttributeDescriptor descriptor)
Returns whether the AttributeDescriptor is supported by IProxyNames through one of its keys or not.

Parameters:
descriptor - the AttributeDescriptor to test support for.
Returns:
true if supported, false otherwise.

resolveUnresolvedName

AttributeDescriptor resolveUnresolvedName(AttributeDescriptor descriptor)
This method will try to resolve a descriptor containing an unresolved proxy name to the actual attribute. A already resolved attribute will simply be returned.

Parameters:
descriptor - the descriptor to resolve
Returns:
the resolved attribute or the attribute passed to method

getVersion

java.lang.String getVersion()
Returns the version of the JVM that lead to the creation of this proxy.



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