public enum NodeLifecycle extends Enum<NodeLifecycle>
| Enum Constant and Description |
|---|
FULLY_FUNCTIONAL
Everything is running perfectly fine.
|
NODE_STARTING
Indicates the node is starting.
|
NODE_STOPPING
Indicates the node is stopping.
|
PARTIALLY_FUNCTIONAL
The node is up, but there are converters in error state.
|
PREPARE_STOPPING
Indicates the node prepares for stopping in the near future.
|
READY_FOR_STOPPING
Indicates the node is ready for stopping.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isFunctional()
Return
true if this state is fully or partially functional. |
boolean |
isStopping()
Return
true if this state is related to stopping the node. |
static NodeLifecycle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NodeLifecycle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NodeLifecycle NODE_STARTING
public static final NodeLifecycle PARTIALLY_FUNCTIONAL
public static final NodeLifecycle FULLY_FUNCTIONAL
public static final NodeLifecycle PREPARE_STOPPING
public static final NodeLifecycle READY_FOR_STOPPING
public static final NodeLifecycle NODE_STOPPING
public static NodeLifecycle[] values()
for (NodeLifecycle c : NodeLifecycle.values()) System.out.println(c);
public static NodeLifecycle valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isFunctional()
true if this state is fully or partially functional.public boolean isStopping()
true if this state is related to stopping the node.Copyright © 2013–2020 mklinger GmbH. All rights reserved.