PHP Class Comos\Qpm\Supervision\Config

显示文件 Open project: comos/qpm Class Usage Examples

Protected Properties

Property Type Description
$_factory
$_keeperRestartPolicy
$_onTimeout
$_quantity
$_termTimeout
$_timeout

Public Methods

Method Description
__construct ( array $config )
getFactoryMethod ( )
getKeeperRestartPolicy ( )
getOnTimeout ( )
getQuantity ( )
getTermTimeout ( ) : float
getTimeout ( ) : integer
isKillingOnTimeoutEnabled ( ) : boolean
isTimeoutEnabled ( ) : boolean

Private Methods

Method Description
_fetchFloatValue ( $config, $field, $defaultValue )
_fetchIntValue ( $config, $field, $defaultValue )
_initFactory ( $config )
_initKeeperRestartPolicy ( $config )
_initOnTimeout ( $config )
_initQuantity ( $config )
_initTermTimeout ( $config )
_initTimeout ( $config )

Method Details

__construct() public method

public __construct ( array $config )
$config array { @var \Callable factory @var \Callable|String worker a callback to run in child processes or a name of Class which implements QPM\Process|Runnable @var int quantity @var int maxRestartTimes @var withInSeconds @var timeout @var termTimeout }

getFactoryMethod() public method

public getFactoryMethod ( )

getKeeperRestartPolicy() public method

getOnTimeout() public method

public getOnTimeout ( )

getQuantity() public method

public getQuantity ( )

getTermTimeout() public method

public getTermTimeout ( ) : float
return float

getTimeout() public method

public getTimeout ( ) : integer
return integer

isKillingOnTimeoutEnabled() public method

isTimeoutEnabled() public method

public isTimeoutEnabled ( ) : boolean
return boolean

Property Details

$_factory protected_oe property

protected $_factory

$_keeperRestartPolicy protected_oe property

protected $_keeperRestartPolicy

$_onTimeout protected_oe property

protected $_onTimeout

$_quantity protected_oe property

protected $_quantity

$_termTimeout protected_oe property

protected $_termTimeout

$_timeout protected_oe property

protected $_timeout