com.isti.trinetwatch.server
Class SubsetPropInfo.AgentStationsUpdater

java.lang.Object
  extended by com.isti.trinetwatch.server.SubsetPropInfo.AgentStationsUpdater
All Implemented Interfaces:
SubsetPropInfo.StationsUpdatable
Enclosing class:
SubsetPropInfo

public static class SubsetPropInfo.AgentStationsUpdater
extends java.lang.Object
implements SubsetPropInfo.StationsUpdatable

Class AgentStationsUpdater implements a method used to gather a list of stations that match a given agent-name criteria and that have changed status or usage since a given time value.


Constructor Summary
SubsetPropInfo.AgentStationsUpdater()
           
 
Method Summary
 java.lang.String getStationsUpdateString(SubsetPropInfo sPropObj, long timeVal, int compCode, java.lang.String agentName)
          Returns an update string of entries for all stations that match the given criteria and that have changed status or usage since the given time value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubsetPropInfo.AgentStationsUpdater

public SubsetPropInfo.AgentStationsUpdater()
Method Detail

getStationsUpdateString

public java.lang.String getStationsUpdateString(SubsetPropInfo sPropObj,
                                                long timeVal,
                                                int compCode,
                                                java.lang.String agentName)
Returns an update string of entries for all stations that match the given criteria and that have changed status or usage since the given time value.

Specified by:
getStationsUpdateString in interface SubsetPropInfo.StationsUpdatable
Parameters:
sPropObj - the subset-of-stations property information block to use.
timeVal - a server epoch time value (seconds since 1/1/1970).
compCode - the comparison code associated with the group name (not currently used).
agentName - the name of the agent to use in determining status, or null for no agent.
Returns:
An ASCII string formatted as follows: ;NNNN:SSSSS,UUUUU... where NNNN is a station name, SSSSS is a status level tag name, and UUUUU is a usage level tag name. Any number of station/status/usage groups may be passed.