PHP Class PHPDaemon\IPCManager\IPCManager

Inheritance: extends PHPDaemon\Core\AppInstance
Afficher le fichier Open project: kakserpom/phpdaemon Class Usage Examples

Méthodes publiques

Свойство Type Description
$conn
$pool
$socketurl

Méthodes publiques

Méthode Description
ensureConnection ( )
getSocketUrl ( )
importFile ( $workerId, $path ) : boolean
init ( ) : void Constructor.
onShutdown ( boolean $graceful = false ) : boolean Called when application instance is going to shutdown.
sendBroadcastCall ( $appInstance, $method, array $args = [], callable $cb = null )
sendDirectCall ( $workerId, $appInstance, $method, array $args = [], callable $cb = null )
sendPacket ( $packet = null )
sendSingleCall ( $appInstance, $method, array $args = [], callable $cb = null )
updatedWorkers ( )

Méthodes protégées

Méthode Description
getConfigDefaults ( ) : array | boolean Setting default config options Overriden from AppInstance::getConfigDefaults

Method Details

ensureConnection() public méthode

public ensureConnection ( )

getConfigDefaults() protected méthode

Setting default config options Overriden from AppInstance::getConfigDefaults
protected getConfigDefaults ( ) : array | boolean
Résultat array | boolean

getSocketUrl() public méthode

public getSocketUrl ( )

importFile() public méthode

public importFile ( $workerId, $path ) : boolean
$workerId
$path
Résultat boolean

init() public méthode

Constructor.
public init ( ) : void
Résultat void

onShutdown() public méthode

Called when application instance is going to shutdown.
public onShutdown ( boolean $graceful = false ) : boolean
$graceful boolean
Résultat boolean Ready to shutdown?

sendBroadcastCall() public méthode

public sendBroadcastCall ( $appInstance, $method, array $args = [], callable $cb = null )
$appInstance
$method
$args array
$cb callable

sendDirectCall() public méthode

public sendDirectCall ( $workerId, $appInstance, $method, array $args = [], callable $cb = null )
$workerId
$appInstance
$method
$args array
$cb callable

sendPacket() public méthode

public sendPacket ( $packet = null )
$packet

sendSingleCall() public méthode

public sendSingleCall ( $appInstance, $method, array $args = [], callable $cb = null )
$appInstance
$method
$args array
$cb callable

updatedWorkers() public méthode

public updatedWorkers ( )

Property Details

$conn public_oe property

public $conn

$pool public_oe property

public $pool

$socketurl public_oe property

public $socketurl