MonitorMIDServer - Global

Monitors MID servers using the heartbeat probe to check for MID servers that are down, sends heartbeat requests, and kills old heartbeat requests.

Use in a server script to monitor MID servers.

MonitorMIDServer - killOldRequests()

If there are any heartbeat probe requests that haven't been processed, cancels them so that they don't accumulate when a MID server is down for a while.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
void
var mmsv = new MonitorMIDServer();
mmsv.killOldRequests();

MonitorMIDServer - markDowners()

Marks any non-responding MID servers as being down, by determining when the most recent heartbeat was sent and finding all non-responding servers.

Table 3. Parameters
Name Type Description
None
Table 4. Returns
Type Description
void
var mmsv = new MonitorMIDServer();
mmsv.markDowners();

MonitorMIDServer - monitor()

Performs the functions required for a scheduled MID server monitor cycle, including killing old requests, marking the MID servers that are down, and sending heartbeat requests to all servers.

Table 5. Parameters
Name Type Description
None
Table 6. Returns
Type Description
void
var mmsv = new MonitorMIDServer();
mmsv.monitor();

MonitorMIDServer - MonitorMIDServer()

Creates an instance of MonitorMIDServer.

Table 7. Parameters
Name Type Description
None

MonitorMIDServer - sendHeartbeatRequests()

Sends heartbeat requests to all MID servers and notes when by updating the server status record.

Table 8. Parameters
Name Type Description
None
Table 9. Returns
Type Description
void
var mmsv = new MonitorMIDServer();
mmsv.sendHeartbeatRequests();