private static enum DefaultTopologyService.State extends java.lang.Enum<DefaultTopologyService.State>
States of the topology service.
Enum Constant and Description |
---|
MASTER_ELECTED_MASTER |
MASTER_ELECTED_SLAVE |
OFFLINE |
STARTING |
TERMINATED |
WITH_TOPOLOGY |
Modifier and Type | Method and Description |
---|---|
static DefaultTopologyService.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DefaultTopologyService.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DefaultTopologyService.State OFFLINE
public static final DefaultTopologyService.State STARTING
public static final DefaultTopologyService.State MASTER_ELECTED_MASTER
public static final DefaultTopologyService.State MASTER_ELECTED_SLAVE
public static final DefaultTopologyService.State WITH_TOPOLOGY
public static final DefaultTopologyService.State TERMINATED
public static DefaultTopologyService.State[] values()
for (DefaultTopologyService.State c : DefaultTopologyService.State.values()) System.out.println(c);
public static DefaultTopologyService.State valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null