Class TagHistoryStorageEngineBridge
java.lang.Object
com.inductiveautomation.historian.gateway.api.storage.AbstractStorageEngine
com.inductiveautomation.historian.gateway.interop.TagHistoryStorageEngineBridge
- All Implemented Interfaces:
SnapshotProcessor
,StorageEngine
public class TagHistoryStorageEngineBridge
extends AbstractStorageEngine
implements SnapshotProcessor
This class is used to store TagGroupHistorySets from our new Historian system. This would be used by an
old implmentation that was being adapted, but which did not want to move away from using these structures.
This class attempts to preserve as much of the original behavior as possible, though of course with the changes
to the methodology between systems, some minor variances may be present.
The old system did not work off of registration, it simply sent the information it thought that storage needed
each time through HistoricalTagValues, in addition to info on the set.
This implementation, however, DOES rely on tag registration for key attributes, such as timestamp mode and
interpolation mode.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.inductiveautomation.historian.gateway.api.storage.AbstractStorageEngine
AbstractStorageEngine.StorageMetrics
-
Field Summary
Fields inherited from class com.inductiveautomation.historian.gateway.api.storage.AbstractStorageEngine
gatewayContext, historianName, logger, metrics, pathAdapter, supportedChangeTypes, supportedComplexTypes
-
Method Summary
Modifier and TypeMethodDescriptionprotected StorageResult<AnnotationChangePoint>
applyAnnotationChanges
(List<AnnotationChangePoint> annotationChangePoints) protected StorageResult<SourceChangePoint>
applySourceChanges
(List<SourceChangePoint> sourceChangePoints) protected StorageResult<AnnotationPoint>
doStoreAnnotations
(List<AnnotationPoint> annotationPoints) protected StorageResult<AtomicPoint<?>>
doStoreAtomic
(List<AtomicPoint<?>> atomicPoints) protected StorageResult<MetadataPoint>
doStoreMetadata
(List<MetadataPoint> metadataPoints) getOrCreate
(GatewayContext context, String historianName) getOrCreate
(GatewayContext context, String historianName, String databaseName) getOrCreateDataCollector
(CollectorId collectorId) Creates an instance ofDataCollector
for managing data collection and storage operations based on the specifiedCollectorId
.protected boolean
process
(CollectionSnapshot snapshot) static void
removeInstance
(String historianName) Methods inherited from class com.inductiveautomation.historian.gateway.api.storage.AbstractStorageEngine
applyChanges, doApplyChanges, doStoreComplex, shutdownProcessor, storeAtomic, storeComplex
-
Method Details
-
getOrCreate
public static TagHistoryStorageEngineBridge getOrCreate(GatewayContext context, String historianName, @Nullable String databaseName) -
getOrCreate
public static TagHistoryStorageEngineBridge getOrCreate(GatewayContext context, String historianName) -
removeInstance
-
getOrCreateDataCollector
Description copied from interface:StorageEngine
Creates an instance ofDataCollector
for managing data collection and storage operations based on the specifiedCollectorId
.- Specified by:
getOrCreateDataCollector
in interfaceStorageEngine
- Parameters:
collectorId
- theCollectorId
that will be used to identify and configure the data collector.- Returns:
- an instance of
DataCollector
configured for the given collection mode
-
process
- Specified by:
process
in interfaceSnapshotProcessor
-
getSfStorageId
-
applySourceChanges
protected StorageResult<SourceChangePoint> applySourceChanges(List<SourceChangePoint> sourceChangePoints) - Specified by:
applySourceChanges
in classAbstractStorageEngine
-
doStoreAtomic
- Specified by:
doStoreAtomic
in classAbstractStorageEngine
-
doStoreAnnotations
- Overrides:
doStoreAnnotations
in classAbstractStorageEngine
-
doStoreMetadata
- Overrides:
doStoreMetadata
in classAbstractStorageEngine
-
applyAnnotationChanges
protected StorageResult<AnnotationChangePoint> applyAnnotationChanges(List<AnnotationChangePoint> annotationChangePoints) - Overrides:
applyAnnotationChanges
in classAbstractStorageEngine
-