public static enum NodeConnectivity.ConnectionStatus extends Enum<NodeConnectivity.ConnectionStatus>
Enum Constant and Description |
---|
FAILED
Two nodes disconnected form each other
|
OK
A node connected to another node
|
Modifier and Type | Method and Description |
---|---|
static NodeConnectivity.ConnectionStatus |
fromBool(boolean connected) |
static NodeConnectivity.ConnectionStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NodeConnectivity.ConnectionStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NodeConnectivity.ConnectionStatus OK
public static final NodeConnectivity.ConnectionStatus FAILED
public static NodeConnectivity.ConnectionStatus[] values()
for (NodeConnectivity.ConnectionStatus c : NodeConnectivity.ConnectionStatus.values()) System.out.println(c);
public static NodeConnectivity.ConnectionStatus 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 static NodeConnectivity.ConnectionStatus fromBool(boolean connected)
Copyright © 2019 CorfuDB. All rights reserved.