Modifier and Type | Class and Description |
---|---|
protected class |
FixedDailyDataHistorian.DataPump |
protected class |
FixedDailyDataHistorian.TimeFieldGenerator |
QUALITY_NOT_FOUND
Constructor and Description |
---|
FixedDailyDataHistorian() |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
browse(java.util.Optional<java.lang.String> filter)
Returns a list of paths with data stored, optionally matching a filter.
|
StorageSession |
createStorageSession()
Used to store values to the historian.
|
void |
delete(java.util.List<java.lang.String> paths)
Deletes the tags and all data for the specified paths.
|
<T> T |
getProperty(Property<T> prop)
Returns the configured or status property requested,
or the default value if no further info is available.
|
Status |
getQueryStatus()
Returns the status of the storage system.
|
Status |
getStorageStatus()
Returns the status of the storage system.
|
void |
initialize(PropertySet properties) |
QueryResult |
query(java.util.List<java.lang.String> tags,
long startTime,
long endTime,
boolean includeBounding)
Queries the values for the given paths over the specified span of time.
|
void |
register(java.lang.String tag,
PropertySet properties)
Provides information about a path.
|
void |
shutdown() |
public void initialize(PropertySet properties) throws java.lang.Exception
initialize
in interface Historian
java.lang.Exception
public <T> T getProperty(Property<T> prop)
Historian
getProperty
in interface Historian
public void register(java.lang.String tag, PropertySet properties)
Historian
public StorageSession createStorageSession()
Historian
It implements AutoClosable, and should often be used in a try-with-resources block, such as:
try(StorageSession s = historian.createStorageSession()){
s.store...
}
Important: Not every historian will support storage, some are read-only. This can be checked by calling getStorageStatus() and checking the return for "NotSupported".
createStorageSession
in interface Historian
public void delete(java.util.List<java.lang.String> paths)
Historian
public java.util.List<java.lang.String> browse(java.util.Optional<java.lang.String> filter)
Historian
public QueryResult query(java.util.List<java.lang.String> tags, long startTime, long endTime, boolean includeBounding)
Historian
public Status getStorageStatus()
Historian
getStorageStatus
in interface Historian
public Status getQueryStatus()
Historian
getQueryStatus
in interface Historian