cz.cuni.pogamut.server
Enum UTServerState

java.lang.Object
  extended by java.lang.Enum<UTServerState>
      extended by cz.cuni.pogamut.server.UTServerState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<UTServerState>

public enum UTServerState
extends java.lang.Enum<UTServerState>


Enum Constant Summary
HANDSHAKE
          Handshake phase with GB2004.
INITIALIZING
          First phase, even before connecting to GB2004.
MAP_CHANGING
          This state is switched to when the GB is changing map.
NONE
          UTServer never received request for CHANGE_URI, therefore is not connected to anything and is not doing anything.
PAUSED
          Server is paused.
RUNNING
          Server is UP and running.
TERMINATED
          The server failed and terminated it self, it needs to be recreated (whole UTServer object!).
UNAVAILABLE
          Server is unavailable.
 
Field Summary
private  java.lang.String helpMessage
           
 
Method Summary
 java.lang.String getHelpMessage()
           
static UTServerState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static UTServerState[] 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

NONE

public static final UTServerState NONE
UTServer never received request for CHANGE_URI, therefore is not connected to anything and is not doing anything.


INITIALIZING

public static final UTServerState INITIALIZING
First phase, even before connecting to GB2004.


HANDSHAKE

public static final UTServerState HANDSHAKE
Handshake phase with GB2004.


RUNNING

public static final UTServerState RUNNING
Server is UP and running.


PAUSED

public static final UTServerState PAUSED
Server is paused.


UNAVAILABLE

public static final UTServerState UNAVAILABLE
Server is unavailable. Eg. network connection lost, server not running ... As soon as communication error is detected, server state is switched into this...


MAP_CHANGING

public static final UTServerState MAP_CHANGING
This state is switched to when the GB is changing map.


TERMINATED

public static final UTServerState TERMINATED
The server failed and terminated it self, it needs to be recreated (whole UTServer object!).

Field Detail

helpMessage

private java.lang.String helpMessage
Method Detail

values

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

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

valueOf

public static UTServerState 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
java.lang.NullPointerException - if the argument is null

getHelpMessage

public java.lang.String getHelpMessage()