org.rrd4j.core
Class RrdBerkeleyDbBackend

java.lang.Object
  extended by org.rrd4j.core.RrdBackend
      extended by org.rrd4j.core.RrdByteArrayBackend
          extended by 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.


Constructor Summary
protected RrdBerkeleyDbBackend(byte[] buffer, String path, com.sleepycat.je.Database rrdDatabase)
           
protected RrdBerkeleyDbBackend(String path, com.sleepycat.je.Database rrdDatabase)
           
 
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 org.rrd4j.core.RrdByteArrayBackend
getLength, isCachingAllowed, read, setLength
 
Methods inherited from class org.rrd4j.core.RrdBackend
getPath, readAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RrdBerkeleyDbBackend

protected RrdBerkeleyDbBackend(String path,
                               com.sleepycat.je.Database rrdDatabase)

RrdBerkeleyDbBackend

protected RrdBerkeleyDbBackend(byte[] buffer,
                               String path,
                               com.sleepycat.je.Database rrdDatabase)
Method Detail

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