Class AbstractDatasourceSink
java.lang.Object
com.inductiveautomation.ignition.gateway.history.sf.sinks.AbstractSink
com.inductiveautomation.ignition.gateway.history.sf.sinks.AbstractDatasourceSink
- All Implemented Interfaces:
- DataSink,- HistoryStorer,- IRecordListener<DatasourceRecord>
public abstract class AbstractDatasourceSink
extends AbstractSink
implements IRecordListener<DatasourceRecord>
- 
Field SummaryFields inherited from class com.inductiveautomation.ignition.gateway.history.sf.sinks.AbstractSinkfaulted, faultError, faultTimeFields inherited from interface com.inductiveautomation.ignition.gateway.history.DataSinkLOG_NAME_TEMPLATE
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedAbstractDatasourceSink(GatewayContext context, String dataSource) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected Datasourceprotected abstract StringgetInfo()Gets the information for this sink, as well as any below it.protected QueryCachebooleanReturns whether the data store is accepting data.voidrecordAdded(DatasourceRecord record) voidrecordDeleted(KeyValue key) voidrecordUpdated(DatasourceRecord record) protected voidvoidsetDatasourceName(String dataSource) voidshutdown()voidstartup()voidstoreData(HistoricalData data) protected abstract voidstoreDataToDatasource(SRConnection conn, HistoricalData data) protected voidstoreToDatasource(Datasource ds, HistoricalData data) protected voidprotected booleanprotected booleanMethods inherited from class com.inductiveautomation.ignition.gateway.history.sf.sinks.AbstractSinkcreateLogger, getFaultReason, getLogger, getPipelineName, getQuarantineManager, initialize, isFaulted, isInitialized, isStarted, setFaulted, setInitialized, tryToInitMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.inductiveautomation.ignition.gateway.history.DataSinkgetLogNameMethods inherited from interface com.inductiveautomation.ignition.gateway.history.HistoryStoreracceptsData, isLicensedFor
- 
Constructor Details- 
AbstractDatasourceSink
 
- 
- 
Method Details- 
startuppublic void startup()- Specified by:
- startupin interface- DataSink
- Overrides:
- startupin class- AbstractSink
 
- 
shutdownpublic void shutdown()- Specified by:
- shutdownin interface- DataSink
- Overrides:
- shutdownin class- AbstractSink
 
- 
recordUpdated- Specified by:
- recordUpdatedin interface- IRecordListener<DatasourceRecord>
 
- 
recordAdded- Specified by:
- recordAddedin interface- IRecordListener<DatasourceRecord>
 
- 
recordDeleted- Specified by:
- recordDeletedin interface- IRecordListener<DatasourceRecord>
 
- 
getContext
- 
setDatasourceName
- 
getDatasourceName
- 
getDatasource
- 
useBatchingprotected boolean useBatching()
- 
useGeneratedKeysprotected boolean useGeneratedKeys()
- 
getQueryCache
- 
getDescriptionKey
- 
getInfoDescription copied from interface:DataSinkGets the information for this sink, as well as any below it.
- 
uninitializeprotected void uninitialize()- Overrides:
- uninitializein class- AbstractSink
 
- 
isAcceptingpublic boolean isAccepting()Description copied from interface:DataSinkReturns whether the data store is accepting data.- Specified by:
- isAcceptingin interface- DataSink
- Overrides:
- isAcceptingin class- AbstractSink
 
- 
storeData- Specified by:
- storeDatain interface- HistoryStorer
- Throws:
- Exception
 
- 
storeToDatasource- Throws:
- Exception
 
- 
storeDataToDatasourceprotected abstract void storeDataToDatasource(SRConnection conn, HistoricalData data) throws Exception - Throws:
- Exception
 
- 
runFirstTimeChecks- Throws:
- Exception
 
 
-