com.teraspaces.qwfix
Enum FIXSessionConnectionStatus

java.lang.Object
  extended by java.lang.Enum<FIXSessionConnectionStatus>
      extended by com.teraspaces.qwfix.FIXSessionConnectionStatus
All Implemented Interfaces:
Serializable, Comparable<FIXSessionConnectionStatus>

public enum FIXSessionConnectionStatus
extends Enum<FIXSessionConnectionStatus>

Defines the status of the underlying network connection of a FIXSession.


Enum Constant Summary
CONNECTED
          FIX session is scheduled up and the TCP channel is connected.
DISABLED
          FIX session is disabled.
DISCONNECTED
          FIX session is scheduled up.
INACTIVE
          FIX session is not scheduled up.
 
Method Summary
static FIXSessionConnectionStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FIXSessionConnectionStatus[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INACTIVE

public static final FIXSessionConnectionStatus INACTIVE
FIX session is not scheduled up.


DISABLED

public static final FIXSessionConnectionStatus DISABLED
FIX session is disabled. Session can be disabled in configuration or manually disconnected in run-time.


DISCONNECTED

public static final FIXSessionConnectionStatus DISCONNECTED
FIX session is scheduled up. However the connection is down. If the session is an acceptor session, it will keep listening until being scheduled down. If the session is an initiator session, it will keep retrying to connect.


CONNECTED

public static final FIXSessionConnectionStatus CONNECTED
FIX session is scheduled up and the TCP channel is connected.

Method Detail

values

public static FIXSessionConnectionStatus[] 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 (FIXSessionConnectionStatus c : FIXSessionConnectionStatus.values())
    System.out.println(c);

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

valueOf

public static FIXSessionConnectionStatus 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