- All Known Implementing Classes:
ArrayParameterCache
public interface ParameterCache
-
Method Summary
Modifier and TypeMethodDescriptionbooleancaching(ParameterWithId pid) voidclear()Remove all the parameters from the cachegetAllValues(org.yamcs.xtce.Parameter p) Returns all values from the cache for the parameter or null if there is no value cached The parameter are returned in descending order (newest parameter is returned first)getAllValues(org.yamcs.xtce.Parameter p, long start, long stop) Same as above but return all values that have the generation time in the (start, stop] intervalgetLastValue(org.yamcs.xtce.Parameter p) Returns last cached value for parameter or null if there is no value in the cacheReturns cached value for parameter or an empty list if there is no value in the cachevoidupdate(Collection<ParameterValue> pvs) update the parameters in the cache
-
Method Details
-
update
update the parameters in the cache- Parameters:
pvs- - parameter value list
-
getValues
Returns cached value for parameter or an empty list if there is no value in the cache- Parameters:
plist-- Returns:
-
getLastValue
Returns last cached value for parameter or null if there is no value in the cache- Parameters:
p- - parameter for which the last value is returned- Returns:
-
getAllValues
Returns all values from the cache for the parameter or null if there is no value cached The parameter are returned in descending order (newest parameter is returned first)- Parameters:
p- - parameter for which all values are returned- Returns:
- all values from the cache for the parameter or null if there is no value cached
-
getAllValues
Same as above but return all values that have the generation time in the (start, stop] interval- Parameters:
p-start-stop-- Returns:
-
clear
void clear()Remove all the parameters from the cache -
caching
-