public interface ParamHistory
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ARCHIVE_NAME_PREFIX
Archive name prefix.
|
static java.lang.String |
ARCHIVE_NAME_SUFFIX
Archive name suffix.
|
static java.lang.String |
KEY_VALUE_SEPARATOR
Key value separator.
|
Modifier and Type | Method and Description |
---|---|
void |
add(DynamicParamHolder paramHolder,
java.lang.Object data,
long timeLastReceived)
Adds the item to the history.
|
void |
closeHistory(DynamicParamHolder paramHolder)
Closes this history, releasing resources allocated for it.
|
java.util.Vector |
getHistoryVector(DynamicParamHolder paramHolder,
long startTime,
long endTime)
Returns a new Vector containing 'ValueTimeBlock' objects with timestamps in
the specified range.
|
ValueTimeBlock |
getNewestHistoryItem(DynamicParamHolder paramHolder)
Returns the newest item in the history.
|
ValueTimeBlock |
getNewestHistoryItem(DynamicParamHolder paramHolder,
long startTime,
long endTime)
Returns the newest item in the history with a timestamp in the specified
range.
|
boolean |
isHistoryEnabled(DynamicParamHolder paramHolder)
Determines if the history is enabled.
|
void |
setupArchiveManager(DynamicParamHolder paramHolder,
long timeLastReceived)
Sets up the archive manager for this history.
|
static final java.lang.String KEY_VALUE_SEPARATOR
static final java.lang.String ARCHIVE_NAME_PREFIX
static final java.lang.String ARCHIVE_NAME_SUFFIX
void add(DynamicParamHolder paramHolder, java.lang.Object data, long timeLastReceived)
paramHolder
- the parameter holder.data
- the data.timeLastReceived
- the time last received (seconds since 1/1/1970).void setupArchiveManager(DynamicParamHolder paramHolder, long timeLastReceived)
paramHolder
- the parameter holder.timeLastReceived
- the time last received (seconds since 1/1/1970).java.util.Vector getHistoryVector(DynamicParamHolder paramHolder, long startTime, long endTime)
paramHolder
- the parameter holder.startTime
- 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.ValueTimeBlock getNewestHistoryItem(DynamicParamHolder paramHolder)
paramHolder
- the parameter holder.ValueTimeBlock getNewestHistoryItem(DynamicParamHolder paramHolder, long startTime, long endTime)
paramHolder
- the parameter holder.startTime
- 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.boolean isHistoryEnabled(DynamicParamHolder paramHolder)
paramHolder
- the parameter holder.void closeHistory(DynamicParamHolder paramHolder)
paramHolder
- the parameter holder.