Interface Writer

All Known Subinterfaces:
ETLDest, StoragePlugin
All Known Implementing Classes:
BlackholeStoragePlugin, ChannelArchiverReadOnlyPlugin, MergeDedupStoragePlugin, PBOverHTTPStoragePlugin, PlainStoragePlugin

public interface Writer
The main data consumption interface, this represents objects which take an event stream and write it to a (potentially permanent) store.
Author:
mshankar
  • Method Details

    • appendData

      int appendData(BasicContext context, String pvName, EventStream stream) throws IOException
      Throws:
      IOException
    • getLastKnownEvent

      Event getLastKnownEvent(BasicContext context, String pvName) throws IOException
      Gets the last known event in this destination. Future events will be appended to this destination only if their timestamp is more recent than the timestamp of this event. If there is no last known event, then a null is returned.
      Parameters:
      context -  
      pvName - The PV name
      Returns:
      Event The last known event of pvName
      Throws:
      IOException -