PHP Class Kraken\Runtime\RuntimeManager

Inheritance: implements Kraken\Runtime\RuntimeManagerInterface
Datei anzeigen Open project: kraken-php/framework

Protected Properties

Property Type Description
$processManager Kraken\Runtime\Container\ProcessManagerInterface
$runtimeChannel Kraken\Channel\ChannelInterface
$threadManager Kraken\Runtime\Container\ThreadManagerInterface

Public Methods

Method Description
__construct ( Kraken\Channel\ChannelInterface $channel, Kraken\Runtime\Container\ProcessManagerInterface $processManager, Kraken\Runtime\Container\ThreadManagerInterface $threadManager )
__destruct ( )
createProcess ( $alias, $name, $flags = Runtime::CREATE_DEFAULT, $params = [] )
createProcesses ( $definitions, $flags = Runtime::CREATE_DEFAULT, $params = [] )
createThread ( $alias, $name, $flags = Runtime::CREATE_DEFAULT, $params = [] )
createThreads ( $definitions, $flags = Runtime::CREATE_DEFAULT, $params = [] )
destroyProcess ( $alias, $flags = Runtime::DESTROY_FORCE_SOFT, $params = [] )
destroyProcesses ( $aliases, $flags = Runtime::DESTROY_FORCE_SOFT, $params = [] )
destroyRuntime ( $alias, $flags = Runtime::DESTROY_FORCE_SOFT, $params = [] )
destroyRuntimes ( $aliases, $flags = Runtime::DESTROY_FORCE_SOFT, $params = [] )
destroyThread ( $alias, $flags = Runtime::DESTROY_FORCE_SOFT, $params = [] )
destroyThreads ( $aliases, $flags = Runtime::DESTROY_FORCE_SOFT, $params = [] )
existsProcess ( $alias )
existsRuntime ( $alias )
existsThread ( $alias )
flushProcesses ( $flags = Runtime::DESTROY_KEEP )
flushRuntimes ( $flags = Runtime::DESTROY_KEEP )
flushThreads ( $flags = Runtime::DESTROY_KEEP )
getProcesses ( )
getRuntimes ( )
getThreads ( )
sendCommand ( $alias, $command, $params = [] )
sendMessage ( $alias, $message, $flags = Channel::MODE_DEFAULT )
sendRequest ( $alias, $message, $params = [] )
startProcess ( $alias, $params = [] )
startProcesses ( $aliases, $params = [] )
startRuntime ( $alias, $params = [] )
startRuntimes ( $aliases, $params = [] )
startThread ( $alias, $params = [] )
startThreads ( $aliases, $params = [] )
stopProcess ( $alias, $params = [] )
stopProcesses ( $aliases, $params = [] )
stopRuntime ( $alias, $params = [] )
stopRuntimes ( $aliases, $params = [] )
stopThread ( $alias, $params = [] )
stopThreads ( $aliases, $params = [] )

Method Details

__construct() public method

public __construct ( Kraken\Channel\ChannelInterface $channel, Kraken\Runtime\Container\ProcessManagerInterface $processManager, Kraken\Runtime\Container\ThreadManagerInterface $threadManager )
$channel Kraken\Channel\ChannelInterface
$processManager Kraken\Runtime\Container\ProcessManagerInterface
$threadManager Kraken\Runtime\Container\ThreadManagerInterface

__destruct() public method

public __destruct ( )

createProcess() public method

public createProcess ( $alias, $name, $flags = Runtime::CREATE_DEFAULT, $params = [] )

createProcesses() public method

public createProcesses ( $definitions, $flags = Runtime::CREATE_DEFAULT, $params = [] )

createThread() public method

public createThread ( $alias, $name, $flags = Runtime::CREATE_DEFAULT, $params = [] )

createThreads() public method

public createThreads ( $definitions, $flags = Runtime::CREATE_DEFAULT, $params = [] )

destroyProcess() public method

public destroyProcess ( $alias, $flags = Runtime::DESTROY_FORCE_SOFT, $params = [] )

destroyProcesses() public method

public destroyProcesses ( $aliases, $flags = Runtime::DESTROY_FORCE_SOFT, $params = [] )

destroyRuntime() public method

public destroyRuntime ( $alias, $flags = Runtime::DESTROY_FORCE_SOFT, $params = [] )

destroyRuntimes() public method

public destroyRuntimes ( $aliases, $flags = Runtime::DESTROY_FORCE_SOFT, $params = [] )

destroyThread() public method

public destroyThread ( $alias, $flags = Runtime::DESTROY_FORCE_SOFT, $params = [] )

destroyThreads() public method

public destroyThreads ( $aliases, $flags = Runtime::DESTROY_FORCE_SOFT, $params = [] )

existsProcess() public method

public existsProcess ( $alias )

existsRuntime() public method

public existsRuntime ( $alias )

existsThread() public method

public existsThread ( $alias )

flushProcesses() public method

public flushProcesses ( $flags = Runtime::DESTROY_KEEP )

flushRuntimes() public method

public flushRuntimes ( $flags = Runtime::DESTROY_KEEP )

flushThreads() public method

public flushThreads ( $flags = Runtime::DESTROY_KEEP )

getProcesses() public method

public getProcesses ( )

getRuntimes() public method

public getRuntimes ( )

getThreads() public method

public getThreads ( )

sendCommand() public method

public sendCommand ( $alias, $command, $params = [] )

sendMessage() public method

public sendMessage ( $alias, $message, $flags = Channel::MODE_DEFAULT )

sendRequest() public method

public sendRequest ( $alias, $message, $params = [] )

startProcess() public method

public startProcess ( $alias, $params = [] )

startProcesses() public method

public startProcesses ( $aliases, $params = [] )

startRuntime() public method

public startRuntime ( $alias, $params = [] )

startRuntimes() public method

public startRuntimes ( $aliases, $params = [] )

startThread() public method

public startThread ( $alias, $params = [] )

startThreads() public method

public startThreads ( $aliases, $params = [] )

stopProcess() public method

public stopProcess ( $alias, $params = [] )

stopProcesses() public method

public stopProcesses ( $aliases, $params = [] )

stopRuntime() public method

public stopRuntime ( $alias, $params = [] )

stopRuntimes() public method

public stopRuntimes ( $aliases, $params = [] )

stopThread() public method

public stopThread ( $alias, $params = [] )

stopThreads() public method

public stopThreads ( $aliases, $params = [] )

Property Details

$processManager protected_oe property

protected ProcessManagerInterface,Kraken\Runtime\Container $processManager
return Kraken\Runtime\Container\ProcessManagerInterface

$runtimeChannel protected_oe property

protected ChannelInterface,Kraken\Channel $runtimeChannel
return Kraken\Channel\ChannelInterface

$threadManager protected_oe property

protected ThreadManagerInterface,Kraken\Runtime\Container $threadManager
return Kraken\Runtime\Container\ThreadManagerInterface