public class RestoreFiniteStateMachine extends Object implements FiniteStateMachine
Constructor and Description |
---|
RestoreFiniteStateMachine(PartitionRestoreContext ctx,
Set<Transition> transitions) |
RestoreFiniteStateMachine(PartitionRestoreContext ctx,
Set<Transition> transitions,
FtpsStateForRestore ftpsForRestore) |
Modifier and Type | Method and Description |
---|---|
void |
addMetadata(String key,
Object value) |
void |
cleanup() |
State |
currentState() |
State |
fire(Event event) |
Object |
getMetadata(String key)
Matadata to store additional information
|
Set<State> |
states()
Return FSM registered states.
|
String |
toString() |
Set<Transition> |
transitions()
Return FSM registered transitions.
|
void |
transitToState(State state) |
public RestoreFiniteStateMachine(PartitionRestoreContext ctx, Set<Transition> transitions)
public RestoreFiniteStateMachine(PartitionRestoreContext ctx, Set<Transition> transitions, FtpsStateForRestore ftpsForRestore)
public Object getMetadata(String key)
FiniteStateMachine
getMetadata
in interface FiniteStateMachine
public void addMetadata(String key, Object value)
addMetadata
in interface FiniteStateMachine
public Set<State> states()
FiniteStateMachine
states
in interface FiniteStateMachine
public State currentState()
currentState
in interface FiniteStateMachine
public Set<Transition> transitions()
FiniteStateMachine
transitions
in interface FiniteStateMachine
public State fire(Event event)
fire
in interface FiniteStateMachine
public void transitToState(State state)
transitToState
in interface FiniteStateMachine
public void cleanup()
cleanup
in interface FiniteStateMachine