Class AggregateSink
java.lang.Object
com.inductiveautomation.ignition.gateway.history.sf.sinks.AggregateSink
- All Implemented Interfaces:
DataSink
,HistoryStorer
The aggregate sink pulls together sinks that support different types of data. For example, the TagHistory sink and
the RecordHistory sink.
-
Field Summary
Fields inherited from interface com.inductiveautomation.ignition.gateway.history.DataSink
LOG_NAME_TEMPLATE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
acceptsData
(HistoryFlavor dataType) Returns whether or not the storer can accept the specified type of data.void
Adds a sink to the list.getInfo()
Gets the information for this sink, as well as any below it.Returns the name of the store and forward pipeline that this sink belongs to.Returns the quarantine interface for the sink.getSinks()
boolean
Only true if ALL data sinks are accepting.boolean
isLicensedFor
(HistoryFlavor dataType) Assuming the storer accepts the flavor, is it currently licensed for it? If not, the data will not be stored.void
removeSink
(DataSink sink) void
shutdown()
void
startup()
void
storeData
(HistoricalData data) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.inductiveautomation.ignition.gateway.history.DataSink
getLogName
-
Constructor Details
-
AggregateSink
-
-
Method Details
-
getPipelineName
Description copied from interface:DataSink
Returns the name of the store and forward pipeline that this sink belongs to.- Specified by:
getPipelineName
in interfaceDataSink
-
getSinks
-
addSink
Adds a sink to the list. Will start the sink if this aggregate sink is started. -
removeSink
-
getInfo
Description copied from interface:DataSink
Gets the information for this sink, as well as any below it. -
getQuarantineManager
Description copied from interface:DataSink
Returns the quarantine interface for the sink. If the sink doesn't support quarantined data, can return null.- Specified by:
getQuarantineManager
in interfaceDataSink
-
isAccepting
public boolean isAccepting()Only true if ALL data sinks are accepting.- Specified by:
isAccepting
in interfaceDataSink
-
shutdown
public void shutdown() -
startup
public void startup() -
acceptsData
Description copied from interface:HistoryStorer
Returns whether or not the storer can accept the specified type of data.- Specified by:
acceptsData
in interfaceHistoryStorer
-
isLicensedFor
Description copied from interface:HistoryStorer
Assuming the storer accepts the flavor, is it currently licensed for it? If not, the data will not be stored.- Specified by:
isLicensedFor
in interfaceHistoryStorer
-
storeData
- Specified by:
storeData
in interfaceHistoryStorer
- Throws:
Exception
-