ironic.common.fsm.FSM[source]¶Bases: automaton.machines.FiniteMachine
An ironic state-machine class with some ironic specific additions.
add_state(**kwargs)[source]¶Adds a given state to the state machine.
| Parameters: |
|
|---|
Further arguments are interpreted as for parent method add_state.
add_transition(**kwargs)¶Adds an allowed transition from start -> end for the given event.
| Parameters: |
|
|---|
initialize(**kwargs)[source]¶Initialize the FSM.
| Parameters: |
|
|---|
is_stable(state)[source]¶Is the state stable?
| Parameters: | state – the state of interest |
|---|---|
| Raises: | InvalidState if the state is invalid |
| Returns: | True if it is a stable state; False otherwise |
process_event(**kwargs)[source]¶process the event.
| Parameters: |
|
|---|
target_state¶
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.