Свойство | Type | Description | |
---|---|---|---|
$hostname | The hostname | ||
$redis | The Redis instance | ||
$timeout | Host key timeout |
Méthode | Description | |
---|---|---|
__construct ( $hostname = null ) | Create a new host | |
__toString ( ) : string | Generate a string representation of this worker. | |
cleanup ( ) : array | Cleans up any dead hosts | |
finished ( |
Mark host as having a finished worker | |
redisKey ( |
Get the Redis key | |
working ( |
Mark host as having an active worker |
public __toString ( ) : string | ||
Résultat | string | Identifier for this worker instance. |
public finished ( |
||
$worker | The worker instance |
public working ( |
||
$worker | the worker instance |