Class JPlotResponse
java.lang.Object
org.epics.archiverappliance.retrieval.mimeresponses.JPlotResponse
- All Implemented Interfaces:
EventConsumer,MimeResponse
- Author:
- mshankar Sends the event data as a JSON response tailored to JPlot, which is used in the test page.. The response is a array of array of data series: [ series1, series2, ... ] A series can either be raw data or an object with properties. The raw data format is an array of points: [ [x1, y1], [x2, y2], ... ] E.g. [ [1, 3], [2, 14.01], [3.5, 3.14] ]
-
Field Summary
Fields inherited from interface org.epics.archiverappliance.retrieval.mimeresponses.MimeResponse
CONTENT_TYPE, PROXIED_HEADERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidvoidprocessingPV(BasicContext retrievalContext, String pv, Instant start, Instant end, EventStreamDesc streamDesc) Called when we swich to a new PV.voidvoidswicthingToStream(EventStream strm)
-
Constructor Details
-
JPlotResponse
public JPlotResponse()
-
-
Method Details
-
consumeEvent
- Specified by:
consumeEventin interfaceEventConsumer- Throws:
Exception
-
setOutputStream
- Specified by:
setOutputStreamin interfaceMimeResponse
-
close
public void close()- Specified by:
closein interfaceMimeResponse
-
processingPV
public void processingPV(BasicContext retrievalContext, String pv, Instant start, Instant end, EventStreamDesc streamDesc) Description copied from interface:MimeResponseCalled when we swich to a new PV.- Specified by:
processingPVin interfaceMimeResponse- Parameters:
pv- The name of PVstart- Instantend- InstantstreamDesc- Could be null if we have no data in first store we hit.
-
swicthingToStream
- Specified by:
swicthingToStreamin interfaceMimeResponse
-