org.ow2.jasmine.adapter.jmx.pool.outbound
Enum JMXConnectionImpl.States

java.lang.Object
  extended by java.lang.Enum<JMXConnectionImpl.States>
      extended by org.ow2.jasmine.adapter.jmx.pool.outbound.JMXConnectionImpl.States
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<JMXConnectionImpl.States>
Enclosing class:
JMXConnectionImpl

public static enum JMXConnectionImpl.States
extends java.lang.Enum<JMXConnectionImpl.States>

Enum of the different states for a connection.

Author:
Guillaume Renault

Enum Constant Summary
CLOSED
          Connection is closed physically.
GET
          Connection is open and not free.
RELEASED
          Connection is open, but released and ready to be attribute.
 
Method Summary
static JMXConnectionImpl.States valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static JMXConnectionImpl.States[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

RELEASED

public static final JMXConnectionImpl.States RELEASED
Connection is open, but released and ready to be attribute.


GET

public static final JMXConnectionImpl.States GET
Connection is open and not free.


CLOSED

public static final JMXConnectionImpl.States CLOSED
Connection is closed physically.

Method Detail

values

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

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

valueOf

public static JMXConnectionImpl.States valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name


Copyright © 2008 OW2 Consortium. All Rights Reserved.