PHP Class Cronario\Facade

Datei anzeigen Open project: cronario/cronario Class Usage Examples

Protected Properties

Property Type Description
$builders array Producer builders scope
$producers array Producer instances

Public Methods

Method Description
addBuilder ( $appId, $builderFunction ) : boolean Add Builder to facade builder scope
addProducer ( Producer $producer ) : boolean Add producer to facade
cleanProducers ( ) : boolean Clean producer scope
getJobsReserved ( ) : array Get all reserved jobs
getManagersStats ( ) : array Get all managers statistic
getProducer ( string $appId = Producer::DEFAULT_APP_ID ) : Producer | null Get producer by id
getProducersStats ( ) : array Get producer statistic
getQueuesStats ( ) : array Get queues statistic
getStorage ( $appId ) : Cronario\Storage\StorageInterface Get storage by application id

Method Details

addBuilder() public static method

Add Builder to facade builder scope
public static addBuilder ( $appId, $builderFunction ) : boolean
$appId
$builderFunction
return boolean

addProducer() public static method

Add producer to facade
public static addProducer ( Producer $producer ) : boolean
$producer Producer
return boolean

cleanProducers() public static method

Clean producer scope
public static cleanProducers ( ) : boolean
return boolean

getJobsReserved() public static method

Get all reserved jobs
public static getJobsReserved ( ) : array
return array

getManagersStats() public static method

Get all managers statistic
public static getManagersStats ( ) : array
return array

getProducer() public static method

Get producer by id
public static getProducer ( string $appId = Producer::DEFAULT_APP_ID ) : Producer | null
$appId string
return Producer | null

getProducersStats() public static method

Get producer statistic
public static getProducersStats ( ) : array
return array

getQueuesStats() public static method

Get queues statistic
public static getQueuesStats ( ) : array
return array

getStorage() public static method

Get storage by application id
public static getStorage ( $appId ) : Cronario\Storage\StorageInterface
$appId
return Cronario\Storage\StorageInterface

Property Details

$builders protected_oe static_oe property

Producer builders scope
protected static array $builders
return array

$producers protected_oe static_oe property

Producer instances
protected static array $producers
return array