public static enum DynamicLoadbalancer.State extends java.lang.Enum<DynamicLoadbalancer.State>
Enum Constant and Description |
---|
ACTIVE
the service is active and running on one server.
|
INACTIVE_FAILED_CRITICAL
the service was previous active but failed due to critical error last
time which means manual intervention of Administrator is required
normally.
|
INACTIVE_FAILED_UNHEALTHY
the service was previous active but failed due to the service is
unhealthy; see SingletonServicesState.FAILED_STATE
|
INACTIVE_MANAGED
the service was previous active but was deactivated since
DynamicLoadbalancer returned a action plan to deactivate this service
from previous active state.
|
INACTIVE_OTHERS
the service is inactive due to other reasons, or has never been
activated, or its hosting server is killed or crashed suddenly.
|
INACTIVE_SERVER_SHUTDOWN
the service was previous active but was deactivated due to administrative
shutdown, either graceful or force shutdown, of the hosting server.
|
Modifier and Type | Method and Description |
---|---|
static DynamicLoadbalancer.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DynamicLoadbalancer.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DynamicLoadbalancer.State ACTIVE
public static final DynamicLoadbalancer.State INACTIVE_FAILED_CRITICAL
public static final DynamicLoadbalancer.State INACTIVE_FAILED_UNHEALTHY
public static final DynamicLoadbalancer.State INACTIVE_SERVER_SHUTDOWN
public static final DynamicLoadbalancer.State INACTIVE_MANAGED
public static final DynamicLoadbalancer.State INACTIVE_OTHERS
public static DynamicLoadbalancer.State[] values()
for (DynamicLoadbalancer.State c : DynamicLoadbalancer.State.values()) System.out.println(c);
public static DynamicLoadbalancer.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