|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.isti.trinetwatch.params.ParamHistoryTable
Class ParamHistoryTable defines the history table for station parameters.
| Field Summary | |
static java.lang.String |
KEY_VALUE_SEPARATOR
Key value separator. |
| Constructor Summary | |
ParamHistoryTable(ParamValues paramValues)
Constructs a history table. |
|
ParamHistoryTable(ParamValues paramValues,
boolean archiveOverrideFlag)
Constructs a history table. |
|
| Method Summary | |
void |
add(DynamicParamHolder paramHolder,
Station stationObj,
DynamicParameter dParameter,
long timeLastChanged,
long timeLastReceived,
long minTime)
Adds the item to the history. |
protected static java.lang.String |
addKey(java.lang.String key,
java.lang.String str)
Adds the specified string to the key. |
protected java.lang.String |
getFileName(java.lang.String key)
Gets the file name for the specified key. |
java.util.Vector |
getHistoryVector(long startTime,
long endTime)
Returns a new Vector containing 'ValueTimeBlock' objects with timestamps in the specified range. |
protected static java.lang.String |
getKey(Station stationObj,
DynamicParamHolder paramHolder,
DynamicParameter dParameter)
Gets the key for the specified station and dynamic parameter. |
protected java.lang.String |
getRootDirName(java.lang.String key)
Gets the root directory name for the specified key. |
boolean |
isHistoryEnabled()
Determines if the history is enabled. |
static void |
terminateArchiveWorkerThreads()
Terminates the archive-worker threads for all parameter-history tables. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String KEY_VALUE_SEPARATOR
| Constructor Detail |
public ParamHistoryTable(ParamValues paramValues,
boolean archiveOverrideFlag)
paramValues - the parameter values.archiveOverrideFlag - true to have archiving for this parameter
enabled regardless of 'paramValues.getArchiveNonVotingParamsFlag()'
value.public ParamHistoryTable(ParamValues paramValues)
paramValues - the parameter values.| Method Detail |
protected java.lang.String getRootDirName(java.lang.String key)
key - the key.
protected java.lang.String getFileName(java.lang.String key)
key - the key.
protected static java.lang.String addKey(java.lang.String key,
java.lang.String str)
key - the current value of the key.str - the string to add.
protected static java.lang.String getKey(Station stationObj,
DynamicParamHolder paramHolder,
DynamicParameter dParameter)
stationObj - the station object.paramHolder - the parameter holder.dParameter - the dynamic parameter.
public void add(DynamicParamHolder paramHolder,
Station stationObj,
DynamicParameter dParameter,
long timeLastChanged,
long timeLastReceived,
long minTime)
add in interface ParamHistoryparamHolder - the parameter holder.stationObj - the station object.dParameter - the dynamic parameter.timeLastChanged - the time last changed (seconds since 1/1/1970).timeLastReceived - the time last received (seconds since 1/1/1970).minTime - the minimum time (seconds since 1/1/1970).
public java.util.Vector getHistoryVector(long startTime,
long endTime)
getHistoryVector in interface ParamHistorystartTime - the start time for the range, or 0 for the
beginning of the history.endTime - the end time for the range, or 0 for the end of
the history.
public boolean isHistoryEnabled()
isHistoryEnabled in interface ParamHistorypublic static void terminateArchiveWorkerThreads()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||