public class BufferingStorageDao extends Object implements BufferingStorageDaoMXBean, JdbcStorageDao
| Constructor and Description |
|---|
BufferingStorageDao(JdbcStorageDao targetDao)
Create a new buffering storage DAO
|
| Modifier and Type | Method and Description |
|---|---|
void |
deleteNode(String nodeId) |
void |
dispose()
This will dispose ourself and the target dao
|
int |
getQueueSize() |
Collection<DataNode> |
readAllNodes() |
DataNode |
readNode(String nodeId) |
protected void |
startWriter() |
void |
writeNode(DataNode node) |
protected void |
writer() |
public BufferingStorageDao(JdbcStorageDao targetDao)
Requests will be passed on to the target DAO as necessary. The target DOA will be disposed by this class.
targetDao - the target DAOprotected void startWriter()
public Collection<DataNode> readAllNodes()
readAllNodes in interface JdbcStorageDaopublic DataNode readNode(String nodeId)
readNode in interface JdbcStorageDaopublic void writeNode(DataNode node)
writeNode in interface JdbcStorageDaopublic void deleteNode(String nodeId)
deleteNode in interface JdbcStorageDaoprotected void writer()
public void dispose()
dispose in interface JdbcStorageDaopublic int getQueueSize()
getQueueSize in interface BufferingStorageDaoMXBeanCopyright © 2016 Eclipse NeoSCADA Project. All rights reserved.