PHP 클래스 Kraken\Runtime\Container\Manager\ProcessManagerBase

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

보호된 프로퍼티들

프로퍼티 타입 설명
$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

공개 메소드들

메소드 설명
__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 = [] )

보호된 메소드들

메소드 설명
createRequest ( Kraken\Channel\ChannelInterface $channel, string $receiver, string $command ) : Request Create Request.

비공개 메소드들

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

메소드 상세

__construct() 공개 메소드

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

__destruct() 공개 메소드

public __destruct ( )

allocateProcess() 공개 메소드

Allocate process.
public allocateProcess ( string $alias, string $name, string $pid ) : boolean
$alias string
$name string
$pid string
리턴 boolean

createProcess() 공개 메소드

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

createProcesses() 공개 메소드

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

createRequest() 보호된 메소드

Create Request.
protected createRequest ( Kraken\Channel\ChannelInterface $channel, string $receiver, string $command ) : Request
$channel Kraken\Channel\ChannelInterface
$receiver string
$command string
리턴 Kraken\Channel\Extra\Request

destroyProcess() 공개 메소드

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

destroyProcesses() 공개 메소드

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

existsProcess() 공개 메소드

public existsProcess ( $alias )

flushProcesses() 공개 메소드

public flushProcesses ( $flags = Runtime::DESTROY_KEEP )

freeProcess() 공개 메소드

Free process.
public freeProcess ( string $alias ) : boolean
$alias string
리턴 boolean

getProcesses() 공개 메소드

public getProcesses ( )

sendCommand() 공개 메소드

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

sendMessage() 공개 메소드

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

sendRequest() 공개 메소드

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

startProcess() 공개 메소드

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

startProcesses() 공개 메소드

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

stopProcess() 공개 메소드

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

stopProcesses() 공개 메소드

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

프로퍼티 상세

$channel 보호되어 있는 프로퍼티

protected ChannelInterface,Kraken\Channel $channel
리턴 Kraken\Channel\ChannelInterface

$context 보호되어 있는 프로퍼티

protected string[] $context
리턴 string[]

$fs 보호되어 있는 프로퍼티

protected FilesystemInterface,Kraken\Filesystem $fs
리턴 Kraken\Filesystem\FilesystemInterface

$fsPath 보호되어 있는 프로퍼티

protected string $fsPath
리턴 string

$processes 보호되어 있는 프로퍼티

protected string[][] $processes
리턴 string[][]

$runtime 보호되어 있는 프로퍼티

protected RuntimeContainerInterface,Kraken\Runtime $runtime
리턴 Kraken\Runtime\RuntimeContainerInterface

$scriptRoot 보호되어 있는 프로퍼티

protected string $scriptRoot
리턴 string

$system 보호되어 있는 프로퍼티

protected SystemInterface,Kraken\Util\System $system
리턴 Kraken\Util\System\SystemInterface