org.ourgrid.gridmachine.useragent.ui
Enum UIMessages

java.lang.Object
  extended by java.lang.Enum<UIMessages>
      extended by org.ourgrid.gridmachine.useragent.ui.UIMessages
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<UIMessages>

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

A message repository to hold the UserAgent messages to be displayed at any interface.


Enum Constant Summary
CHECKING_STATUS
           
START_SUCCESSFUL
           
STARTING_BIND
           
STARTING_SECURITY
           
STOP_SUCCESSFUL
           
USERAGENT_STARTING
           
 
Method Summary
static void exitError(UIErrors uiError)
          Exit the JVM and update log and system output.
static void exitOk(UIMessages uiConstant)
          Exit the JVM and update log and system output.
 java.lang.String getMessage()
           
static UIMessages valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static UIMessages[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

USERAGENT_STARTING

public static final UIMessages USERAGENT_STARTING

STARTING_SECURITY

public static final UIMessages STARTING_SECURITY

STARTING_BIND

public static final UIMessages STARTING_BIND

START_SUCCESSFUL

public static final UIMessages START_SUCCESSFUL

CHECKING_STATUS

public static final UIMessages CHECKING_STATUS

STOP_SUCCESSFUL

public static final UIMessages STOP_SUCCESSFUL
Method Detail

values

public static final UIMessages[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(UIMessages c : UIMessages.values())
        System.out.println(c);

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

valueOf

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

getMessage

public java.lang.String getMessage()

exitError

public static void exitError(UIErrors uiError)
Exit the JVM and update log and system output.

Parameters:
uiError - UiError associated wiht this UI.

exitOk

public static void exitOk(UIMessages uiConstant)
Exit the JVM and update log and system output.