PHP 클래스 Spork\Factory

파일 보기 프로젝트 열기: kriswallsmith/spork

공개 메소드들

메소드 설명
createBatchJob ( ProcessManager $manager, null $data = null, Spork\Batch\Strategy\StrategyInterface $strategy = null ) : Spork\Batch\BatchJob Creates a new batch job instance.
createFork ( integer $pid, SharedMemory $shm, boolean $debug = false ) : Fork Creates a new fork instance.
createSharedMemory ( integer $pid = null, integer $signal = null ) : SharedMemory Creates a new shared memory instance.

메소드 상세

createBatchJob() 공개 메소드

Creates a new batch job instance.
public createBatchJob ( ProcessManager $manager, null $data = null, Spork\Batch\Strategy\StrategyInterface $strategy = null ) : Spork\Batch\BatchJob
$manager ProcessManager The process manager
$data null Data for the batch job
$strategy Spork\Batch\Strategy\StrategyInterface The strategy
리턴 Spork\Batch\BatchJob A new batch job instance

createFork() 공개 메소드

Creates a new fork instance.
public createFork ( integer $pid, SharedMemory $shm, boolean $debug = false ) : Fork
$pid integer Process id
$shm SharedMemory Shared memory
$debug boolean Debug mode
리턴 Fork A new fork instance

createSharedMemory() 공개 메소드

Creates a new shared memory instance.
public createSharedMemory ( integer $pid = null, integer $signal = null ) : SharedMemory
$pid integer The child process id or null if this is the child
$signal integer The signal to send after writing to shared memory
리턴 SharedMemory A new shared memory instance