Property | Type | Description | |
---|---|---|---|
$shell | null | AsyncPHP\Doorman\Shell |
Method | Description | |
---|---|---|
__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 |
Method | Description | |
---|---|---|
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. |
public getRules ( ) : AsyncPHP\Doorman\Rules | ||
return | AsyncPHP\Doorman\Rules |
public getRunning ( ) : array | ||
return | array |
public getShell ( ) : AsyncPHP\Doorman\Shell | ||
return | AsyncPHP\Doorman\Shell |
public getWaiting ( ) : array | ||
return | array |
public removeRule ( AsyncPHP\Doorman\Rule $rule ) | ||
$rule | AsyncPHP\Doorman\Rule |
public setRules ( AsyncPHP\Doorman\Rules $rules ) | ||
$rules | AsyncPHP\Doorman\Rules |
public setShell ( AsyncPHP\Doorman\Shell $shell ) | ||
$shell | AsyncPHP\Doorman\Shell |
protected null|Shell,AsyncPHP\Doorman $shell | ||
return | null | AsyncPHP\Doorman\Shell |