PHP Class Spork\ProcessManager

Datei anzeigen Open project: kriswallsmith/spork Class Usage Examples

Public Methods

Method 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 method

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

__destruct() public method

public __destruct ( )

addListener() public method

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

check() public method

public check ( )

createBatchJob() public method

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

fork() public method

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

getEventDispatcher() public method

public getEventDispatcher ( )

killAll() public method

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

monitor() public method

public monitor ( $signal = SIGUSR1 )

process() public method

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

setDebug() public method

public setDebug ( $debug )

wait() public method

public wait ( $hang = true )

waitFor() public method

public waitFor ( $pid, $hang = true )

waitForNext() public method

public waitForNext ( $hang = true )

zombieOkay() public method

public zombieOkay ( $zombieOkay = true )