org.peace_tools.workspace
Enum Server.ServerStatusType

java.lang.Object
  extended by java.lang.Enum<Server.ServerStatusType>
      extended by org.peace_tools.workspace.Server.ServerStatusType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Server.ServerStatusType>
Enclosing class:
Server

public static enum Server.ServerStatusType
extends java.lang.Enum<Server.ServerStatusType>

Different enumerations defining the last known operational status of a given Server entry. These enumerations were introduced to reflect those used in the XML and to ensure that the code is overall more readable.


Enum Constant Summary
CONNECT_FAILED
          The previous attempt to talk to the server failed and the user needs to diagnose this server.
GOOD
          The server is good to go and is ready for further use.
INSTALL_FAILED
          This status indicates that the installation process of the server failed and the server is unusable.
INSTALLING
          This status indicates that the GUI is making attempt to install the runtime subsystem of PEACE onto the server.
UNINSTALL_FAILED
          This state indicates that the uninstall attempt on the server has failed.
UNINSTALLING
          This status indciates that the GUI is in the process of uninstalling the runtime subsystem of PEACE from the remote machine.
 
Method Summary
static Server.ServerStatusType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Server.ServerStatusType[] 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

INSTALLING

public static final Server.ServerStatusType INSTALLING
This status indicates that the GUI is making attempt to install the runtime subsystem of PEACE onto the server. This is a relatively long-running process and the server can be in this state for 5-10 minutes initially. After that a server never transitions to this state.


INSTALL_FAILED

public static final Server.ServerStatusType INSTALL_FAILED
This status indicates that the installation process of the server failed and the server is unusable.


GOOD

public static final Server.ServerStatusType GOOD
The server is good to go and is ready for further use.


UNINSTALLING

public static final Server.ServerStatusType UNINSTALLING
This status indciates that the GUI is in the process of uninstalling the runtime subsystem of PEACE from the remote machine. In this state, the server is not usable.


UNINSTALL_FAILED

public static final Server.ServerStatusType UNINSTALL_FAILED
This state indicates that the uninstall attempt on the server has failed. The server is now in an undefined state and the user must try to clean up the entry manually.


CONNECT_FAILED

public static final Server.ServerStatusType CONNECT_FAILED
The previous attempt to talk to the server failed and the user needs to diagnose this server.

Method Detail

values

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

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

valueOf

public static Server.ServerStatusType 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