public class AgentInfo extends StationTable implements java.io.Serializable
StationTable.PurgeLevelsCacheThread
LAT_LON_PREFIX_TEXT
Constructor and Description |
---|
AgentInfo(java.lang.String name)
Creates an agent information block.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addStation(Station stationObj)
Adds the given Station object to the table of stations fed by this
agent.
|
void |
buildLongName()
Builds and adds the "longName" property (if it does not already
exist) and sets it as the long version of the this agent's name.
|
boolean |
containsStation(Station stationObj)
Tests if the given station object exists in the table of stations
fed by this agent.
|
boolean |
containsStationName(java.lang.String name)
Tests if a station with the specified short name exists in the
table of stations fed by this agent.
|
java.lang.String |
formatTimeVal(long timeVal)
Formats a time value into a date/time string.
|
long |
getFirstIDMsgTime()
Returns the time that the first agent-ID message was
received from this agent.
|
java.lang.String |
getLongName()
Returns the long version of this agent's name.
|
java.lang.String |
getName()
Returns this agent's name.
|
java.lang.String |
getPropsAsQuotedStrings(boolean dynamicFlag)
Returns a string containing property item name/value pairs.
|
void |
restoreSavedStaticProps()
Adds the property items saved via the 'saveClearStaticProps()'
method to the current table of static property items.
|
void |
saveClearStaticProps()
Moves all current static property items to a save table and clears
the table of static property items.
|
void |
setDPMsgTime(long timeVal)
Updates the time that the last dynamic parameter message was
received from this agent.
|
void |
setIDMsgTime(long timeVal)
Updates the time that the last agent-ID message was
received from this agent.
|
void |
setLongName(java.lang.String str)
Sets the long version of this agent's name to the given value.
|
void |
setProperty(java.lang.String name,
java.lang.String value)
Enters a name/value property pair item into this agent
information block.
|
void |
setProperty(java.lang.String name,
java.lang.String value,
boolean dynamicFlag)
Enters a name/value property pair item into this agent
information block.
|
void |
setSPMsgTime(long timeVal)
Updates the time that the last static parameter message was
received from this agent.
|
java.lang.String |
toString()
Returns this agent's name.
|
add, addAll, containsKey, containsValue, elements, enterTableData, enterTableData, get, getDefaultSameStatusPercent, getDisplayString, getDisplayString, getKeysVector, getSameStatusLevel, getSameStatusPerecentValidator, getSameStatusTime, getSnapshotStrFromCache, getSnapshotString, getStationForDParam, getThreadSyncObj, getUpdateString, getUpdateString, getUpdateString, getValuesVector, keys, loadDynParamsFromArchive, preloadAndEnableLevelsCaches, procSameStatusLevel, remove, removeAll, setSameStatusPercent, startLevelsCachesPurgeThread, stationCount, stopLevelsCachesPurgeThread
public AgentInfo(java.lang.String name)
name
- name of the agent.public java.lang.String getName()
public java.lang.String getLongName()
public void setProperty(java.lang.String name, java.lang.String value, boolean dynamicFlag)
name
- name of item.value
- value for item.dynamicFlag
- if true then the item is placed in the
'dynamic' properties table.public void setProperty(java.lang.String name, java.lang.String value)
name
- name of item.value
- value for item.public void saveClearStaticProps()
public void restoreSavedStaticProps()
public java.lang.String getPropsAsQuotedStrings(boolean dynamicFlag)
public boolean addStation(Station stationObj)
public boolean containsStationName(java.lang.String name)
public boolean containsStation(Station stationObj)
public void setLongName(java.lang.String str)
str
- long name to use.public void buildLongName()
public void setSPMsgTime(long timeVal)
timeVal
- a time value in milliseconds since 1/1/1970.public void setDPMsgTime(long timeVal)
timeVal
- a time value in milliseconds since 1/1/1970.public void setIDMsgTime(long timeVal)
timeVal
- a time value in milliseconds since 1/1/1970.public long getFirstIDMsgTime()
public java.lang.String toString()
toString
in class StationTable
public final java.lang.String formatTimeVal(long timeVal)
timeVal
- the time value to be formatted into a time string.