public class BufferingStorageDao extends java.lang.Object implements BufferingStorageDaoMXBean, JdbcStorageDao
| Constructor and Description |
|---|
BufferingStorageDao(JdbcStorageDao targetDao)
Create a new buffering storage DAO
|
| Modifier and Type | Method and Description |
|---|---|
void |
deleteNode(java.lang.String nodeId) |
void |
dispose()
This will dispose ourself and the target dao
|
int |
getQueueSize() |
java.util.Collection<DataNode> |
readAllNodes() |
DataNode |
readNode(java.lang.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 java.util.Collection<DataNode> readAllNodes()
readAllNodes in interface JdbcStorageDaopublic DataNode readNode(java.lang.String nodeId)
readNode in interface JdbcStorageDaopublic void writeNode(DataNode node)
writeNode in interface JdbcStorageDaopublic void deleteNode(java.lang.String nodeId)
deleteNode in interface JdbcStorageDaoprotected void writer()
public void dispose()
dispose in interface JdbcStorageDaopublic int getQueueSize()
getQueueSize in interface BufferingStorageDaoMXBean
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