com.teraspaces.qwfix
Enum FIXEngineRole

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

public enum FIXEngineRole
extends Enum<FIXEngineRole>

Defines the role of a FIXEngine.


Enum Constant Summary
BACKUP
          The FIX engine is running in hot standby backup mode.
LOCAL_LOG_SEARCH
          The FIX Engine is searching the local historical log files.
PRIMARY
          The FIX engine is running in primary production mode.
REMOTE_CACHE
          The FIX engine is running in remote cache mode.
 
Method Summary
static FIXEngineRole valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FIXEngineRole[] 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

PRIMARY

public static final FIXEngineRole PRIMARY
The FIX engine is running in primary production mode.


BACKUP

public static final FIXEngineRole BACKUP
The FIX engine is running in hot standby backup mode.


REMOTE_CACHE

public static final FIXEngineRole REMOTE_CACHE
The FIX engine is running in remote cache mode.


LOCAL_LOG_SEARCH

public static final FIXEngineRole LOCAL_LOG_SEARCH
The FIX Engine is searching the local historical log files. All persistence should be running in read only mode.

Method Detail

values

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

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

valueOf

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