PHP 클래스 AsyncPHP\Doorman\Manager\ProcessManager

상속: implements AsyncPHP\Doorman\Manager
파일 보기 프로젝트 열기: asyncphp/doorman 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$shell null | AsyncPHP\Doorman\Shell

공개 메소드들

메소드 설명
__destruct ( )
addRule ( AsyncPHP\Doorman\Rule $rule )
addTask ( AsyncPHP\Doorman\Task $task )
getBinary ( ) : string Gets the path of the PHP runtime.
getLogPath ( ) : null | string
getRules ( ) : AsyncPHP\Doorman\Rules Gets or creates a new Rules instance.
getRunning ( ) : array Get a list of the running tasks.
getShell ( ) : AsyncPHP\Doorman\Shell Gets or creates a Shell instance.
getWaiting ( ) : array Get a list of the waiting tasks.
getWorker ( ) : string Gets the path of the worker script.
removeRule ( AsyncPHP\Doorman\Rule $rule )
setBinary ( string $binary )
setLogPath ( string $logPath )
setRules ( AsyncPHP\Doorman\Rules $rules )
setShell ( AsyncPHP\Doorman\Shell $shell )
setWorker ( string $worker )
tick ( ) : boolean

비공개 메소드들

메소드 설명
canRemoveTask ( AsyncPHP\Doorman\Task $task ) : boolean Checks whether a task can be removed from the list of running processes.
canRunTask ( AsyncPHP\Doorman\Task $task ) : boolean Checks whether a new task can be run.
getProfileForProcesses ( AsyncPHP\Doorman\Task $task, array $processes ) : AsyncPHP\Doorman\Profile Gets the load profile related to a task.
getStatsForProcesses ( array $processes ) : array Gets processor and memory stats for a list of processes.
getStdErr ( ) : string Gets the path to write stderr to.
getStdOut ( ) : string Gets the path to write stdout to.
getTaskString ( AsyncPHP\Doorman\Task $task ) : string Gets a string representation of a task, to pass to the worker script.
isTaskCancelled ( AsyncPHP\Doorman\Task $task ) : boolean Check if the given task is cancelled.
isTaskExpired ( AsyncPHP\Doorman\Task $task ) : boolean Check if the given task is expired
killTask ( AsyncPHP\Doorman\Task $task ) : boolean Revoke any background processes attached to this task.
newProfile ( ) : AsyncPHP\Doorman\Profile Creates a new Profile instance.
newRules ( ) : AsyncPHP\Doorman\Rules Creates a new Rules instance.
newShell ( ) : AsyncPHP\Doorman\Shell Creates a new Shell instance.
stopSiblingTasks ( AsyncPHP\Doorman\Task $task ) Stops sibling processes of a task.

메소드 상세

__destruct() 공개 메소드

public __destruct ( )

addRule() 공개 메소드

public addRule ( AsyncPHP\Doorman\Rule $rule )
$rule AsyncPHP\Doorman\Rule

addTask() 공개 메소드

public addTask ( AsyncPHP\Doorman\Task $task )
$task AsyncPHP\Doorman\Task

getBinary() 공개 메소드

Gets the path of the PHP runtime.
public getBinary ( ) : string
리턴 string

getLogPath() 공개 메소드

public getLogPath ( ) : null | string
리턴 null | string

getRules() 공개 메소드

Gets or creates a new Rules instance.
public getRules ( ) : AsyncPHP\Doorman\Rules
리턴 AsyncPHP\Doorman\Rules

getRunning() 공개 메소드

Get a list of the running tasks.
public getRunning ( ) : array
리턴 array

getShell() 공개 메소드

Gets or creates a Shell instance.
public getShell ( ) : AsyncPHP\Doorman\Shell
리턴 AsyncPHP\Doorman\Shell

getWaiting() 공개 메소드

Get a list of the waiting tasks.
public getWaiting ( ) : array
리턴 array

getWorker() 공개 메소드

Gets the path of the worker script.
public getWorker ( ) : string
리턴 string

removeRule() 공개 메소드

public removeRule ( AsyncPHP\Doorman\Rule $rule )
$rule AsyncPHP\Doorman\Rule

setBinary() 공개 메소드

public setBinary ( string $binary )
$binary string

setLogPath() 공개 메소드

public setLogPath ( string $logPath )
$logPath string

setRules() 공개 메소드

public setRules ( AsyncPHP\Doorman\Rules $rules )
$rules AsyncPHP\Doorman\Rules

setShell() 공개 메소드

public setShell ( AsyncPHP\Doorman\Shell $shell )
$shell AsyncPHP\Doorman\Shell

setWorker() 공개 메소드

public setWorker ( string $worker )
$worker string

tick() 공개 메소드

public tick ( ) : boolean
리턴 boolean

프로퍼티 상세

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

protected null|Shell,AsyncPHP\Doorman $shell
리턴 null | AsyncPHP\Doorman\Shell