]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.history/src/org/simantics/history/HistorySamplerItem2.java
Rest API for Historian data
[simantics/platform.git] / bundles / org.simantics.history / src / org / simantics / history / HistorySamplerItem2.java
index be6940333a34486af59d3d1c16379daa23043254..d5c3942a6ba35caa4c796f54526763b18ea7f20b 100644 (file)
@@ -41,6 +41,11 @@ public class HistorySamplerItem2 implements Comparable<HistorySamplerItem2> {
                this.items = items;
                this.chartDataId = identityHashCode;
        }
+       
+       public void flush() throws HistoryException {
+               if (collector != null)
+                       collector.flush();
+       }
 
        public void open() throws HistoryException {
                accessor = history.openStream(items[0].id, "r");