Utility routines for accessing information from the Equipment Name Server (ENS). More...
Static Public Member Functions | |
static int | flushNonRespondingServers (String context) |
Signals the ENS to ping all registered servers in the context given and remove from the database those which do not respond. More... | |
static int | setAllowedDownTime (int downTime) |
Sets the allowed server down time at the ENS. More... | |
static int | getAllowedDownTime () |
Gets the allowed server down time from the ENS. More... | |
static int | getAllowedDeviceSubsystems (String[] subsystems, String[] descriptions) throws IOException |
Provides a list of the available allowed subsystems at the ENS and an associated list of subsystem descriptions (depending on input). More... | |
static int | sendExportInformationToENS (SrvAddr da, FECInfo info) |
Sends the information to the ENS as if a booting FEC is issuing a plug-and-play registration. More... | |
static int | removeFECFromENS (String fecName) |
Removes the given FEC from the ENS database. More... | |
static NAME16I | getSuggestedFECName (String context, String server) |
Obtains a unique FEC name applicable to the context and server names given. More... | |
static int | removeDeviceServerFromENS (String context, String deviceServer) |
Removes the given device server from the ENS database. More... | |
static String[] | getGroupsFromGENS (String context) |
Retrieves the registered device server groups from the Group ENS. More... | |
static String[] | getGroupMembersFromGENS (String context, String group) |
Retrieves the registered device server groups from the Group ENS. More... | |
static int | removeDeviceServerFromGroup (String context, String deviceServer, String group) |
Removes the given device server from the specified device group. More... | |
static int | addDeviceServerToGroup (String context, String deviceServer, String group, String subSystem, int groupIndex) |
Adds a device server group member to the group specified. More... | |
static int | addDeviceServerToGroup (String context, String deviceServer, String group, String subSystem, int groupIndex, String groupDevicePrefix, String groupDevicePostfix) |
Adds a device server group member to the group specified. More... | |
static void | toggleENS () |
Switch to the 'next configured' Equipment Name Server. | |
static String | getCurrentENSAddress () |
Gets the current configured ENS IP address as a string. More... | |
static String | getCurrentENS () |
Gets the current configured ENS server name. More... | |
Utility routines for accessing information from the Equipment Name Server (ENS).
|
static |
Adds a device server group member to the group specified.
This routine can be used by an ENS administrator to add device servers to a given group as if a booting server had itself issued a plug-and-play request.
context | is the context of the device group |
deviceServer | is the device server to add to the group |
group | is the device group |
subSystem | is the subsystem to which the group should belong (relevant if the given device group is new). |
groupIndex | is a 'metric' which is used by the group server to establish the device order presented by the group server (smaller group indices come first). |
|
static |
Adds a device server group member to the group specified.
This routine can be used by an ENS administrator to add device servers to a given group as if a booting server had itself issued a plug-and-play request.
context | is the context of the device group |
deviceServer | is the device server to add to the group |
group | is the device group |
subSystem | is the subsystem to which the group should belong (relevant if the given device group is new). |
groupIndex | is a 'metric' which is used by the group server to establish the device order presented by the group server (smaller group indices come first). |
groupDevicePrefix | is a prefix identifier to be applied to the device list associated with the deviceServer given. Pass a 'null' or empty entry if no prefix is desired. |
groupDevicePostfix | is a postfix identifier to be applied to the device list associated with the deviceServer given. Pass a 'null' or empty entry if no postfix is desired. |
References de.desy.tine.client.TLink.close(), and de.desy.tine.client.TLink.execute().
|
static |
Signals the ENS to ping all registered servers in the context given and remove from the database those which do not respond.
context | is the context for which the flush activity should take place |
References de.desy.tine.client.TLink.close(), and de.desy.tine.client.TLink.execute().
|
static |
Provides a list of the available allowed subsystems at the ENS and an associated list of subsystem descriptions (depending on input).
subsystems | input/output supplies a reference to a string array which is to hold the list of allowed subsystems upon successful completion. If this array is not dimensioned large enough to contain the available list, the list will be truncated. |
descriptions | input/output supplies a reference to a string array which is to hold the list of subsystem descriptions upon successful completion. If a null is passed, then no descriptions are returned. |
IOException,TineRuntimeErrorException |
References de.desy.tine.client.TLink.executeAndClose(), and de.desy.tine.dataUtils.TDataType.getCompletionLength().
|
static |
Gets the allowed server down time from the ENS.
This applies to ALL servers in the ENS database and constitutes a maximum duration a server is allowed to be down before being removed from the database
References de.desy.tine.client.TLink.executeAndClose().
|
static |
Gets the current configured ENS server name.
|
static |
Gets the current configured ENS IP address as a string.
|
static |
Retrieves the registered device server groups from the Group ENS.
context | is the context of the device group |
group | is the device group |
References de.desy.tine.client.TLink.executeAndClose(), and de.desy.tine.dataUtils.TDataType.getCompletionLength().
|
static |
Retrieves the registered device server groups from the Group ENS.
context | is the context whose groups are desired |
References de.desy.tine.client.TLink.close(), de.desy.tine.client.TLink.execute(), and de.desy.tine.dataUtils.TDataType.getCompletionLength().
|
static |
Obtains a unique FEC name applicable to the context and server names given.
context | the context of the new server |
server | the server name of the new server |
TineRuntimeErrorException | (likely invalid_parameter or connection_timeout) |
|
static |
Removes the given device server from the ENS database.
context | is the context of the device server to be removed |
deviceServer | is the device server to be removed |
References de.desy.tine.client.TLink.close(), and de.desy.tine.client.TLink.execute().
|
static |
Removes the given device server from the specified device group.
context | is the context of the device group |
deviceServer | is the device server group member to be removed |
group | is the device group |
References de.desy.tine.client.TLink.close(), and de.desy.tine.client.TLink.execute().
|
static |
Removes the given FEC from the ENS database.
fecName | is the FEC name to be removed from the ENS database |
References de.desy.tine.client.TLink.executeAndClose().
|
static |
Sends the information to the ENS as if a booting FEC is issuing a plug-and-play registration.
This routine can be used by an ENS administrator to register aliases, etc.
da | the the full server address information |
info | is the accompanying FEC information |
References de.desy.tine.client.TLink.executeAndClose().
|
static |
Sets the allowed server down time at the ENS.
This applies to ALL servers in the ENS database and establishes a maximum duration a server is allowed to be down before being removed from the database
downTime | is the allowed down time in seconds |
References de.desy.tine.client.TLink.close(), and de.desy.tine.client.TLink.execute().