PHP Class Graze\Supervisor\SupervisorSupervisor

Inheritance: implements Graze\Supervisor\SupervisorInterface
ファイルを表示 Open project: graze/supervisor

Public Properties

Property Type Description
$stderr
$stdout

Protected Properties

Property Type Description
$handler
$retries
$supervisors

Public Methods

Method Description
__construct ( array $supervisors, 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
reset ( integer $retries )
updateOutput ( )

Method Details

__construct() public method

public __construct ( array $supervisors, Graze\Supervisor\Handler\HandlerInterface $handler = null )
$supervisors array
$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

reset() protected method

protected reset ( integer $retries )
$retries integer

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

updateOutput() protected method

protected updateOutput ( )

Property Details

$handler protected_oe property

protected $handler

$retries protected_oe property

protected $retries

$stderr public_oe property

public $stderr

$stdout public_oe property

public $stdout

$supervisors protected_oe property

protected $supervisors