org.rrd4j.core
Class RrdBerkeleyDbBackend
java.lang.Object
org.rrd4j.core.RrdBackend
org.rrd4j.core.RrdByteArrayBackend
org.rrd4j.core.RrdBerkeleyDbBackend
public class RrdBerkeleyDbBackend
- extends RrdByteArrayBackend
Backend which is used to store RRD data to ordinary disk files
using Oracle Berkeley DB Java Edition.
Method Summary |
void |
close()
This method is required by the base class definition, but it does not
releases any memory resources at all. |
protected void |
write(long offset,
byte[] bytes)
Writes an array of bytes to the underlying storage starting from the given
storage offset. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RrdBerkeleyDbBackend
protected RrdBerkeleyDbBackend(String path,
com.sleepycat.je.Database rrdDatabase)
RrdBerkeleyDbBackend
protected RrdBerkeleyDbBackend(byte[] buffer,
String path,
com.sleepycat.je.Database rrdDatabase)
write
protected void write(long offset,
byte[] bytes)
throws IOException
- Description copied from class:
RrdBackend
- Writes an array of bytes to the underlying storage starting from the given
storage offset.
- Overrides:
write
in class RrdByteArrayBackend
- Parameters:
offset
- Storage offset.bytes
- Array of bytes that should be copied to the underlying storage
- Throws:
IOException
- Thrown in case of I/O error
close
public void close()
throws IOException
- Description copied from class:
RrdByteArrayBackend
- This method is required by the base class definition, but it does not
releases any memory resources at all.
- Overrides:
close
in class RrdByteArrayBackend
- Throws:
IOException
- Thrown in case of I/O error