public class GUIServices_Corba extends _GUIServicesImplBase implements org.omg.CORBA.Object, SnwGUIServicesServer
| Constructor and Description |
|---|
GUIServices_Corba()
Create a new GUIServices_Corba object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkInactivityTimeout()
Checks to see if enough time has passed since the last client activity to
declare an inactivity timeout, and disconnect the client.
|
void |
connect(Server sObj,
java.lang.String clientID,
long inactivityTimeout)
Connect to the NSI server.
|
void |
disconnect()
Disconnects the calling GUI-client from the NSI server.
|
java.lang.String |
fixStr(java.lang.String str)
Converts the given string to one that is safe to send.
|
java.lang.String |
getAgentInfo(java.lang.String agentName,
int timeVal)
Returns information about the given agent.
|
java.lang.String |
getAgentNames(boolean longNamesFlag)
Returns the names of all the agents reporting to the server.
|
java.lang.String |
getAllStationsSnapshot(int timeVal)
Returns an historical snapshot of all stations at the given time value.
|
java.lang.String |
getAllStationsUpdate(int timeVal)
Returns an update on all stations that have changed status or usage since
the given time value.
|
boolean |
getDisPendingFlag()
Returns the value of disconnect-pending flag.
|
java.lang.String |
getExtendedAllStationsUpdate(int timeVal)
Returns an update on all stations that have changed status or usage since
the given time value.
|
java.lang.String |
getHelpString()
Gets the general help string.
|
java.lang.String |
getIDString()
Returns the ID of the client (the ip address).
|
java.lang.String |
getNSIStartTime()
Returns the local start time of the NSI server as a string.
|
java.lang.String |
getNSIVersionString()
Gets the version string of the NSI server.
|
java.lang.String |
getParameterCompSet(java.lang.String stationName,
java.lang.String paramName)
Returns the comparison set for the given parameter from the given station
(for its current usage level).
|
java.lang.String |
getParameterHelpString(java.lang.String parmName)
Gets the help string for the given parameter.
|
java.lang.String |
getParameterHistory(java.lang.String stationName,
java.lang.String paramName,
int startSecs,
int endSecs)
Returns a set of values and timestamps representing the "history" of the
given parameter from the given station.
|
void |
getParameterInformation(java.lang.String stationName,
java.lang.String paramName,
org.omg.CORBA.LongHolder startSecs,
org.omg.CORBA.LongHolder endSecs,
org.omg.CORBA.IntHolder numPoints)
Returns information for the given parameter from the given station.
|
java.lang.String |
getPropertyList()
Returns a list of property strings to be used in a selection combo-box used
to display a subset of stations.
|
java.lang.String |
getPropValuesList(java.lang.String propString)
Returns a list of values strings to be used in a selection combo-box with
the given property, to select a subset of stations.
|
java.lang.String |
getSameStatusSubsets(int timeVal,
java.lang.String statusLevelStr)
Returns a String indicating all the subset-of-stations sets that contain
stations that are all at the given status level as of the given server time
value.
|
java.lang.String |
getServerName()
Gets the name of the server that this NSI server is receiving its data
from.
|
java.lang.String |
getStationChgdParams(java.lang.String stationName,
int timeVal)
Returns, for the given station, an update of dynamic parameters that have
changed their status level since the given time value.
|
java.lang.String |
getStationHelpString(java.lang.String stationName)
Gets the help string for the given station.
|
java.lang.String |
getStationInfo(java.lang.String stationName)
Returns a dataset for the station containing detailed information items
that are static in nature.
|
java.lang.String |
getStationSnapshot(java.lang.String stationName,
int timeVal)
Returns an historical snapshot for the given station of detailed
information items (that are of a dynamic nature) at the given time value.
|
java.lang.String |
getStationUpdate(java.lang.String stationName,
int timeVal)
Returns an update for the given station of detailed information items that
are of a dynamic nature and have changed since the given time value.
|
java.lang.String |
getStatusLevelTable()
Returns the table of status level objects.
|
java.lang.String |
getSubsetStationsList(java.lang.String propString,
int compCode,
java.lang.String valueString)
Returns a list of stations that match the given criteria.
|
java.lang.String |
getSubsetStationsUpdate(int timeVal,
java.lang.String propString,
int compCode,
java.lang.String valueString)
Returns an update on all stations that match the given criteria and that
have changed status or usage since the given time value.
|
java.lang.String |
getUsageLevelTable()
Returns the table of usage level objects.
|
java.lang.String |
getUsageResult(java.lang.String stationName)
Returns the final result of the last call to
setStationUsage
for the given station. |
int |
getUsageTimeout(java.lang.String stationName)
Returns the timeout value associated with the last call to
setStationUsage for the given station. |
java.lang.String |
setStationUsage(java.lang.String stationName,
java.lang.String uLevelStr)
Sets the usage level for a given station.
|
_ids, invoke_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, equals, hashCode, toStringpublic GUIServices_Corba()
public void checkInactivityTimeout()
SnwGUIServicesServercheckInactivityTimeout in interface SnwGUIServicesServerpublic void connect(Server sObj, java.lang.String clientID, long inactivityTimeout)
SnwGUIServicesServerconnect in interface SnwGUIServicesServersObj - A handle to a Server object.clientID - A string containing the client ID. It should be the
client's IP address.inactivityTimeout - number of seconds of client inactivity before a
timeout occurs (and the client is disconnected) or 0 if none.public void disconnect()
com.isti.trinetwatch.common.SnwGUIServicesdisconnect in interface com.isti.trinetwatch.common.SnwGUIServicesdisconnect in interface GUIServicespublic java.lang.String fixStr(java.lang.String str)
SnwGUIServicesServerfixStr in interface SnwGUIServicesServerstr - string.public java.lang.String getAgentInfo(java.lang.String agentName,
int timeVal)
com.isti.trinetwatch.common.SnwGUIServicesgetAgentInfo in interface com.isti.trinetwatch.common.SnwGUIServicesgetAgentInfo in interface GUIServicesagentName - the name of the given agent; may be the "short" or the
"long" name of the agent.timeVal - if zero then all property items are returned; if non-zero
then only dynamic property items are returned.public java.lang.String getAgentNames(boolean longNamesFlag)
com.isti.trinetwatch.common.SnwGUIServicesgetAgentNames in interface com.isti.trinetwatch.common.SnwGUIServicesgetAgentNames in interface GUIServiceslongNamesFlag - if true then the "long" versions of the agent names
are returned; otherwise the "short" versions are returned.public java.lang.String getAllStationsSnapshot(int timeVal)
com.isti.trinetwatch.common.SnwGUIServicesgetAllStationsSnapshot in interface com.isti.trinetwatch.common.SnwGUIServicesgetAllStationsSnapshot in interface GUIServicestimeVal - server epoch time value (seconds since 1/1/1970).public java.lang.String getAllStationsUpdate(int timeVal)
com.isti.trinetwatch.common.SnwGUIServicesgetAllStationsUpdate in interface com.isti.trinetwatch.common.SnwGUIServicesgetAllStationsUpdate in interface GUIServicestimeVal - a server epoch time value (seconds since 1/1/1970).public boolean getDisPendingFlag()
SnwGUIServicesServergetDisPendingFlag in interface SnwGUIServicesServerpublic java.lang.String getExtendedAllStationsUpdate(int timeVal)
com.isti.trinetwatch.common.SnwGUIServicesgetExtendedAllStationsUpdate in interface com.isti.trinetwatch.common.SnwGUIServicesgetExtendedAllStationsUpdate in interface GUIServicestimeVal - a server epoch time value (seconds since 1/1/1970).public java.lang.String getHelpString()
com.isti.trinetwatch.common.SnwGUIServicesgetHelpString in interface com.isti.trinetwatch.common.SnwGUIServicesgetHelpString in interface GUIServicespublic java.lang.String getIDString()
SnwGUIServicesServergetIDString in interface SnwGUIServicesServerpublic java.lang.String getNSIStartTime()
com.isti.trinetwatch.common.SnwGUIServicesgetNSIStartTime in interface com.isti.trinetwatch.common.SnwGUIServicesgetNSIStartTime in interface GUIServicespublic java.lang.String getNSIVersionString()
com.isti.trinetwatch.common.SnwGUIServicesgetNSIVersionString in interface com.isti.trinetwatch.common.SnwGUIServicesgetNSIVersionString in interface GUIServicespublic java.lang.String getParameterCompSet(java.lang.String stationName,
java.lang.String paramName)
com.isti.trinetwatch.common.SnwGUIServicesgetParameterCompSet in interface com.isti.trinetwatch.common.SnwGUIServicesgetParameterCompSet in interface GUIServicesstationName - the name of the desired station.paramName - the name of the specified parameter.public java.lang.String getParameterHelpString(java.lang.String parmName)
com.isti.trinetwatch.common.SnwGUIServicesgetParameterHelpString in interface com.isti.trinetwatch.common.SnwGUIServicesgetParameterHelpString in interface GUIServicesparmName - the name of the specified parameter.public java.lang.String getParameterHistory(java.lang.String stationName,
java.lang.String paramName,
int startSecs,
int endSecs)
com.isti.trinetwatch.common.SnwGUIServicesgetParameterHistory in interface com.isti.trinetwatch.common.SnwGUIServicesgetParameterHistory in interface GUIServicesstationName - the name of the desired station.paramName - the name of the specified parameter.startSecs - number of seconds before the present for the start time of
the range, or 0 for the beginning of the history.endSecs - number of seconds before the present for the end time of the
range, or 0 for the end of the history.public void getParameterInformation(java.lang.String stationName,
java.lang.String paramName,
org.omg.CORBA.LongHolder startSecs,
org.omg.CORBA.LongHolder endSecs,
org.omg.CORBA.IntHolder numPoints)
com.isti.trinetwatch.common.SnwGUIServicesgetParameterInformation in interface com.isti.trinetwatch.common.SnwGUIServicesgetParameterInformation in interface GUIServicesstationName - the name of the desired station.paramName - the name of the specified parameter.startSecs - the returned start time in seconds.endSecs - the returned end time in seconds.numPoints - the returned number of points.public java.lang.String getPropertyList()
com.isti.trinetwatch.common.SnwGUIServicesgetPropertyList in interface com.isti.trinetwatch.common.SnwGUIServicesgetPropertyList in interface GUIServicespublic java.lang.String getPropValuesList(java.lang.String propString)
com.isti.trinetwatch.common.SnwGUIServicesgetPropValuesList in interface com.isti.trinetwatch.common.SnwGUIServicesgetPropValuesList in interface GUIServicespropString - A string representing the selected property.public java.lang.String getSameStatusSubsets(int timeVal,
java.lang.String statusLevelStr)
com.isti.trinetwatch.common.SnwGUIServicesgetSameStatusSubsets in interface com.isti.trinetwatch.common.SnwGUIServicesgetSameStatusSubsets in interface GUIServicestimeVal - a server epoch time value (seconds since 1/1/1970).statusLevelStr - the name of the status level to use.public java.lang.String getServerName()
com.isti.trinetwatch.common.SnwGUIServicesgetServerName in interface com.isti.trinetwatch.common.SnwGUIServicesgetServerName in interface GUIServicespublic java.lang.String getStationChgdParams(java.lang.String stationName,
int timeVal)
com.isti.trinetwatch.common.SnwGUIServicesgetStationChgdParams in interface com.isti.trinetwatch.common.SnwGUIServicesgetStationChgdParams in interface GUIServicesstationName - the name of the desired station.timeVal - a server epoch time value (seconds since 1/1/1970).public java.lang.String getStationHelpString(java.lang.String stationName)
com.isti.trinetwatch.common.SnwGUIServicesgetStationHelpString in interface com.isti.trinetwatch.common.SnwGUIServicesgetStationHelpString in interface GUIServicesstationName - A string containing the short name of the station from
which you want a help string.public java.lang.String getStationInfo(java.lang.String stationName)
com.isti.trinetwatch.common.SnwGUIServicesgetStationInfo in interface com.isti.trinetwatch.common.SnwGUIServicesgetStationInfo in interface GUIServicesstationName - the name of the desired station.public java.lang.String getStationSnapshot(java.lang.String stationName,
int timeVal)
com.isti.trinetwatch.common.SnwGUIServicesgetStationSnapshot in interface com.isti.trinetwatch.common.SnwGUIServicesgetStationSnapshot in interface GUIServicesstationName - name of the desired station.timeVal - server epoch time value (seconds since 1/1/1970).public java.lang.String getStationUpdate(java.lang.String stationName,
int timeVal)
com.isti.trinetwatch.common.SnwGUIServicesgetStationUpdate in interface com.isti.trinetwatch.common.SnwGUIServicesgetStationUpdate in interface GUIServicesstationName - the name of the desired station.timeVal - a server epoch time value (seconds since 1/1/1970).public java.lang.String getStatusLevelTable()
com.isti.trinetwatch.common.SnwGUIServicesgetStatusLevelTable in interface com.isti.trinetwatch.common.SnwGUIServicesgetStatusLevelTable in interface GUIServicesgetUsageLevelTable except with a status level tag
name.SnwGUIServices.getUsageLevelTable()public java.lang.String getSubsetStationsList(java.lang.String propString,
int compCode,
java.lang.String valueString)
com.isti.trinetwatch.common.SnwGUIServicesgetSubsetStationsList in interface com.isti.trinetwatch.common.SnwGUIServicesgetSubsetStationsList in interface GUIServicespropString - a string representing the selected property.compCode - a comparison code, one of the following: -2 = less than, -1
= less than or equals, 0 = equals, 1 = greater than or equals, 2 =
greater than.valueString - a string representing the value entered or selected by
the user.public java.lang.String getSubsetStationsUpdate(int timeVal,
java.lang.String propString,
int compCode,
java.lang.String valueString)
com.isti.trinetwatch.common.SnwGUIServicesgetSubsetStationsUpdate in interface com.isti.trinetwatch.common.SnwGUIServicesgetSubsetStationsUpdate in interface GUIServicestimeVal - a server epoch time value (seconds since 1/1/1970).propString - a string representing the selected property.compCode - a comparison code, one of the following: -2 = less than, -1
= less than or equals, 0 = equals, 1 = greater than or equals, 2 =
greater than.valueString - a string representing the value entered or selected by
the user.public java.lang.String getUsageLevelTable()
com.isti.trinetwatch.common.SnwGUIServicesgetUsageLevelTable in interface com.isti.trinetwatch.common.SnwGUIServicesgetUsageLevelTable in interface GUIServicespublic java.lang.String getUsageResult(java.lang.String stationName)
com.isti.trinetwatch.common.SnwGUIServicessetStationUsage
for the given station.getUsageResult in interface com.isti.trinetwatch.common.SnwGUIServicesgetUsageResult in interface GUIServicesstationName - the name of the desired station.SnwGUIServices.setStationUsage(String, String)public int getUsageTimeout(java.lang.String stationName)
com.isti.trinetwatch.common.SnwGUIServicessetStationUsage for the given station.getUsageTimeout in interface com.isti.trinetwatch.common.SnwGUIServicesgetUsageTimeout in interface GUIServicesstationName - the name of the desired station.SnwGUIServices.setStationUsage(String, String)public java.lang.String setStationUsage(java.lang.String stationName,
java.lang.String uLevelStr)
com.isti.trinetwatch.common.SnwGUIServicessetStationUsage in interface com.isti.trinetwatch.common.SnwGUIServicessetStationUsage in interface GUIServicesstationName - the name of the desired station.uLevelStr - the name of the new usage level for the station.SnwGUIServices.getUsageResult(String)