org.ourgrid.gridmachine.useragent.ui
Enum UIErrors

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

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

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


Enum Constant Summary
COULD_NOT_BIND
           
COULD_NOT_CONNECT_GUM
           
COULD_NOT_CREATE_REGISTRY
           
COULD_NOT_START_USERAGENT
           
INTERRUPTED_EXCEPTION
           
INVALID_ARGUMENT
           
MALFORMED_URL
           
OK
           
SECURITY_FAIL
           
SHUTDOWNMANAGER_STARTING_FAIL
           
UNBOUNDED_OBJECT
           
USERAGENT_ALREADY_DOWN
           
USERAGENT_ALREADY_RUNNING
           
USERAGENT_IS_DOWN
           
USERAGENT_STARTING_FAIL
           
 
Method Summary
 int getExitCode()
          Get a exit code
 java.lang.String getMessage()
           
static UIErrors valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static UIErrors[] 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

INVALID_ARGUMENT

public static final UIErrors INVALID_ARGUMENT

COULD_NOT_CREATE_REGISTRY

public static final UIErrors COULD_NOT_CREATE_REGISTRY

COULD_NOT_CONNECT_GUM

public static final UIErrors COULD_NOT_CONNECT_GUM

COULD_NOT_BIND

public static final UIErrors COULD_NOT_BIND

UNBOUNDED_OBJECT

public static final UIErrors UNBOUNDED_OBJECT

SECURITY_FAIL

public static final UIErrors SECURITY_FAIL

USERAGENT_STARTING_FAIL

public static final UIErrors USERAGENT_STARTING_FAIL

USERAGENT_ALREADY_RUNNING

public static final UIErrors USERAGENT_ALREADY_RUNNING

USERAGENT_IS_DOWN

public static final UIErrors USERAGENT_IS_DOWN

SHUTDOWNMANAGER_STARTING_FAIL

public static final UIErrors SHUTDOWNMANAGER_STARTING_FAIL

MALFORMED_URL

public static final UIErrors MALFORMED_URL

OK

public static final UIErrors OK

COULD_NOT_START_USERAGENT

public static final UIErrors COULD_NOT_START_USERAGENT

INTERRUPTED_EXCEPTION

public static final UIErrors INTERRUPTED_EXCEPTION

USERAGENT_ALREADY_DOWN

public static final UIErrors USERAGENT_ALREADY_DOWN
Method Detail

values

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

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

valueOf

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

getExitCode

public int getExitCode()
Get a exit code

Returns:

getMessage

public java.lang.String getMessage()