The MIDServerFileSync script include provides methods to check to see if there are any changes to attachments on tables that are instances of MID Server synchronized files (ecc_agent_sync_file) and, if so, notifies the MID Servers of a change.

The tables that extend the sync tables are MID Server JAR file (ecc_agent_jar) and MID Server MIB File (ecc_agent_mib).

Use in server scripts to notify MID Servers.

MIDServerFileSync - MIDServerFileSync()

Creates an instance of MIDServerFileSync.

Table 1. Parameters
Name Type Description
None

MIDServerFileSync - notifyMIDServers(String table)

Checks for any changes to attachments on the specified table that are instances of MID server synchronized files and, if so, notifies the MID servers of a change.

Table 2. Parameters
Name Type Description
table String The table to check
Table 3. Returns
Type Description
void

Example

var msfs = new MIDServerFileSync();
msfs.notifyMIDServers('ex.table.name');