Class HistorianManagerImpl
java.lang.Object
com.inductiveautomation.historian.gateway.HistorianManagerImpl
- All Implemented Interfaces:
HistorianManager,ExtensionPointManager<com.inductiveautomation.historian.gateway.api.HistorianExtensionPoint<?>>,TagHistoryManager,ModuleService
public class HistorianManagerImpl
extends Object
implements TagHistoryManager, HistorianManager, ExtensionPointManager<com.inductiveautomation.historian.gateway.api.HistorianExtensionPoint<?>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyAnnotationChanges(List<AnnotationChangePoint> annotationChangePoints, boolean blockForResult) applySourceChanges(List<SourceChangePoint> sourceChangePoints, boolean blockForResult) browseHistoricalTags(QualifiedPath root, BrowseFilter filter) ExtensionPointCollection<com.inductiveautomation.historian.gateway.api.HistorianExtensionPoint<?>>Retrieves a collection of historian names available in the system.getQueryEngine(String historianName) Retrieves theQueryEngineassociated with the specified historian name, if available.getQueryInterface(String provider) getStorageEngine(String historianName) Retrieves theStorageEngineassociated with the specified historian name, if available.booleanReturns whether this gateway is licensed for storage.queryAnnotations(AnnotationQueryOptions queryOptions) queryAnnotations(List<? extends Path> paths, Date start, Date end, TypeFilter filter) voidqueryDataPoints(DataPointQueryOptions<?> queryOptions, ResultWriterOptions writerOptions, StreamingDatasetWriter datasetWriter) voidqueryHistory(TagHistoryQueryParams query, StreamingDatasetWriter writer) Queries the tag history system for the data as defined by the query parameters.voidqueryHistoryDensity(StreamingDatasetWriter writer, List<? extends Path> paths, Date start, Date end) Queries the tag store for data density information.queryHistoryDensity(List<QualifiedPath> qpaths, Date start, Date end) queryMetadata(MetadataQueryOptions queryOptions) voidsetup(GatewayContext context) voidshutdown()voidstartup()storeAnnotationPoints(List<AnnotationPoint> annotationPoints, boolean blockForResult) storeAnnotations(List<Annotation> annotations) Stores the given annotations.storeAtomicPoints(List<AtomicPoint<?>> atomicPoints, boolean blockForResult) voidstoreLegacyHistoryData(String historianName, List<TagHistoryData> tagHistoryData) storeMetadataPoints(List<MetadataPoint> metadataPoints, boolean blockForResult)
-
Constructor Details
-
HistorianManagerImpl
public HistorianManagerImpl()
-
-
Method Details
-
setup
- Throws:
Exception
-
isLicensedForStorage
public boolean isLicensedForStorage()Description copied from interface:TagHistoryManagerReturns whether this gateway is licensed for storage.- Specified by:
isLicensedForStoragein interfaceTagHistoryManager- Returns:
- true if data can be stored.
-
startup
public void startup() -
shutdown
public void shutdown() -
getExtensionPointResourceType
- Specified by:
getExtensionPointResourceTypein interfaceExtensionPointManager<com.inductiveautomation.historian.gateway.api.HistorianExtensionPoint<?>>
-
getExtensionPointCollection
public ExtensionPointCollection<com.inductiveautomation.historian.gateway.api.HistorianExtensionPoint<?>> getExtensionPointCollection()- Specified by:
getExtensionPointCollectionin interfaceExtensionPointManager<com.inductiveautomation.historian.gateway.api.HistorianExtensionPoint<?>>
-
queryMetadata
-
queryDataPoints
public void queryDataPoints(DataPointQueryOptions<?> queryOptions, ResultWriterOptions writerOptions, StreamingDatasetWriter datasetWriter) -
storeAtomicPoints
-
storeMetadataPoints
-
storeAnnotationPoints
public QualityCode storeAnnotationPoints(List<AnnotationPoint> annotationPoints, boolean blockForResult) -
applySourceChanges
public QualityCode applySourceChanges(List<SourceChangePoint> sourceChangePoints, boolean blockForResult) -
applyAnnotationChanges
public QualityCode applyAnnotationChanges(List<AnnotationChangePoint> annotationChangePoints, boolean blockForResult) -
getStatus
- Specified by:
getStatusin interfaceTagHistoryManager
-
getQueryInterface
- Specified by:
getQueryInterfacein interfaceTagHistoryManager
-
queryHistory
Description copied from interface:TagHistoryManagerQueries the tag history system for the data as defined by the query parameters. The results are written to the providedStreamingDatasetWriter. This allows results to be streamed and not collected in memory. However, in order to get a simple Dataset result, simply use theBasicStreamingDataset.- Specified by:
queryHistoryin interfaceTagHistoryManager
-
queryHistoryDensity
public void queryHistoryDensity(StreamingDatasetWriter writer, List<? extends Path> paths, Date start, Date end) throws Exception Description copied from interface:TagHistoryManagerQueries the tag store for data density information. Will return a structure with two columns: a timestamp, and the "weight", which is not really defined, but instead relative across the return set. The weight is valid until the next entry.- Specified by:
queryHistoryDensityin interfaceTagHistoryManager- Throws:
Exception
-
queryHistoryDensity
public TimelineSet queryHistoryDensity(List<QualifiedPath> qpaths, Date start, Date end) throws Exception - Specified by:
queryHistoryDensityin interfaceTagHistoryManager- Throws:
Exception
-
queryAnnotations
-
queryAnnotations
public List<Annotation> queryAnnotations(List<? extends Path> paths, Date start, Date end, TypeFilter filter) - Specified by:
queryAnnotationsin interfaceTagHistoryManager
-
storeAnnotations
Description copied from interface:TagHistoryManagerStores the given annotations. Returns the new id of the stored annotation, if the quality code is good.- Specified by:
storeAnnotationsin interfaceTagHistoryManager- Returns:
- a 1-to-1 result for each annotation, with the result quality, and the new storage id if successful.
-
browseHistoricalTags
public Results<Result> browseHistoricalTags(QualifiedPath root, @Nullable BrowseFilter filter) throws InvalidQualifiedPathException - Specified by:
browseHistoricalTagsin interfaceTagHistoryManager- Throws:
InvalidQualifiedPathException
-
browseHistoricalProviders
-
getStorageEngine
Description copied from interface:HistorianManagerRetrieves theStorageEngineassociated with the specified historian name, if available. TheStorageEngineserves as the interface for managing data storage and retrieval operations for the given historian.- Specified by:
getStorageEnginein interfaceHistorianManager- Parameters:
historianName- the name of the historian for which the storage engine is to be retrieved; must not be null- Returns:
- an
Optionalcontaining theStorageEngineif one is available for the specified historian, or an emptyOptionalotherwise
-
getQueryEngine
Description copied from interface:HistorianManagerRetrieves theQueryEngineassociated with the specified historian name, if available. TheQueryEngineprovides methods for querying historical data managed by the specified historian.- Specified by:
getQueryEnginein interfaceHistorianManager- Parameters:
historianName- the name of the historian for which the query engine is to be retrieved; must not be null- Returns:
- an
Optionalcontaining theQueryEngineif one is available for the specified historian, or an emptyOptionalotherwise
-
getHistorianNames
Description copied from interface:HistorianManagerRetrieves a collection of historian names available in the system.- Specified by:
getHistorianNamesin interfaceHistorianManager- Returns:
- a
CollectionofStringrepresenting the names of available historians
-
getTagHistoryProviders
- Specified by:
getTagHistoryProvidersin interfaceTagHistoryManager
-
storeLegacyHistoryData
public void storeLegacyHistoryData(String historianName, List<TagHistoryData> tagHistoryData) throws Exception - Throws:
Exception
-