PHP Class Kraken\Runtime\RuntimeManager

Inheritance: implements Kraken\Runtime\RuntimeManagerInterface
Afficher le fichier Open project: kraken-php/framework

Protected Properties

Свойство Type Description
$processManager Kraken\Runtime\Container\ProcessManagerInterface
$runtimeChannel Kraken\Channel\ChannelInterface
$threadManager Kraken\Runtime\Container\ThreadManagerInterface

Méthodes publiques

Méthode 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 méthode

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 méthode

public __destruct ( )

createProcess() public méthode

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

createProcesses() public méthode

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

createThread() public méthode

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

createThreads() public méthode

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

destroyProcess() public méthode

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

destroyProcesses() public méthode

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

destroyRuntime() public méthode

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

destroyRuntimes() public méthode

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

destroyThread() public méthode

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

destroyThreads() public méthode

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

existsProcess() public méthode

public existsProcess ( $alias )

existsRuntime() public méthode

public existsRuntime ( $alias )

existsThread() public méthode

public existsThread ( $alias )

flushProcesses() public méthode

public flushProcesses ( $flags = Runtime::DESTROY_KEEP )

flushRuntimes() public méthode

public flushRuntimes ( $flags = Runtime::DESTROY_KEEP )

flushThreads() public méthode

public flushThreads ( $flags = Runtime::DESTROY_KEEP )

getProcesses() public méthode

public getProcesses ( )

getRuntimes() public méthode

public getRuntimes ( )

getThreads() public méthode

public getThreads ( )

sendCommand() public méthode

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

sendMessage() public méthode

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

sendRequest() public méthode

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

startProcess() public méthode

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

startProcesses() public méthode

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

startRuntime() public méthode

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

startRuntimes() public méthode

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

startThread() public méthode

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

startThreads() public méthode

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

stopProcess() public méthode

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

stopProcesses() public méthode

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

stopRuntime() public méthode

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

stopRuntimes() public méthode

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

stopThread() public méthode

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

stopThreads() public méthode

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

Property Details

$processManager protected_oe property

protected ProcessManagerInterface,Kraken\Runtime\Container $processManager
Résultat Kraken\Runtime\Container\ProcessManagerInterface

$runtimeChannel protected_oe property

protected ChannelInterface,Kraken\Channel $runtimeChannel
Résultat Kraken\Channel\ChannelInterface

$threadManager protected_oe property

protected ThreadManagerInterface,Kraken\Runtime\Container $threadManager
Résultat Kraken\Runtime\Container\ThreadManagerInterface