PHP Класс Spork\ProcessManager

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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 )

Описание методов

__construct() публичный Метод

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

__destruct() публичный Метод

public __destruct ( )

addListener() публичный Метод

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

check() публичный Метод

public check ( )

createBatchJob() публичный Метод

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

fork() публичный Метод

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

getEventDispatcher() публичный Метод

public getEventDispatcher ( )

killAll() публичный Метод

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

monitor() публичный Метод

public monitor ( $signal = SIGUSR1 )

process() публичный Метод

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

setDebug() публичный Метод

public setDebug ( $debug )

wait() публичный Метод

public wait ( $hang = true )

waitFor() публичный Метод

public waitFor ( $pid, $hang = true )

waitForNext() публичный Метод

public waitForNext ( $hang = true )

zombieOkay() публичный Метод

public zombieOkay ( $zombieOkay = true )