Class UnitOfRetrieval
java.lang.Object
org.epics.archiverappliance.retrieval.UnitOfRetrieval
- All Implemented Interfaces:
Callable<RetrievalResult>
- Author:
- mshankar This class encapsulates a storage plugin, a PVName, a start time and an end time (all the items needed to make a getDataForPV call). The retrieval servlet creates multiple UnitOfRetrieval's, one or more for each storage plugin. Some variation of a ExecutorService is expected to be used to launch the UnitOfRetrievals in parallel and then push the event streams into the consumer.
-
Constructor Summary
ConstructorsConstructorDescriptionUnitOfRetrieval(String desc, Reader reader, String pvName, String pvNameFromRequest, Instant start, Instant end, PostProcessor postProcessor, BasicContext context) -
Method Summary
Modifier and TypeMethodDescriptioncall()getEnd()getStart()voidwrapWithFailoverStreams(List<Callable<EventStream>> failoverStrms)
-
Constructor Details
-
UnitOfRetrieval
public UnitOfRetrieval(String desc, Reader reader, String pvName, String pvNameFromRequest, Instant start, Instant end, PostProcessor postProcessor, BasicContext context)
-
-
Method Details
-
call
- Specified by:
callin interfaceCallable<RetrievalResult>- Throws:
IOException
-
getDescription
-
getPvName
-
getStart
-
getEnd
-
getPvNameFromRequest
-
wrapWithFailoverStreams
-