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