Method |
Description |
|
create ( ) : Kraken\Promise\PromiseInterface |
Create model. |
|
destroy ( ) : Kraken\Promise\PromiseInterface |
Destroy model. |
|
fail ( Erro\Error | Exceptio\Exception $ex, mixed[] $params = [] ) |
Temporarily switch model to failed workflow and allow supervisor to take control. |
|
getHash ( ) : string | null |
Return failure hash if the container is in the failed state or null if it is not. |
|
getState ( ) : integer |
Return state of model. |
|
isCreated ( ) : boolean |
Checks if model is in created state. |
|
isDestroyed ( ) : boolean |
Checks if model is in destroyed state. |
|
isFailed ( ) : boolean |
Checks if model is in stopped state. |
|
isStarted ( ) : boolean |
Checks if model is in started state. |
|
isState ( integer $state ) : boolean |
Checks if model is in specified state. |
|
isStopped ( ) : boolean |
Checks if model is in stopped state. |
|
setState ( integer $state ) |
Set state of model. |
|
start ( ) : Kraken\Promise\PromiseInterface |
Start model. |
|
state ( ) : integer |
|
|
stop ( ) : Kraken\Promise\PromiseInterface |
Stop model. |
|
succeed ( ) |
Switch back from failed to normal workflow. |
|