PHP Interface Kraken\Runtime\RuntimeManagerInterface

Inheritance: extends Kraken\Runtime\Container\ProcessManagerInterface, extends Kraken\Runtime\Container\ThreadManagerInterface
Afficher le fichier Open project: kraken-php/framework

Méthodes publiques

Méthode Description
destroyRuntime ( string $alias, integer $flags = Runtime::DESTROY_FORCE_SOFT, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface Destroy existing container.
destroyRuntimes ( string[] $aliases, integer $flags = Runtime::DESTROY_FORCE_SOFT, mixed[]] $params = [] ) : Kraken\Promise\PromiseInterface Destroy multiple containers at once.
existsRuntime ( string $alias ) : boolean Check if container exists.
flushRuntimes ( integer $flags = Runtime::DESTROY_KEEP ) : Kraken\Promise\PromiseInterface Flush runtimes without destroying them.
getRuntimes ( ) : Kraken\Promise\PromiseInterface Get list of existing containers.
startRuntime ( string $alias, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface Start existing container.
startRuntimes ( string[] $aliases, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface Start multiple containers at once.
stopRuntime ( string $alias, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface Stop existing container.
stopRuntimes ( string[] $aliases, string[] $params = [] ) : Kraken\Promise\PromiseInterface Stop multiple containers at once.

Method Details

destroyRuntime() public méthode

Flags might be one of: Runtime::DESTROY_KEEP - sets manager to not destroy runtime Runtime::DESTROY_FORCE_SOFT - destroys runtime by sending message to shutdown Runtime::DESTROY_FORCE_HARD - destroys runtime forcefully and immediately Runtime::DESTROY_FORCE - first, tries to gracefully destroy runtime by sending message to shutdown, if it does not receive answer, then closes it forcefully.
public destroyRuntime ( string $alias, integer $flags = Runtime::DESTROY_FORCE_SOFT, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface
$alias string
$flags integer
$params mixed[]
Résultat Kraken\Promise\PromiseInterface

destroyRuntimes() public méthode

Destroy multiple containers at once.
See also: RuntimeManagerInterface::destroyRuntimes
public destroyRuntimes ( string[] $aliases, integer $flags = Runtime::DESTROY_FORCE_SOFT, mixed[]] $params = [] ) : Kraken\Promise\PromiseInterface
$aliases string[]
$flags integer
$params mixed[]]
Résultat Kraken\Promise\PromiseInterface

existsRuntime() public méthode

Check if container exists.
public existsRuntime ( string $alias ) : boolean
$alias string
Résultat boolean

flushRuntimes() public méthode

Flush runtimes without destroying them.
public flushRuntimes ( integer $flags = Runtime::DESTROY_KEEP ) : Kraken\Promise\PromiseInterface
$flags integer
Résultat Kraken\Promise\PromiseInterface

getRuntimes() public méthode

Get list of existing containers.
public getRuntimes ( ) : Kraken\Promise\PromiseInterface
Résultat Kraken\Promise\PromiseInterface

startRuntime() public méthode

Start existing container.
public startRuntime ( string $alias, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface
$alias string
$params mixed[]
Résultat Kraken\Promise\PromiseInterface

startRuntimes() public méthode

Start multiple containers at once.
See also: RuntimeManagerInterface::startRuntimes
public startRuntimes ( string[] $aliases, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface
$aliases string[]
$params mixed[]
Résultat Kraken\Promise\PromiseInterface

stopRuntime() public méthode

Stop existing container.
public stopRuntime ( string $alias, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface
$alias string
$params mixed[]
Résultat Kraken\Promise\PromiseInterface

stopRuntimes() public méthode

Stop multiple containers at once.
public stopRuntimes ( string[] $aliases, string[] $params = [] ) : Kraken\Promise\PromiseInterface
$aliases string[]
$params string[]
Résultat Kraken\Promise\PromiseInterface