jrun.jms.core.client
Class JmsConnectionState

java.lang.Object
  |
  +--jrun.jms.core.client.JmsConnectionState

public final class JmsConnectionState
extends java.lang.Object

This class defines the various states of a connection stopped the connection is open but not running running the connection is open and running closed the connection is closed

Version:
$version$
Author:
jima

Field Summary
static JmsConnectionState CLOSED
           
static JmsConnectionState RUNNING
           
static JmsConnectionState STOPPED
          Instatiate instances related to each of the enumerations
 
Method Summary
 boolean equals(java.lang.Object obj)
          Return true if the two specified object is of the same type and their ordinal values are the same.
 int getOrd()
          Returns the ordinal value for this state
 boolean isClosed()
          Return true if this object represents the 'closed' state and false otherwise
 boolean isRunning()
          Return true if this object represents the 'running' state and false otherwise
 boolean isStopped()
          Return true if this object represents the 'stopped' state and false otherwise
static int size()
          Returns the number of states in this enumeration
 java.lang.String toString()
          Returns the name of this state
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STOPPED

public static final JmsConnectionState STOPPED
Instatiate instances related to each of the enumerations

RUNNING

public static final JmsConnectionState RUNNING

CLOSED

public static final JmsConnectionState CLOSED
Method Detail

getOrd

public int getOrd()
Returns the ordinal value for this state
Returns:
int

toString

public java.lang.String toString()
Returns the name of this state
Overrides:
toString in class java.lang.Object
Returns:
String

size

public static int size()
Returns the number of states in this enumeration
Returns:
int

equals

public boolean equals(java.lang.Object obj)
Return true if the two specified object is of the same type and their ordinal values are the same.
Overrides:
equals in class java.lang.Object
Parameters:
obj - object to compare against
Returns:
boolean true if the two objects are equivalent

isRunning

public boolean isRunning()
Return true if this object represents the 'running' state and false otherwise
Returns:
boolean

isStopped

public boolean isStopped()
Return true if this object represents the 'stopped' state and false otherwise
Returns:
boolean

isClosed

public boolean isClosed()
Return true if this object represents the 'closed' state and false otherwise
Returns:
boolean


Copyright � 2002 Macromedia Corporation. All Rights Reserved.