com.fatwire.agent
Enum HeartbeatState

java.lang.Object
  extended by java.lang.Enum<HeartbeatState>
      extended by com.fatwire.agent.HeartbeatState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<HeartbeatState>

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

State put into the heartbeat message. Exposed by the runtime system.


Enum Constant Summary
Error
          The runtime system experienced an internal error.
Normal
          The runtime system is working properly.
Stopping
          Runtime system is stopping.
 
Method Summary
static HeartbeatState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static HeartbeatState[] 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

Normal

public static final HeartbeatState Normal
The runtime system is working properly.


Error

public static final HeartbeatState Error
The runtime system experienced an internal error.


Stopping

public static final HeartbeatState Stopping
Runtime system is stopping.

Method Detail

values

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

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

valueOf

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