PHP 클래스 Spork\ProcessManager

파일 보기 프로젝트 열기: kriswallsmith/spork 1 사용 예제들

공개 메소드들

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