public abstract class AbstractStorage extends Object implements DataStore
Constructor and Description |
---|
AbstractStorage() |
Modifier and Type | Method and Description |
---|---|
void |
attachListener(String nodeId,
DataListener listener)
Attach a listener to a data node
|
void |
detachListener(String nodeId,
DataListener listener) |
void |
dispose()
Dispose the service.
|
protected void |
fireUpdate(DataNode node) |
protected abstract Executor |
getExecutor()
Provide an executor for sending events
|
abstract NotifyFuture<DataNode> |
readNode(String nodeId)
Get the data node
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deleteNode, writeNode
public abstract NotifyFuture<DataNode> readNode(String nodeId)
DataStore
protected abstract Executor getExecutor()
This method is only called after the constructor is completed
null
public void dispose()
This method still needs a valid executor using getExecutor()
.
public void attachListener(String nodeId, DataListener listener)
DataStore
The listener is called with the current status of the node when attaching.
attachListener
in interface DataStore
nodeId
- the node id to attach tolistener
- the listener that will receive eventspublic void detachListener(String nodeId, DataListener listener)
detachListener
in interface DataStore
protected void fireUpdate(DataNode node)
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.