org.rhq.plugins.jmx.util
Enum JvmResourceKey.Type

java.lang.Object
  extended by java.lang.Enum<JvmResourceKey.Type>
      extended by org.rhq.plugins.jmx.util.JvmResourceKey.Type
All Implemented Interfaces:
Serializable, Comparable<JvmResourceKey.Type>
Enclosing class:
JvmResourceKey

public static enum JvmResourceKey.Type
extends Enum<JvmResourceKey.Type>


Enum Constant Summary
ConnectorAddress
          Manually added JVM's use the JMX connector address as the key, e.g.
Explicit
          This format is used when a key is explicitly specified on the JVM's command line via the org.rhq.resourceKey sysprop; the main class name is also included, e.g.
JmxRemotingPort
          The successor of the legacy format; includes the main class name in addition to the JMX remoting port, e.g.
Legacy
          The legacy format is a simple integer representing the JVM's JMX remoting port, e.g.
 
Method Summary
static JvmResourceKey.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static JvmResourceKey.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Legacy

public static final JvmResourceKey.Type Legacy
The legacy format is a simple integer representing the JVM's JMX remoting port, e.g. "9999"


ConnectorAddress

public static final JvmResourceKey.Type ConnectorAddress
Manually added JVM's use the JMX connector address as the key, e.g. "service:jmx:iiop://127.0.0.1:7001/jndi/weblogic.management.mbeanservers.runtime"


JmxRemotingPort

public static final JvmResourceKey.Type JmxRemotingPort
The successor of the legacy format; includes the main class name in addition to the JMX remoting port, e.g. "org.example.Main(9999)"


Explicit

public static final JvmResourceKey.Type Explicit
This format is used when a key is explicitly specified on the JVM's command line via the org.rhq.resourceKey sysprop; the main class name is also included, e.g. "org.example.Main{foo}"

Method Detail

values

public static JvmResourceKey.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (JvmResourceKey.Type c : JvmResourceKey.Type.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static JvmResourceKey.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.