org.rrd4j.core
Class RrdMongoDBBackend

java.lang.Object
  extended by org.rrd4j.core.RrdBackend
      extended by org.rrd4j.core.RrdByteArrayBackend
          extended by org.rrd4j.core.RrdMongoDBBackend

public class RrdMongoDBBackend
extends RrdByteArrayBackend

Author:
Mathias Bogaert

Field Summary
 
Fields inherited from class org.rrd4j.core.RrdByteArrayBackend
buffer
 
Constructor Summary
RrdMongoDBBackend(String path, com.mongodb.DBCollection rrdCollection)
           
 
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

RrdMongoDBBackend

public RrdMongoDBBackend(String path,
                         com.mongodb.DBCollection rrdCollection)
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


Copyright © 2011. All Rights Reserved.