|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jrobin.core.RrdBackend
org.jrobin.core.RrdMemoryBackend
Backend which is used to store all RRD bytes in memory.
| Constructor Summary | |
protected |
RrdMemoryBackend(java.lang.String path)
|
| Method Summary | |
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. |
protected void |
read(long offset,
byte[] b)
Reads an array of bytes from the underlying storage starting from the given storage offset. |
protected void |
setLength(long newLength)
Reserves a memory section as a RRD storage. |
protected void |
write(long offset,
byte[] b)
Writes an array of bytes to the underlying storage starting from the given storage offset. |
| Methods inherited from class org.jrobin.core.RrdBackend |
afterCreate, afterFetch, afterUpdate, beforeFetch, beforeUpdate, getPath, readAll, sync |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected RrdMemoryBackend(java.lang.String path)
| Method Detail |
protected void write(long offset,
byte[] b)
throws java.io.IOException
RrdBackend
write in class RrdBackendoffset - Storage offset.b - Array of bytes that should be copied to the underlying storage
java.io.IOException - Thrown in case of I/O error
protected void read(long offset,
byte[] b)
throws java.io.IOException
RrdBackend
read in class RrdBackendoffset - Storage offset.b - Array which receives bytes from the underlying storage
java.io.IOException - Thrown in case of I/O errorpublic long getLength()
getLength in class RrdBackend
protected void setLength(long newLength)
throws java.io.IOException
setLength in class RrdBackendnewLength - Number of bytes held in memory.
java.io.IOException - Thrown in case of I/O error.public void close()
close in class RrdBackend
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||