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.
|
Status |
getQueryStatus()
Returns the status of the storage system.
|
Status |
getStorageStatus()
Returns the status of the storage system.
|
long |
getTotalDataCount()
Returns an estimate of the total number of datapoints in the system.
|
void |
initialize(PropertySet properties) |
protected void |
performTimePruning(boolean force) |
QueryResult |
query(java.util.List<java.lang.String> tags,
long startTime,
long endTime)
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 long getTotalDataCount()
Historian
getTotalDataCount
in interface Historian
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)
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