Property | Type | Description | |
---|---|---|---|
$channel | Kraken\Channel\ChannelInterface | ||
$context | string[] | ||
$fs | Kraken\Filesystem\FilesystemInterface | ||
$fsPath | string | ||
$processes | string[][] | ||
$runtime | Kraken\Runtime\RuntimeContainerInterface | ||
$scriptRoot | string | ||
$system | Kraken\Util\System\SystemInterface |
Method | Description | |
---|---|---|
__construct ( Kraken\Runtime\RuntimeContainerInterface $runtime, Kraken\Channel\ChannelInterface $channel, string[] $context, Kraken\Util\System\SystemInterface $system, Kraken\Filesystem\FilesystemInterface $fs ) | ||
__destruct ( ) | ||
allocateProcess ( string $alias, string $name, string $pid ) : boolean | Allocate process. | |
createProcess ( $alias, $name, $flags = Runtime::CREATE_DEFAULT, $params = [] ) | ||
createProcesses ( $definitions, $flags = Runtime::CREATE_DEFAULT, $params = [] ) | ||
destroyProcess ( $alias, $flags = Runtime::DESTROY_FORCE_SOFT, $params = [] ) | ||
destroyProcesses ( $aliases, $flags = Runtime::DESTROY_FORCE_SOFT, $params = [] ) | ||
existsProcess ( $alias ) | ||
flushProcesses ( $flags = Runtime::DESTROY_KEEP ) | ||
freeProcess ( string $alias ) : boolean | Free process. | |
getProcesses ( ) | ||
sendCommand ( $alias, $command, $params = [] ) | ||
sendMessage ( $alias, $message, $flags = Channel::MODE_DEFAULT ) | ||
sendRequest ( $alias, $message, $params = [] ) | ||
startProcess ( $alias, $params = [] ) | ||
startProcesses ( $aliases, $params = [] ) | ||
stopProcess ( $alias, $params = [] ) | ||
stopProcesses ( $aliases, $params = [] ) |
Method | Description | |
---|---|---|
createRequest ( Kraken\Channel\ChannelInterface $channel, string $receiver, string $command ) : |
Create Request. |
Method | Description | |
---|---|---|
phpCommand ( string $command, string[] $params = [], string[] $context = [] ) : string | Run external PHP script. | |
selectFromStorage ( ) : string[][] | Copy data from persistent storage to temporary one. | |
updateStorage ( string[] $with = [] ) | Copy temporary process allocation data to persistent storage. |
public __construct ( Kraken\Runtime\RuntimeContainerInterface $runtime, Kraken\Channel\ChannelInterface $channel, string[] $context, Kraken\Util\System\SystemInterface $system, Kraken\Filesystem\FilesystemInterface $fs ) | ||
$runtime | Kraken\Runtime\RuntimeContainerInterface | |
$channel | Kraken\Channel\ChannelInterface | |
$context | string[] | |
$system | Kraken\Util\System\SystemInterface | |
$fs | Kraken\Filesystem\FilesystemInterface |
public createProcess ( $alias, $name, $flags = Runtime::CREATE_DEFAULT, $params = [] ) |
public createProcesses ( $definitions, $flags = Runtime::CREATE_DEFAULT, $params = [] ) |
protected createRequest ( Kraken\Channel\ChannelInterface $channel, string $receiver, string $command ) : |
||
$channel | Kraken\Channel\ChannelInterface | |
$receiver | string | |
$command | string | |
return |
public destroyProcess ( $alias, $flags = Runtime::DESTROY_FORCE_SOFT, $params = [] ) |
public destroyProcesses ( $aliases, $flags = Runtime::DESTROY_FORCE_SOFT, $params = [] ) |
public freeProcess ( string $alias ) : boolean | ||
$alias | string | |
return | boolean |
protected ChannelInterface,Kraken\Channel $channel | ||
return | Kraken\Channel\ChannelInterface |
protected FilesystemInterface,Kraken\Filesystem $fs | ||
return | Kraken\Filesystem\FilesystemInterface |
protected RuntimeContainerInterface,Kraken\Runtime $runtime | ||
return | Kraken\Runtime\RuntimeContainerInterface |