public class StatusMachine extends Object
Constructor and Description |
---|
StatusMachine() |
Modifier and Type | Method and Description |
---|---|
static ServerStatus |
computeNewStatus(ServerStatus curStatus,
StatusMachineEvent event)
Computes the new status of the state machine according to the current
status and the new generated event.
|
static boolean |
isValidInitialStatus(ServerStatus initStatus)
Checks if a given status is valid as an entering status for the state
machine.
|
public StatusMachine()
public static boolean isValidInitialStatus(ServerStatus initStatus)
initStatus
- Initial status to check.public static ServerStatus computeNewStatus(ServerStatus curStatus, StatusMachineEvent event)
curStatus
- The current status we start from.event
- The event that must make the current status evolve.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.