|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Node.Health>
com.sun.sgs.service.Node.Health
public static enum Node.Health
Health of a node.
| Enum Constant Summary | |
|---|---|
GREEN
The node is operating normally and is available for additional work. |
|
ORANGE
The node is operational, but is in need of attention such as offloading some of its work. |
|
RED
The node has failed, been shutdown, or its state is unknown. |
|
YELLOW
The node is operating normally but is not available for additional work. |
|
| Method Summary | |
|---|---|
boolean |
isAlive()
Returns true if this health represents an operational state. |
static Node.Health |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Node.Health[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
boolean |
worseThan(Node.Health health)
Returns true if this health is worse than the specified
health. |
| 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 |
|---|
public static final Node.Health GREEN
public static final Node.Health YELLOW
public static final Node.Health ORANGE
public static final Node.Health RED
| Method Detail |
|---|
public static Node.Health[] values()
for (Node.Health c : Node.Health.values()) System.out.println(c);
public static Node.Health valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic boolean worseThan(Node.Health health)
true if this health is worse than the specified
health.
health - a health object to compare
true if this health is worse than the specified
healthpublic boolean isAlive()
true if this health represents an operational state.
true if this health represents an operational state
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||