Class RawDataRetrievalAsEventStream
- java.lang.Object
-
- org.epics.archiverappliance.retrieval.client.RawDataRetrievalAsEventStream
-
- All Implemented Interfaces:
DataRetrieval
public class RawDataRetrievalAsEventStream extends Object implements DataRetrieval
Client side class for retrieving data from the appliance archiver using the PB over HTTP protocol. This is mostly used by the unit tests where the ability to treat retrieval results as event streams is veru useful. Java clients should use the pbrawclient which is a lightweight implementation of the same.- Author:
- mshankar
-
-
Constructor Summary
Constructors Constructor Description RawDataRetrievalAsEventStream(String accessURL)
-
Method Summary
Modifier and Type Method Description EventStream
getDataForPVS(String[] pvNames, Timestamp startTime, Timestamp endTime, RetrievalEventProcessor retrievalEventProcessor)
Get data for multiple PVs from starttime to endtime.EventStream
getDataForPVS(String[] pvNames, Timestamp startTime, Timestamp endTime, RetrievalEventProcessor retrievalEventProcessor, boolean useReducedDataSet)
Get data for multiple PVs from starttime to endtime.EventStream
getDataForPVS(String[] pvNames, Timestamp startTime, Timestamp endTime, RetrievalEventProcessor retrievalEventProcessor, boolean useReducedDataSet, HashMap<String,String> otherParams)
Get data for multiple PVs from starttime to endtime.
-
-
-
Constructor Detail
-
RawDataRetrievalAsEventStream
public RawDataRetrievalAsEventStream(String accessURL)
-
-
Method Detail
-
getDataForPVS
public EventStream getDataForPVS(String[] pvNames, Timestamp startTime, Timestamp endTime, RetrievalEventProcessor retrievalEventProcessor)
Description copied from interface:DataRetrieval
Get data for multiple PVs from starttime to endtime. Pass out-of-band events into the supplied retrievalEventProcessor We default to getting raw data- Specified by:
getDataForPVS
in interfaceDataRetrieval
- Parameters:
pvNames
- The name of PVsstartTime
- TimestampendTime
- TimestampretrievalEventProcessor
- RetrievalEventProcessor- Returns:
- EventStream Data for PVs
-
getDataForPVS
public EventStream getDataForPVS(String[] pvNames, Timestamp startTime, Timestamp endTime, RetrievalEventProcessor retrievalEventProcessor, boolean useReducedDataSet)
Description copied from interface:DataRetrieval
Get data for multiple PVs from starttime to endtime. Pass out-of-band events into the supplied retrievalEventProcessor- Specified by:
getDataForPVS
in interfaceDataRetrieval
- Parameters:
pvNames
- The name of PVsstartTime
- TimestampendTime
- TimestampretrievalEventProcessor
- RetrievalEventProcessoruseReducedDataSet
- Is it ok to use a reduced data set?- Returns:
- EventStream Data for PVs
-
getDataForPVS
public EventStream getDataForPVS(String[] pvNames, Timestamp startTime, Timestamp endTime, RetrievalEventProcessor retrievalEventProcessor, boolean useReducedDataSet, HashMap<String,String> otherParams)
Description copied from interface:DataRetrieval
Get data for multiple PVs from starttime to endtime. Pass out-of-band events into the supplied retrievalEventProcessor- Specified by:
getDataForPVS
in interfaceDataRetrieval
- Parameters:
pvNames
- The name of PVsstartTime
- TimestampendTime
- TimestampretrievalEventProcessor
- RetrievalEventProcessoruseReducedDataSet
- Is it ok to use a reduced data set?otherParams
- Any other name/value pairs that are passed onto the server.- Returns:
- EventStream Data for PVs
-
-