public abstract class AbstractStorage extends java.lang.Object implements DataStore
| Constructor and Description |
|---|
AbstractStorage() |
| Modifier and Type | Method and Description |
|---|---|
void |
attachListener(java.lang.String nodeId,
DataListener listener)
Attach a listener to a data node
|
void |
detachListener(java.lang.String nodeId,
DataListener listener) |
void |
dispose()
Dispose the service.
|
protected void |
fireUpdate(DataNode node) |
protected abstract java.util.concurrent.Executor |
getExecutor()
Provide an executor for sending events
|
abstract |
readNode(java.lang.String nodeId)
Get the data node
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeleteNode, writeNodepublic abstractreadNode(java.lang.String nodeId)
DataStoreprotected abstract java.util.concurrent.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(java.lang.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(java.lang.String nodeId,
DataListener listener)
detachListener in interface DataStoreprotected void fireUpdate(DataNode node)
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0