public abstract class RrdByteArrayBackend extends ByteBufferBackend
BYTEORDER| Modifier | Constructor and Description |
|---|---|
protected |
RrdByteArrayBackend(String path)
Constructor for RrdByteArrayBackend.
|
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
getBuffer() |
long |
getLength()
Returns the number of RRD bytes in the underlying storage.
|
protected void |
read(long offset,
byte[] bytes)
read.
|
protected void |
setBuffer(byte[] buffer) |
protected void |
setLength(long length)
Sets the number of bytes in the underlying RRD storage.
|
close, getCharBuffer, isDirty, readDouble, readDouble, readInt, readLong, readShort, rrdClose, setByteBuffer, write, writeDouble, writeDouble, writeDouble, writeInt, writeLong, writeShort, writeStringdone, getFactory, getPath, getUri, isCachingAllowed, isInstanceCreated, readAll, readString, writeStringprotected byte[] getBuffer()
public long getLength()
getLength in class RrdBackendprotected void read(long offset,
byte[] bytes)
throws IOException
read in class ByteBufferBackendoffset - a long.bytes - an array of byte.IOException - if any.IllegalArgumentException - if offset is bigger that the possible length.protected void setBuffer(byte[] buffer)
protected void setLength(long length)
It will reserves a memory section as a RRD storage.
setLength in class RrdBackendlength - Length of the underlying RRD storage in bytes.