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, toString
public GUIServices_Corba()
public void checkInactivityTimeout()
SnwGUIServicesServer
checkInactivityTimeout
in interface SnwGUIServicesServer
public void connect(Server sObj, java.lang.String clientID, long inactivityTimeout)
SnwGUIServicesServer
connect
in interface SnwGUIServicesServer
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) or 0 if none.public void disconnect()
com.isti.trinetwatch.common.SnwGUIServices
disconnect
in interface com.isti.trinetwatch.common.SnwGUIServices
disconnect
in interface GUIServices
public java.lang.String fixStr(java.lang.String str)
SnwGUIServicesServer
fixStr
in interface SnwGUIServicesServer
str
- string.public java.lang.String getAgentInfo(java.lang.String agentName, int timeVal)
com.isti.trinetwatch.common.SnwGUIServices
getAgentInfo
in interface com.isti.trinetwatch.common.SnwGUIServices
getAgentInfo
in interface GUIServices
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 getAgentNames(boolean longNamesFlag)
com.isti.trinetwatch.common.SnwGUIServices
getAgentNames
in interface com.isti.trinetwatch.common.SnwGUIServices
getAgentNames
in interface GUIServices
longNamesFlag
- 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.SnwGUIServices
getAllStationsSnapshot
in interface com.isti.trinetwatch.common.SnwGUIServices
getAllStationsSnapshot
in interface GUIServices
timeVal
- server epoch time value (seconds since 1/1/1970).public java.lang.String getAllStationsUpdate(int timeVal)
com.isti.trinetwatch.common.SnwGUIServices
getAllStationsUpdate
in interface com.isti.trinetwatch.common.SnwGUIServices
getAllStationsUpdate
in interface GUIServices
timeVal
- a server epoch time value (seconds since 1/1/1970).public boolean getDisPendingFlag()
SnwGUIServicesServer
getDisPendingFlag
in interface SnwGUIServicesServer
public java.lang.String getExtendedAllStationsUpdate(int timeVal)
com.isti.trinetwatch.common.SnwGUIServices
getExtendedAllStationsUpdate
in interface com.isti.trinetwatch.common.SnwGUIServices
getExtendedAllStationsUpdate
in interface GUIServices
timeVal
- a server epoch time value (seconds since 1/1/1970).public java.lang.String getHelpString()
com.isti.trinetwatch.common.SnwGUIServices
getHelpString
in interface com.isti.trinetwatch.common.SnwGUIServices
getHelpString
in interface GUIServices
public java.lang.String getIDString()
SnwGUIServicesServer
getIDString
in interface SnwGUIServicesServer
public java.lang.String getNSIStartTime()
com.isti.trinetwatch.common.SnwGUIServices
getNSIStartTime
in interface com.isti.trinetwatch.common.SnwGUIServices
getNSIStartTime
in interface GUIServices
public java.lang.String getNSIVersionString()
com.isti.trinetwatch.common.SnwGUIServices
getNSIVersionString
in interface com.isti.trinetwatch.common.SnwGUIServices
getNSIVersionString
in interface GUIServices
public java.lang.String getParameterCompSet(java.lang.String stationName, java.lang.String paramName)
com.isti.trinetwatch.common.SnwGUIServices
getParameterCompSet
in interface com.isti.trinetwatch.common.SnwGUIServices
getParameterCompSet
in interface GUIServices
stationName
- 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.SnwGUIServices
getParameterHelpString
in interface com.isti.trinetwatch.common.SnwGUIServices
getParameterHelpString
in interface GUIServices
parmName
- 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.SnwGUIServices
getParameterHistory
in interface com.isti.trinetwatch.common.SnwGUIServices
getParameterHistory
in interface GUIServices
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 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.SnwGUIServices
getParameterInformation
in interface com.isti.trinetwatch.common.SnwGUIServices
getParameterInformation
in interface GUIServices
stationName
- 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.SnwGUIServices
getPropertyList
in interface com.isti.trinetwatch.common.SnwGUIServices
getPropertyList
in interface GUIServices
public java.lang.String getPropValuesList(java.lang.String propString)
com.isti.trinetwatch.common.SnwGUIServices
getPropValuesList
in interface com.isti.trinetwatch.common.SnwGUIServices
getPropValuesList
in interface GUIServices
propString
- A string representing the selected property.public java.lang.String getSameStatusSubsets(int timeVal, java.lang.String statusLevelStr)
com.isti.trinetwatch.common.SnwGUIServices
getSameStatusSubsets
in interface com.isti.trinetwatch.common.SnwGUIServices
getSameStatusSubsets
in interface GUIServices
timeVal
- 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.SnwGUIServices
getServerName
in interface com.isti.trinetwatch.common.SnwGUIServices
getServerName
in interface GUIServices
public java.lang.String getStationChgdParams(java.lang.String stationName, int timeVal)
com.isti.trinetwatch.common.SnwGUIServices
getStationChgdParams
in interface com.isti.trinetwatch.common.SnwGUIServices
getStationChgdParams
in interface GUIServices
stationName
- 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.SnwGUIServices
getStationHelpString
in interface com.isti.trinetwatch.common.SnwGUIServices
getStationHelpString
in interface GUIServices
stationName
- 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.SnwGUIServices
getStationInfo
in interface com.isti.trinetwatch.common.SnwGUIServices
getStationInfo
in interface GUIServices
stationName
- the name of the desired station.public java.lang.String getStationSnapshot(java.lang.String stationName, int timeVal)
com.isti.trinetwatch.common.SnwGUIServices
getStationSnapshot
in interface com.isti.trinetwatch.common.SnwGUIServices
getStationSnapshot
in interface GUIServices
stationName
- 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.SnwGUIServices
getStationUpdate
in interface com.isti.trinetwatch.common.SnwGUIServices
getStationUpdate
in interface GUIServices
stationName
- 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.SnwGUIServices
getStatusLevelTable
in interface com.isti.trinetwatch.common.SnwGUIServices
getStatusLevelTable
in interface GUIServices
getUsageLevelTable
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.SnwGUIServices
getSubsetStationsList
in interface com.isti.trinetwatch.common.SnwGUIServices
getSubsetStationsList
in interface GUIServices
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)
com.isti.trinetwatch.common.SnwGUIServices
getSubsetStationsUpdate
in interface com.isti.trinetwatch.common.SnwGUIServices
getSubsetStationsUpdate
in interface GUIServices
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 getUsageLevelTable()
com.isti.trinetwatch.common.SnwGUIServices
getUsageLevelTable
in interface com.isti.trinetwatch.common.SnwGUIServices
getUsageLevelTable
in interface GUIServices
public java.lang.String getUsageResult(java.lang.String stationName)
com.isti.trinetwatch.common.SnwGUIServices
setStationUsage
for the given station.getUsageResult
in interface com.isti.trinetwatch.common.SnwGUIServices
getUsageResult
in interface GUIServices
stationName
- the name of the desired station.SnwGUIServices.setStationUsage(String, String)
public int getUsageTimeout(java.lang.String stationName)
com.isti.trinetwatch.common.SnwGUIServices
setStationUsage
for the given station.getUsageTimeout
in interface com.isti.trinetwatch.common.SnwGUIServices
getUsageTimeout
in interface GUIServices
stationName
- 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.SnwGUIServices
setStationUsage
in interface com.isti.trinetwatch.common.SnwGUIServices
setStationUsage
in interface GUIServices
stationName
- the name of the desired station.uLevelStr
- the name of the new usage level for the station.SnwGUIServices.getUsageResult(String)