PHP Class Graze\Supervisor\ProcessSupervisor

Inheritance: implements Graze\Supervisor\SupervisorInterface
Show file Open project: graze/supervisor

Public Properties

Property Type Description
$stderr
$stdout

Protected Properties

Property Type Description
$handler
$process
$retries

Public Methods

Method Description
__construct ( Process $process, Graze\Supervisor\Handler\HandlerInterface $handler = null )
ping ( ) : boolean
restart ( callable $fn = null ) : Graze\Supervisor\SupervisorInterface
start ( callable $fn = null ) : Graze\Supervisor\SupervisorInterface
stop ( integer $signal = null ) : Graze\Supervisor\SupervisorInterface
supervise ( float $delay = 0.001 ) : Graze\Supervisor\SupervisorInterface

Protected Methods

Method Description
getDefaultHandler ( ) : Graze\Supervisor\Handler\HandlerInterface

Method Details

__construct() public method

public __construct ( Process $process, Graze\Supervisor\Handler\HandlerInterface $handler = null )
$process Symfony\Component\Process\Process
$handler Graze\Supervisor\Handler\HandlerInterface

getDefaultHandler() protected method

protected getDefaultHandler ( ) : Graze\Supervisor\Handler\HandlerInterface
return Graze\Supervisor\Handler\HandlerInterface

ping() public method

public ping ( ) : boolean
return boolean

restart() public method

public restart ( callable $fn = null ) : Graze\Supervisor\SupervisorInterface
$fn callable
return Graze\Supervisor\SupervisorInterface

start() public method

public start ( callable $fn = null ) : Graze\Supervisor\SupervisorInterface
$fn callable
return Graze\Supervisor\SupervisorInterface

stop() public method

public stop ( integer $signal = null ) : Graze\Supervisor\SupervisorInterface
$signal integer
return Graze\Supervisor\SupervisorInterface

supervise() public method

public supervise ( float $delay = 0.001 ) : Graze\Supervisor\SupervisorInterface
$delay float
return Graze\Supervisor\SupervisorInterface

Property Details

$handler protected property

protected $handler

$process protected property

protected $process

$retries protected property

protected $retries

$stderr public property

public $stderr

$stdout public property

public $stdout