Method |
Description |
|
__construct ( ) |
|
|
addServerClient ( $address ) |
|
|
appendserlist ( $data, $score, $keyname = 'Distributed' ) |
添加到分布式服务器列表 |
|
delkey ( $keyname = 'errser' ) |
删除错误服务器 |
|
getInstance ( ) |
单例 |
|
geterrlist ( $data ) |
定时获取移除的服务器 |
|
getkey ( $keyname = 'errser' ) |
获取错误服务器 |
|
getserlist ( $keyname = 'Distributed' ) |
获取分布式服务器列表 |
|
onClose ( $client ) |
服务器断开连接 |
|
onConnect ( $serv ) |
|
|
onError ( $client ) |
服务器连接失败 |
|
onFinish ( $serv, $task_id, $data ) |
|
|
onReceive ( $client, $data ) |
|
|
onTask ( $serv, $task_id, $from_id, $data ) |
|
|
removeuser ( $data, $keyname = 'Distributed' ) |
从分布式服务器列表删除 |
|
setkey ( $data, $keyname = 'errser' ) |
设置错误服务器 |
|