PHP Class Altax\Module\Task\Process\Executor

Mostra file Open project: kohkimakimoto/altax Class Usage Examples

Protected Properties

Property Type Description
$childPids
$closure
$isParallel
$options
$runtimeTask

Public Methods

Method Description
__construct ( $runtimeTask, $closure, $options )
askPassphrase ( $validatingKey ) : string Ask SSH key passphrase.
execute ( )
getIsParallel ( )
getNodes ( )
killAllChildren ( )
setIsParallel ( $isParallel )
signalHandler ( $signo )

Protected Methods

Method Description
doExecute ( $node )
killProcess ( $pid )
loadNodes ( array $args ) : array Load nods from variable length argument lists same 'on' and 'for' method.

Method Details

__construct() public method

public __construct ( $runtimeTask, $closure, $options )

askPassphrase() public method

Ask SSH key passphrase.
public askPassphrase ( $validatingKey ) : string
return string passphrase

doExecute() protected method

protected doExecute ( $node )

execute() public method

public execute ( )

getIsParallel() public method

public getIsParallel ( )

getNodes() public method

public getNodes ( )

killAllChildren() public method

public killAllChildren ( )

killProcess() protected method

protected killProcess ( $pid )

loadNodes() protected method

Load nods from variable length argument lists same 'on' and 'for' method.
protected loadNodes ( array $args ) : array
$args array
return array Array of Altax\Module\Server\Resource\Node

setIsParallel() public method

public setIsParallel ( $isParallel )

signalHandler() public method

public signalHandler ( $signo )

Property Details

$childPids protected_oe property

protected $childPids

$closure protected_oe property

protected $closure

$isParallel protected_oe property

protected $isParallel

$options protected_oe property

protected $options

$runtimeTask protected_oe property

protected $runtimeTask