PHP 클래스 PHPDaemon\Thread\IPC

상속: extends Generic
파일 보기 프로젝트 열기: kakserpom/phpdaemon 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$IPCManager
$fileWatcher PHPDaemon\FS\FileWatcher File watcher
$instancesCount array Instances count
$loop PHPDaemon\Core\EventLoop Event base
$reload boolean If true, we do not register signals automatically at start
$update boolean Update?

보호된 프로퍼티들

프로퍼티 타입 설명
$breakMainLoop boolean Break main loop?
$delayedSigReg boolean If true, we do not register signals automatically at start
$reloadReady boolean Reload ready?

공개 메소드들

메소드 설명
log ( string $message ) : void Log something
shutdown ( $hard = false ) : boolean | null Shutdown thread
sighup ( ) : void Handler of the SIGHUP (reload config) signal in worker process.
sigquit ( ) : void Handler of the SIGQUIT (graceful shutdown) signal in worker process.
sigttin ( ) : void Handler of the SIGTTIN signal in worker process.
sigunknown ( $signo ) : void Handler of non-known signals.
sigusr1 ( ) : void Handler of the SIGUSR1 (re-open log-file) signal in worker process.
sigusr2 ( ) : void Handler of the SIGUSR2 (graceful shutdown for update) signal in worker process.
sigxfsz ( ) : void Handler of the SIGXSFZ signal in worker process.

보호된 메소드들

메소드 설명
prepareSystemEnv ( ) : void Setup settings on start.
run ( ) : void Runtime of Worker process.
sigint ( ) : void Handler of the SIGINT (hard shutdown) signal in worker process.
sigterm ( ) : void Handler of the SIGTERM (graceful shutdown) signal in worker process.
sigtstp ( ) : void Handler of the SIGTSTP (graceful stop) signal in worker process.
update ( ) : void Reloads additional config-files on-the-fly.

메소드 상세

log() 공개 메소드

Log something
public log ( string $message ) : void
$message string
리턴 void

prepareSystemEnv() 보호된 메소드

Setup settings on start.
protected prepareSystemEnv ( ) : void
리턴 void

run() 보호된 메소드

Runtime of Worker process.
protected run ( ) : void
리턴 void

shutdown() 공개 메소드

Shutdown thread
public shutdown ( $hard = false ) : boolean | null
리턴 boolean | null - Ready?

sighup() 공개 메소드

Handler of the SIGHUP (reload config) signal in worker process.
public sighup ( ) : void
리턴 void

sigint() 보호된 메소드

Handler of the SIGINT (hard shutdown) signal in worker process.
protected sigint ( ) : void
리턴 void

sigquit() 공개 메소드

Handler of the SIGQUIT (graceful shutdown) signal in worker process.
public sigquit ( ) : void
리턴 void

sigterm() 보호된 메소드

Handler of the SIGTERM (graceful shutdown) signal in worker process.
protected sigterm ( ) : void
리턴 void

sigtstp() 보호된 메소드

Handler of the SIGTSTP (graceful stop) signal in worker process.
protected sigtstp ( ) : void
리턴 void

sigttin() 공개 메소드

Handler of the SIGTTIN signal in worker process.
public sigttin ( ) : void
리턴 void

sigunknown() 공개 메소드

Handler of non-known signals.
public sigunknown ( $signo ) : void
리턴 void

sigusr1() 공개 메소드

Handler of the SIGUSR1 (re-open log-file) signal in worker process.
public sigusr1 ( ) : void
리턴 void

sigusr2() 공개 메소드

Handler of the SIGUSR2 (graceful shutdown for update) signal in worker process.
public sigusr2 ( ) : void
리턴 void

sigxfsz() 공개 메소드

Handler of the SIGXSFZ signal in worker process.
public sigxfsz ( ) : void
리턴 void

update() 보호된 메소드

Reloads additional config-files on-the-fly.
protected update ( ) : void
리턴 void

프로퍼티 상세

$IPCManager 공개적으로 프로퍼티

public $IPCManager

$breakMainLoop 보호되어 있는 프로퍼티

Break main loop?
protected bool $breakMainLoop
리턴 boolean

$delayedSigReg 보호되어 있는 프로퍼티

If true, we do not register signals automatically at start
protected bool $delayedSigReg
리턴 boolean

$fileWatcher 공개적으로 프로퍼티

File watcher
public FileWatcher,PHPDaemon\FS $fileWatcher
리턴 PHPDaemon\FS\FileWatcher

$instancesCount 공개적으로 프로퍼티

Instances count
public array $instancesCount
리턴 array

$loop 공개적으로 프로퍼티

Event base
public EventLoop,PHPDaemon\Core $loop
리턴 PHPDaemon\Core\EventLoop

$reload 공개적으로 프로퍼티

If true, we do not register signals automatically at start
public bool $reload
리턴 boolean

$reloadReady 보호되어 있는 프로퍼티

Reload ready?
protected bool $reloadReady
리턴 boolean

$update 공개적으로 프로퍼티

Update?
public bool $update
리턴 boolean