PHP Class PHPDaemon\Examples\GameMonitor

Inheritance: extends PHPDaemon\Core\AppInstance
Datei anzeigen Open project: kakserpom/phpdaemon

Public Properties

Property Type Description
$client
$db
$jobMap
$servers

Public Methods

Method Description
beginRequest ( $req, $upstream ) : GameMonitorHTTPRequest Creates Request.
init ( ) : void Constructor.
onConfigUpdated ( ) : void Called when worker is going to update configuration.
onReady ( ) : void Called when the worker is ready to go.
onShutdown ( ) : boolean Called when application instance is going to shutdown.
updateAllServers ( )
updateServer ( $server )

Protected Methods

Method Description
getConfigDefaults ( ) : array | false Setting default config options Overriden from AppInstance::getConfigDefaults Uncomment and return array with your default options

Method Details

beginRequest() public method

Creates Request.
public beginRequest ( $req, $upstream ) : GameMonitorHTTPRequest
return GameMonitorHTTPRequest Request.

getConfigDefaults() protected method

Setting default config options Overriden from AppInstance::getConfigDefaults Uncomment and return array with your default options
protected getConfigDefaults ( ) : array | false
return array | false

init() public method

Constructor.
public init ( ) : void
return void

onConfigUpdated() public method

Called when worker is going to update configuration.
public onConfigUpdated ( ) : void
return void

onReady() public method

Called when the worker is ready to go.
public onReady ( ) : void
return void

onShutdown() public method

Called when application instance is going to shutdown.
public onShutdown ( ) : boolean
return boolean Ready to shutdown?

updateAllServers() public method

public updateAllServers ( )

updateServer() public method

public updateServer ( $server )

Property Details

$client public_oe property

public $client

$db public_oe property

public $db

$jobMap public_oe property

public $jobMap

$servers public_oe property

public $servers