public enum StatusMachineEvent extends Enum<StatusMachineEvent>
Enum Constant and Description |
---|
INVALID_EVENT
Invalid event: special event used to be returned by some methods to signal
an error.
|
TO_BAD_GEN_ID_STATUS_EVENT
Event used when one wants the DS to enter the BAD_GEN_ID_STATUS.
|
TO_DEGRADED_STATUS_EVENT
Event used when one wants the DS to enter the DEGRADED_STATUS.
|
TO_FULL_UPDATE_STATUS_EVENT
Event used when one wants the DS to enter the FULL_UPDATE_STATUS.
|
TO_NORMAL_STATUS_EVENT
Event used when one wants the DS to enter the NORMAL_STATUS.
|
TO_NOT_CONNECTED_STATUS_EVENT
Event used when one wants the DS to enter the NOT_CONNECTED_STATUS.
|
Modifier and Type | Method and Description |
---|---|
byte |
getValue()
Get a numeric representation of the event.
|
static StatusMachineEvent |
statusToEvent(ServerStatus reqStatus)
Returns the event matching the passed requested status.
|
static StatusMachineEvent |
valueOf(byte value)
Returns the StatusMachineEvent matching the passed event numeric
representation.
|
static StatusMachineEvent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StatusMachineEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StatusMachineEvent INVALID_EVENT
public static final StatusMachineEvent TO_NOT_CONNECTED_STATUS_EVENT
public static final StatusMachineEvent TO_NORMAL_STATUS_EVENT
public static final StatusMachineEvent TO_DEGRADED_STATUS_EVENT
public static final StatusMachineEvent TO_FULL_UPDATE_STATUS_EVENT
public static final StatusMachineEvent TO_BAD_GEN_ID_STATUS_EVENT
public static StatusMachineEvent[] values()
for (StatusMachineEvent c : StatusMachineEvent.values()) System.out.println(c);
public static StatusMachineEvent 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 StatusMachineEvent valueOf(byte value) throws IllegalArgumentException
value
- The numeric value for the event to returnIllegalArgumentException
- If provided event value is
wrongpublic static StatusMachineEvent statusToEvent(ServerStatus reqStatus)
reqStatus
- The status to translate to an event.public byte getValue()
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.