PHP 클래스 PHPDaemon\Examples\GameMonitor

상속: extends PHPDaemon\Core\AppInstance
파일 보기 프로젝트 열기: kakserpom/phpdaemon

공개 프로퍼티들

프로퍼티 타입 설명
$client
$db
$jobMap
$servers

공개 메소드들

메소드 설명
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 )

보호된 메소드들

메소드 설명
getConfigDefaults ( ) : array | false Setting default config options Overriden from AppInstance::getConfigDefaults Uncomment and return array with your default options

메소드 상세

beginRequest() 공개 메소드

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

getConfigDefaults() 보호된 메소드

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

init() 공개 메소드

Constructor.
public init ( ) : void
리턴 void

onConfigUpdated() 공개 메소드

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

onReady() 공개 메소드

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

onShutdown() 공개 메소드

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

updateAllServers() 공개 메소드

public updateAllServers ( )

updateServer() 공개 메소드

public updateServer ( $server )

프로퍼티 상세

$client 공개적으로 프로퍼티

public $client

$db 공개적으로 프로퍼티

public $db

$jobMap 공개적으로 프로퍼티

public $jobMap

$servers 공개적으로 프로퍼티

public $servers