Summary
Public Methods |
void
|
close()
This method is required by the base class definition, but it does not
releases any memory resources at all.
|
Protected Methods |
synchronized
void
|
write(long offset, byte[] bytes)
Writes an array of bytes to the underlying storage starting from the given
storage offset.
|
[Expand]
Inherited Methods |
From class
org.rrd4j.core.RrdByteArrayBackend
void
|
close()
This method is required by the base class definition, but it does not
releases any memory resources at all.
|
long
|
getLength()
Returns the number of RRD bytes held in memory.
|
boolean
|
isCachingAllowed()
This method is overriden to disable high-level caching in frontend RRD4J classes.
|
synchronized
void
|
read(long offset, byte[] bytes)
Reads an array of bytes from the underlying storage starting from the given
storage offset.
|
void
|
setLength(long length)
Reserves a memory section as a RRD storage.
|
synchronized
void
|
write(long offset, byte[] bytes)
Writes an array of bytes to the underlying storage starting from the given
storage offset.
|
|
From class
org.rrd4j.core.RrdBackend
void
|
close()
Closes the underlying backend.
|
abstract
long
|
getLength()
Returns the number of RRD bytes in the underlying storage.
|
String
|
getPath()
Returns path to the storage.
|
boolean
|
isCachingAllowed()
This method suggests the caching policy to the Rrd4j frontend (high-level) classes.
|
abstract
void
|
read(long offset, byte[] b)
Reads an array of bytes from the underlying storage starting from the given
storage offset.
|
final
byte[]
|
readAll()
Reads all RRD bytes from the underlying storage
|
abstract
void
|
setLength(long length)
Sets the number of bytes in the underlying RRD storage.
|
abstract
void
|
write(long offset, byte[] b)
Writes an array of bytes to the underlying storage starting from the given
storage offset.
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Protected Constructors
protected
RrdBerkeleyDbBackend
(String path, Database rrdDatabase)
protected
RrdBerkeleyDbBackend
(byte[] buffer, String path, Database rrdDatabase)
Public Methods
public
void
close
()
This method is required by the base class definition, but it does not
releases any memory resources at all.
Protected Methods
protected
synchronized
void
write
(long offset, byte[] bytes)
Writes an array of bytes to the underlying storage starting from the given
storage offset.
Parameters
offset
| Storage offset. |
bytes
| Array of bytes that should be copied to the underlying storage |