PHP Интерфейс Kraken\Runtime\RuntimeManagerInterface

Наследование: extends Kraken\Runtime\Container\ProcessManagerInterface, extends Kraken\Runtime\Container\ThreadManagerInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

destroyRuntime() публичный Метод

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[]
Результат Kraken\Promise\PromiseInterface

destroyRuntimes() публичный Метод

Destroy multiple containers at once.
См. также: RuntimeManagerInterface::destroyRuntimes
public destroyRuntimes ( string[] $aliases, integer $flags = Runtime::DESTROY_FORCE_SOFT, mixed[]] $params = [] ) : Kraken\Promise\PromiseInterface
$aliases string[]
$flags integer
$params mixed[]]
Результат Kraken\Promise\PromiseInterface

existsRuntime() публичный Метод

Check if container exists.
public existsRuntime ( string $alias ) : boolean
$alias string
Результат boolean

flushRuntimes() публичный Метод

Flush runtimes without destroying them.
public flushRuntimes ( integer $flags = Runtime::DESTROY_KEEP ) : Kraken\Promise\PromiseInterface
$flags integer
Результат Kraken\Promise\PromiseInterface

getRuntimes() публичный Метод

Get list of existing containers.
public getRuntimes ( ) : Kraken\Promise\PromiseInterface
Результат Kraken\Promise\PromiseInterface

startRuntime() публичный Метод

Start existing container.
public startRuntime ( string $alias, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface
$alias string
$params mixed[]
Результат Kraken\Promise\PromiseInterface

startRuntimes() публичный Метод

Start multiple containers at once.
См. также: RuntimeManagerInterface::startRuntimes
public startRuntimes ( string[] $aliases, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface
$aliases string[]
$params mixed[]
Результат Kraken\Promise\PromiseInterface

stopRuntime() публичный Метод

Stop existing container.
public stopRuntime ( string $alias, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface
$alias string
$params mixed[]
Результат Kraken\Promise\PromiseInterface

stopRuntimes() публичный Метод

Stop multiple containers at once.
public stopRuntimes ( string[] $aliases, string[] $params = [] ) : Kraken\Promise\PromiseInterface
$aliases string[]
$params string[]
Результат Kraken\Promise\PromiseInterface