Package | Description |
---|---|
org.enanoservices.servermonitor |
Modifier and Type | Method | Description |
---|---|---|
void |
Server.checkHearBeatTimeout(long nowMs,
IServerMonitor monitor) |
used for remote servers
called from ServerHolder.updateServersState(), from ServerMonitorThread
- check if heart beat has been received within the last x ms
- change the server state to disconnect if it hasn't
- no action if server is connected since the heartbeat message
will be updating the server state
|
void |
ThisServer.checkHearBeatTimeout(long nowMs,
IServerMonitor monitor) |
called from ServerHolder.updateServersState(), from ServerMonitorThread
- check if heart beat has been received within the last x ms
- change the server state to disconnect if it hasn't
- no action if server is connected since the heartbeat message
will be updating the server state
|
void |
Server.processHeartBeat(org.enanoservices.servermonitor.HeartBeatBody body,
long timeSent,
IServerMonitor monitor) |
process heart-beat but only for remote servers not for this one
ThisServer overrides this method
first heart-beat reports server as disconnected, which is finetoggleAdminState
server not connected detected in checkHearBeatTimeout, called by ServerMonitorThread
caller needs to obtain the lock
|
void |
ThisServer.processHeartBeat(org.enanoservices.servermonitor.HeartBeatBody body,
long timeSent,
IServerMonitor monitor) |
|
void |
ThisServer.updateState(org.enanoservices.servermonitor.ServerEvent.Event event,
IServerMonitor monitor) |