PHP 인터페이스 Kraken\Runtime\Container\ProcessManagerInterface

상속: extends Kraken\Runtime\Container\AbstractManagerInterface
파일 보기 프로젝트 열기: kraken-php/framework 0 사용 예제들

공개 메소드들

메소드 설명
createProcess ( string $alias, string $name, integer $flags = Runtime::CREATE_DEFAULT, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface Create a new process container.
createProcesses ( string[][] $definitions, integer $flags = Runtime::CREATE_DEFAULT, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface Create multiple process containers at once.
destroyProcess ( string $alias, integer $flags = Runtime::DESTROY_FORCE_SOFT, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface Destroy existing container.
destroyProcesses ( string[] $aliases, integer $flags = Runtime::DESTROY_FORCE_SOFT, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface Destroy multiple process containers at once.
existsProcess ( string $alias ) : boolean Check if process container exists.
flushProcesses ( integer $flags = Runtime::DESTROY_KEEP ) : Kraken\Promise\PromiseInterface Flush processes without destroying them.
getProcesses ( ) : Kraken\Promise\PromiseInterface Get list of existing process containers.
startProcess ( string $alias, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface Start existing process container.
startProcesses ( $aliases, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface Start multiple process containers at once.
stopProcess ( string $alias, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface Stop existing process container.
stopProcesses ( $aliases, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface Stop multiple process containers at once.

메소드 상세

createProcess() 공개 메소드

Flags might be one of: Runtime::CREATE_DEFAULT - creates a new process only if it does not already exist Runtime::CREATE_FORCE_SOFT - does the same as CREATE_DEFAULT, but in case of existing process tries to replace it. Replacement is done by destroying existing process by sending shutdown message. Runtime::CREATE_FORCE_HARD - does the same as CREATE_DEFAULT, but in case of existing process tries to replace it. Replacement is done by forcefully destroying existing process. Runtime::CREATE_FORCE - creates a new process if it does not exist or tries to replace existing firstly trying to destroy it gracefully, but it fails doing it forcefully.
public createProcess ( string $alias, string $name, integer $flags = Runtime::CREATE_DEFAULT, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface
$alias string
$name string
$flags integer
$params mixed[]
리턴 Kraken\Promise\PromiseInterface

createProcesses() 공개 메소드

Create multiple process containers at once.
또한 보기: ProcessManagerInterface::createProcesses
public createProcesses ( string[][] $definitions, integer $flags = Runtime::CREATE_DEFAULT, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface
$definitions string[][]
$flags integer
$params mixed[]
리턴 Kraken\Promise\PromiseInterface

destroyProcess() 공개 메소드

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 destroyProcess ( string $alias, integer $flags = Runtime::DESTROY_FORCE_SOFT, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface
$alias string
$flags integer
$params mixed[]
리턴 Kraken\Promise\PromiseInterface

destroyProcesses() 공개 메소드

Destroy multiple process containers at once.
또한 보기: ProcessManagerInterface::destroyProcesses
public destroyProcesses ( string[] $aliases, integer $flags = Runtime::DESTROY_FORCE_SOFT, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface
$aliases string[]
$flags integer
$params mixed[]
리턴 Kraken\Promise\PromiseInterface

existsProcess() 공개 메소드

Check if process container exists.
public existsProcess ( string $alias ) : boolean
$alias string
리턴 boolean

flushProcesses() 공개 메소드

Flush processes without destroying them.
public flushProcesses ( integer $flags = Runtime::DESTROY_KEEP ) : Kraken\Promise\PromiseInterface
$flags integer
리턴 Kraken\Promise\PromiseInterface

getProcesses() 공개 메소드

Get list of existing process containers.
public getProcesses ( ) : Kraken\Promise\PromiseInterface
리턴 Kraken\Promise\PromiseInterface

startProcess() 공개 메소드

Start existing process container.
public startProcess ( string $alias, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface
$alias string
$params mixed[]
리턴 Kraken\Promise\PromiseInterface

startProcesses() 공개 메소드

Start multiple process containers at once.
public startProcesses ( $aliases, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface
$aliases
$params mixed[]
리턴 Kraken\Promise\PromiseInterface

stopProcess() 공개 메소드

Stop existing process container.
public stopProcess ( string $alias, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface
$alias string
$params mixed[]
리턴 Kraken\Promise\PromiseInterface

stopProcesses() 공개 메소드

Stop multiple process containers at once.
public stopProcesses ( $aliases, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface
$aliases
$params mixed[]
리턴 Kraken\Promise\PromiseInterface