PHP 인터페이스 Kraken\Runtime\RuntimeManagerInterface

상속: extends Kraken\Runtime\Container\ProcessManagerInterface, extends Kraken\Runtime\Container\ThreadManagerInterface
파일 보기 프로젝트 열기: kraken-php/framework

공개 메소드들

메소드 설명
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