Method |
Description |
|
create ( ) : Kraken\Promise\PromiseInterface |
Create container. |
|
destroy ( ) : Kraken\Promise\PromiseInterface |
Destroy container. |
|
fail ( Erro\Error | Exceptio\Exception $ex, mixed[] $params = [] ) |
Temporarily switch container 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. |
|
getManager ( ) : Kraken\Runtime\RuntimeManagerInterface |
Return runtime manager set to this container instance. |
|
getModel ( ) : Kraken\Runtime\RuntimeModelInterface |
Return model on which container is working |
|
getState ( ) : integer |
Return current state of the container. |
|
isCreated ( ) : boolean |
Check if container is in created state. |
|
isDestroyed ( ) : boolean |
Check if container is in destroyed state. |
|
isFailed ( ) : boolean |
Check if container is in failed state. |
|
isStarted ( ) : boolean |
Check if container is in started state. |
|
isStopped ( ) : boolean |
Check if container is in stopped state. |
|
onAfterCreate ( callable $callback ) : EventListener |
Attach afterCreate event handler. |
|
onAfterDestroy ( callable $callback ) : EventListener |
Attach afterDestroy event handler. |
|
onAfterStart ( callable $callback ) : EventListener |
Attach afterStart event handler. |
|
onAfterStop ( callable $callback ) : EventListener |
Attach afterStop event handler. |
|
onBeforeCreate ( callable $callback ) : EventListener |
Attach beforeCreate event handler. |
|
onBeforeDestroy ( callable $callback ) : EventListener |
Attach beforeDestroy event handler. |
|
onBeforeStart ( callable $callback ) : EventListener |
Attach beforeStart event handler. |
|
onBeforeStop ( callable $callback ) : EventListener |
Attach beforeStop event handler. |
|
onCreate ( callable $callback ) : EventListener |
Attach create event handler. |
|
onDestroy ( callable $callback ) : EventListener |
Attach destroy event handler. |
|
onStart ( callable $callback ) : EventListener |
Attach start event handler. |
|
onStop ( callable $callback ) : EventListener |
Attach stop event handler. |
|
start ( ) : Kraken\Promise\PromiseInterface |
Start container. |
|
stop ( ) : Kraken\Promise\PromiseInterface |
Stop container. |
|
succeed ( ) |
Switch back from failed to normal workflow. |
|