|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.omg.CORBA.portable.ObjectImpl org.omg.CORBA.DynamicImplementation com.isti.trinetwatch.server.gui_services._GUIServicesImplBase com.isti.trinetwatch.server.GUIServices_impl
Class GUIServices implements the GUI services. All the methods that can be called through CORBA could potentially return an empty string. This universally occurs when one of these methods is called after the disconnect() method is called and before the server has time to realize it should no longer be accepting connections. Some of the methods may return empty strings for other reasons as well.
Field Summary |
Fields inherited from class com.isti.trinetwatch.server.gui_services._GUIServicesImplBase |
|
Constructor Summary | |
GUIServices_impl(Server sObj,
java.lang.String clientID,
long inactivityTimeout)
Create a new GUIServices_impl object. |
Method Summary | |
void |
checkInactivityTimeout()
Non-CORBA, Checks to see if enough time has passed since the last client activity to declare an inactivity timeout, and disconnect the client. |
void |
disconnect()
Disconnects the calling GUI-client from the NSI server. |
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 |
getAllStationsUpdate(int timeVal)
Returns an update on all stations that have changed status or usage since the given time value. |
boolean |
getConnectedFlag()
Non-CORBA, Returns the value of connected-to-ORB flag. |
boolean |
getDisPendingFlag()
Non-CORBA, 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()
Non-CORBA, 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 paramName)
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. |
void |
setConnectedFlag(boolean flagVal)
Non-CORBA, Set the connected-to-ORB flag. |
java.lang.String |
setStationUsage(java.lang.String stationName,
java.lang.String uLevelStr)
Sets the usage level for a given station. |
Methods inherited from class com.isti.trinetwatch.server.gui_services._GUIServicesImplBase |
_ids, invoke |
Methods inherited from class org.omg.CORBA.portable.ObjectImpl |
_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, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.omg.CORBA.Object |
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override |
Constructor Detail |
public GUIServices_impl(Server sObj, java.lang.String clientID, long inactivityTimeout)
sObj
- 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).Method Detail |
public java.lang.String getUsageLevelTable()
public java.lang.String getStatusLevelTable()
public java.lang.String getAllStationsUpdate(int timeVal)
timeVal
- a server epoch time value (seconds since 1/1/1970).
public java.lang.String getExtendedAllStationsUpdate(int timeVal)
timeVal
- a server epoch time value (seconds since 1/1/1970).
public java.lang.String getStationInfo(java.lang.String stationName)
stationName
- the name of the desired station.
public java.lang.String getStationUpdate(java.lang.String stationName, int timeVal)
stationName
- the name of the desired station.timeVal
- a server epoch time value (seconds since 1/1/1970).
public java.lang.String getStationChgdParams(java.lang.String stationName, int timeVal)
stationName
- the name of the desired station.timeVal
- a server epoch time value (seconds since 1/1/1970).
public java.lang.String getPropertyList()
public java.lang.String getPropValuesList(java.lang.String propString)
propString
- A string representing the selected property.
public java.lang.String getSubsetStationsList(java.lang.String propString, int compCode, java.lang.String valueString)
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 getSubsetStationsUpdate(int timeVal, java.lang.String propString, int compCode, java.lang.String valueString)
timeVal
- 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 setStationUsage(java.lang.String stationName, java.lang.String uLevelStr)
stationName
- the name of the desired station.uLevelStr
- the name of the new usage level for the station.
public java.lang.String getUsageResult(java.lang.String stationName)
stationName
- the name of the desired station.
public int getUsageTimeout(java.lang.String stationName)
stationName
- the name of the desired station.
public java.lang.String getNSIVersionString()
public java.lang.String getNSIStartTime()
public java.lang.String getHelpString()
public java.lang.String getStationHelpString(java.lang.String stationName)
stationName
- A string containing the short name of the station
from which you want a help string.
public java.lang.String getParameterHelpString(java.lang.String paramName)
paramName
- the name of the specified parameter.
public java.lang.String getServerName()
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)
stationName
- the name of the desired station.paramName
- the name of the specified parameter.startSecs
- starting seconds of the history.endSecs
- ending seconds of the history.numPoints
- number of points in the history.
If no match was found then numPoints will be 0.public java.lang.String getParameterHistory(java.lang.String stationName, java.lang.String paramName, int startSecs, int endSecs)
stationName
- 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 java.lang.String getParameterCompSet(java.lang.String stationName, java.lang.String paramName)
stationName
- the name of the desired station.paramName
- the name of the specified parameter.
public java.lang.String getAgentNames(boolean longNamesFlag)
longNamesFlag
- if true then the "long" versions of the
agent names are returned; otherwise the "short" versions are
returned.
public java.lang.String getAgentInfo(java.lang.String agentName, int timeVal)
agentName
- 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 getSameStatusSubsets(int timeVal, java.lang.String statusLevelStr)
timeVal
- a server epoch time value (seconds since 1/1/1970).statusLevelStr
- the name of the status level to use.
public java.lang.String getStationSnapshot(java.lang.String stationName, int timeVal)
stationName
- name of the desired station.timeVal
- server epoch time value (seconds since 1/1/1970).
public void disconnect()
public void setConnectedFlag(boolean flagVal)
flagVal
- true = connected, false = not connectedpublic boolean getConnectedFlag()
public boolean getDisPendingFlag()
public java.lang.String getIDString()
public void checkInactivityTimeout()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |