PHP Interface Graze\Supervisor\SupervisorInterface

Exibir arquivo Open project: graze/supervisor Interface Usage Examples

Public Methods

Method Description
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

Method Details

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