PHP Class Spork\ProcessManager

Afficher le fichier Open project: kriswallsmith/spork Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Spork\EventDispatcher\EventDispatcherInterface $dispatcher = null, Factory $factory = null, $debug = false )
__destruct ( )
addListener ( $eventName, $listener, $priority )
check ( )
createBatchJob ( $data = null, Spork\Batch\Strategy\StrategyInterface $strategy = null )
fork ( $callable ) Forks something into another process and returns a deferred object.
getEventDispatcher ( )
killAll ( $signal = SIGINT ) Sends a signal to all forks.
monitor ( $signal = SIGUSR1 )
process ( $data, $callable, Spork\Batch\Strategy\StrategyInterface $strategy = null )
setDebug ( $debug )
wait ( $hang = true )
waitFor ( $pid, $hang = true )
waitForNext ( $hang = true )
zombieOkay ( $zombieOkay = true )

Method Details

__construct() public méthode

public __construct ( Spork\EventDispatcher\EventDispatcherInterface $dispatcher = null, Factory $factory = null, $debug = false )
$dispatcher Spork\EventDispatcher\EventDispatcherInterface
$factory Factory

__destruct() public méthode

public __destruct ( )

addListener() public méthode

public addListener ( $eventName, $listener, $priority )

check() public méthode

public check ( )

createBatchJob() public méthode

public createBatchJob ( $data = null, Spork\Batch\Strategy\StrategyInterface $strategy = null )
$strategy Spork\Batch\Strategy\StrategyInterface

fork() public méthode

Forks something into another process and returns a deferred object.
public fork ( $callable )

getEventDispatcher() public méthode

public getEventDispatcher ( )

killAll() public méthode

Sends a signal to all forks.
public killAll ( $signal = SIGINT )

monitor() public méthode

public monitor ( $signal = SIGUSR1 )

process() public méthode

public process ( $data, $callable, Spork\Batch\Strategy\StrategyInterface $strategy = null )
$strategy Spork\Batch\Strategy\StrategyInterface

setDebug() public méthode

public setDebug ( $debug )

wait() public méthode

public wait ( $hang = true )

waitFor() public méthode

public waitFor ( $pid, $hang = true )

waitForNext() public méthode

public waitForNext ( $hang = true )

zombieOkay() public méthode

public zombieOkay ( $zombieOkay = true )