Interface DataSink<T extends PersistentData>
- Type Parameters:
T
- a subclass ofPersistentData
- All Superinterfaces:
DataConsumer<T>
- All Known Subinterfaces:
DataStore<T>
- All Known Implementing Classes:
AbstractDatasourceSink
,AbstractSink
,HistoricalRecordSink
,RemoteHistorianSink
,TagHistoryDataSinkBridge
This interface represents a data sink that can consume and process data of a particular type.
-
Method Summary
Modifier and TypeMethodDescriptiongetInfo()
Returns descriptive information about this data sink.Returns the flavor of data that the data sink supports.Gets a writer object for writing to the data sink.boolean
Determines whether the data sink is currently accepting data.default void
shutdown()
Shuts down the data sink.default void
startup()
Starts up the data sink.Methods inherited from interface com.inductiveautomation.ignition.gateway.storeforward.DataConsumer
storeData, storeData, validateFlavor
-
Method Details
-
startup
default void startup()Starts up the data sink. -
shutdown
default void shutdown()Shuts down the data sink. -
getInfo
DataSinkInformation getInfo()Returns descriptive information about this data sink.- Returns:
- the descriptive information pertaining to this data sink
-
isAccepting
boolean isAccepting()Determines whether the data sink is currently accepting data.- Returns:
- true if the data sink is accepting data, false otherwise
-
getSupportedFlavor
PersistentFlavor<T> getSupportedFlavor()Returns the flavor of data that the data sink supports.- Returns:
- a
PersistentFlavor
object representing the supported flavor
-
getWriter
BatchWriter<T> getWriter()Gets a writer object for writing to the data sink. This can be used for batching data together when writing.- Returns:
- a
BatchWriter
object for writing to the data sink
-