PHP Class Cronario\Manager

Inheritance: extends Thread
显示文件 Open project: cronario/cronario

Protected Properties

Property Type Description
$appId
$bootstrapFile
$eventTriggerSet
$id
$logger Psr\Log\LoggerInterface
$producer Producer
$queue Queue
$redis Predis\Client
$startOn
$workerClass
$workerConfig region Worker ***********************************************************

Public Methods

Method Description
__construct ( $id, $appId, $workerClass, $bootstrapFile )
parseManagerStatKey ( $key ) : array
run ( ) : boolean

Protected Methods

Method Description
buildManagerLiveKey ( $id ) : string
buildManagerStatKey ( ) : string
eventTrigger ( $event )
finishManagerLive ( )
getAppId ( ) : mixed
getBootstrapFile ( ) : mixed
getId ( ) : mixed
getLogger ( ) : Psr\Log\LoggerInterface
getProducer ( ) : Producer
getQueue ( ) : Queue
getRedis ( ) : Client
getStartOn ( ) : mixed
getWorkerClass ( ) : mixed
getWorkerConfig ( null $key = null ) : mixed
isLimitsExceeded ( ) : boolean
isProducerShutDown ( ) : boolean
setAppId ( $appId )
setBootstrapFile ( $bootstrapFile )
setId ( $id )
setWorkerClass ( $workerClass )
startManagerLive ( )
waitDelay ( )

Method Details

__construct() public method

public __construct ( $id, $appId, $workerClass, $bootstrapFile )
$id
$appId
$workerClass
$bootstrapFile

buildManagerLiveKey() protected method

protected buildManagerLiveKey ( $id ) : string
$id
return string

buildManagerStatKey() protected method

protected buildManagerStatKey ( ) : string
return string

eventTrigger() protected method

protected eventTrigger ( $event )
$event

finishManagerLive() protected method

protected finishManagerLive ( )

getAppId() protected method

protected getAppId ( ) : mixed
return mixed

getBootstrapFile() protected method

protected getBootstrapFile ( ) : mixed
return mixed

getId() protected method

protected getId ( ) : mixed
return mixed

getLogger() protected method

protected getLogger ( ) : Psr\Log\LoggerInterface
return Psr\Log\LoggerInterface

getProducer() protected method

protected getProducer ( ) : Producer
return Producer

getQueue() protected method

protected getQueue ( ) : Queue
return Queue

getRedis() protected method

protected getRedis ( ) : Client
return Predis\Client

getStartOn() protected method

protected getStartOn ( ) : mixed
return mixed

getWorkerClass() protected method

protected getWorkerClass ( ) : mixed
return mixed

getWorkerConfig() protected method

protected getWorkerConfig ( null $key = null ) : mixed
$key null
return mixed

isLimitsExceeded() protected method

protected isLimitsExceeded ( ) : boolean
return boolean

isProducerShutDown() protected method

protected isProducerShutDown ( ) : boolean
return boolean

parseManagerStatKey() public static method

public static parseManagerStatKey ( $key ) : array
$key
return array

run() public method

public run ( ) : boolean
return boolean

setAppId() protected method

protected setAppId ( $appId )
$appId

setBootstrapFile() protected method

protected setBootstrapFile ( $bootstrapFile )
$bootstrapFile

setId() protected method

protected setId ( $id )
$id

setWorkerClass() protected method

protected setWorkerClass ( $workerClass )
$workerClass

startManagerLive() protected method

protected startManagerLive ( )

waitDelay() protected method

protected waitDelay ( )

Property Details

$appId protected_oe property

protected $appId

$bootstrapFile protected_oe property

protected $bootstrapFile

$eventTriggerSet protected_oe property

protected $eventTriggerSet

$id protected_oe property

protected $id

$logger protected_oe static_oe property

protected static LoggerInterface,Psr\Log $logger
return Psr\Log\LoggerInterface

$producer protected_oe static_oe property

protected static Producer,cronario $producer
return Producer

$queue protected_oe static_oe property

protected static Queue,cronario $queue
return Queue

$redis protected_oe static_oe property

protected static Client,Predis $redis
return Predis\Client

$startOn protected_oe property

protected $startOn

$workerClass protected_oe property

protected $workerClass

$workerConfig protected_oe static_oe property

region Worker ***********************************************************
protected static $workerConfig