public class RrdMemoryBackend extends ByteBufferBackend
BYTEORDER| Modifier | Constructor and Description |
|---|---|
protected | RrdMemoryBackend(String path,
AtomicReference<ByteBuffer> refbb)Path to the RRD file. |
| Modifier and Type | Method and Description |
|---|---|
protected 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 in the underlying storage. |
protected void | setLength(long length)Sets the number of bytes in the underlying RRD storage. |
getCharBuffer, isDirty, read, readDouble, readDouble, readInt, readLong, readShort, rrdClose, setByteBuffer, write, writeDouble, writeDouble, writeDouble, writeInt, writeLong, writeShort, writeStringdone, getFactory, getPath, getUri, isCachingAllowed, isInstanceCreated, readAll, readString, writeStringprotected RrdMemoryBackend(String path, AtomicReference<ByteBuffer> refbb)
path - path to the RRD filerefbb - atomic reference holding the byte bufferprotected void close()
close in class ByteBufferBackendpublic long getLength()
RrdBackendgetLength in class RrdBackendprotected void setLength(long length)
RrdBackendsetLength in class RrdBackendlength - Length of the underlying RRD storage in bytes.