Class 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 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 interface DataRetrieval
        Parameters:
        pvNames - The name of PVs
        startTime - Timestamp
        endTime - Timestamp
        retrievalEventProcessor - 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 interface DataRetrieval
        Parameters:
        pvNames - The name of PVs
        startTime - Timestamp
        endTime - Timestamp
        retrievalEventProcessor - RetrievalEventProcessor
        useReducedDataSet - 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 interface DataRetrieval
        Parameters:
        pvNames - The name of PVs
        startTime - Timestamp
        endTime - Timestamp
        retrievalEventProcessor - RetrievalEventProcessor
        useReducedDataSet - 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