public class MemoryBackedHistorian extends java.lang.Object implements Historian, StorageSession
Modifier and Type | Class and Description |
---|---|
protected class |
MemoryBackedHistorian.Tag |
QUALITY_NOT_FOUND
Constructor and Description |
---|
MemoryBackedHistorian() |
Modifier and Type | Method and Description |
---|---|
protected void |
addNode(MemoryBackedHistorian.Tag node) |
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.
|
void |
close() |
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.
|
java.lang.Long |
getTotalDataCount() |
void |
initialize(PropertySet properties) |
protected void |
performTimePruning(boolean force) |
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() |
void |
store(java.lang.String tag,
java.lang.Object value,
int quality,
long timestamp)
Stores a value for the given tag path.
|
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 java.lang.Long getTotalDataCount()
public void register(java.lang.String tag, PropertySet properties)
Historian
public void store(java.lang.String tag, java.lang.Object value, int quality, long timestamp) throws java.lang.Exception
StorageSession
store
in interface StorageSession
java.lang.Exception
protected void performTimePruning(boolean force)
public java.util.List<java.lang.String> browse(java.util.Optional<java.lang.String> filter)
Historian
public void delete(java.util.List<java.lang.String> paths)
Historian
public QueryResult query(java.util.List<java.lang.String> tags, long startTime, long endTime, boolean includeBounding)
Historian
protected void addNode(MemoryBackedHistorian.Tag node)
public Status getStorageStatus()
Historian
getStorageStatus
in interface Historian
public Status getQueryStatus()
Historian
getQueryStatus
in interface Historian
public StorageSession createStorageSession()
Historian
createStorageSession
in interface Historian
public void close() throws java.io.IOException
close
in interface java.lang.AutoCloseable
java.io.IOException