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, waitdeleteNode, writeNodepublic abstract NotifyFuture<DataNode> readNode(String nodeId)
DataStoreprotected abstract Executor getExecutor()
This method is only called after the constructor is completed
nullpublic void dispose()
This method still needs a valid executor using getExecutor().
public void attachListener(String nodeId, DataListener listener)
DataStoreThe listener is called with the current status of the node when attaching.
attachListener in interface DataStorenodeId - the node id to attach tolistener - the listener that will receive eventspublic void detachListener(String nodeId, DataListener listener)
detachListener in interface DataStoreprotected void fireUpdate(DataNode node)
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.