public interface PVCache
DataSource
interface and stores them into storage via
DataStorage
interface. Notifies the registered
PVCacheListener
when new samples have been retrieved. Manages the
lists of requested/completed intervals.Modifier and Type | Method and Description |
---|---|
void |
addListener(PVCacheListener listener)
Add a
PVCacheListener to be notified when new samples are
available. |
IntervalsList |
getCompletedIntervalsList()
Get the completed intervals list.
|
PVCacheStatistics |
getStatistics() |
boolean |
isStatisticsEnabled() |
void |
removeListener(PVCacheListener listener)
Remove a
PVCacheListener . |
DataRequestThread |
retrieveDataAsync(org.epics.util.time.TimeInterval interval)
Asynchronously retrieves samples from sources for the requested
TimeInterval and asynchronously requests DataStorage for
immediately available samples. |
SortedSet<Data> |
retrieveDataSync(org.epics.util.time.TimeInterval interval)
Synchronously requests
DataStorage for immediately available
samples. |
void |
setStatisticsEnabled(boolean enabled) |
void |
startLiveDataProcessing()
Start processing live data samples.
|
void |
stopLiveDataProcessing()
Stop processing live data samples.
|
void startLiveDataProcessing()
void stopLiveDataProcessing()
void addListener(PVCacheListener listener)
PVCacheListener
to be notified when new samples are
available.listener
- to be addedvoid removeListener(PVCacheListener listener)
PVCacheListener
.listener
- to be removedDataRequestThread retrieveDataAsync(org.epics.util.time.TimeInterval interval)
TimeInterval
and asynchronously requests DataStorage
for
immediately available samples.interval
- TimeInterval
to be retrieved.SortedSet<Data> retrieveDataSync(org.epics.util.time.TimeInterval interval)
DataStorage
for immediately available
samples.interval
- TimeInterval
to be retrieved.IntervalsList getCompletedIntervalsList()
TimeInterval
is completed
when all DataSource
have finished responding.IntervalsList
the list of completed intervals.void setStatisticsEnabled(boolean enabled)
boolean isStatisticsEnabled()
PVCacheStatistics getStatistics()
Copyright © 2010–2015. All rights reserved.