eu.larkc.core
Enum PlatformStatus

java.lang.Object
  extended by java.lang.Enum<PlatformStatus>
      extended by eu.larkc.core.PlatformStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PlatformStatus>

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

Enum used by the LarKC platform to keep track of the platform status. The life-cycle of a successful start of the platform looks as follows:

  1. NOT_INITIALIZED
  2. INITIALIZING
  3. RUNNING
  4. STOPPED
The life-cycle of a failed attempt to start the platform will never be in the RUNNING state.
  1. NOT_INITIALIZED
  2. INITIALIZING
  3. STOPPED

Author:
Christoph Fuchs

Enum Constant Summary
INITIALIZING
          The platform is initializing.
NOT_INITIALIZED
          The platform has not been initialized yet.
RUNNING
          The platform is running.
STOPPED
          The platform was stopped.
 
Method Summary
static PlatformStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PlatformStatus[] 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

NOT_INITIALIZED

public static final PlatformStatus NOT_INITIALIZED
The platform has not been initialized yet.


INITIALIZING

public static final PlatformStatus INITIALIZING
The platform is initializing.


RUNNING

public static final PlatformStatus RUNNING
The platform is running.


STOPPED

public static final PlatformStatus STOPPED
The platform was stopped. Either intentionally or automatically if an error occured during initialization.

Method Detail

values

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

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

valueOf

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