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, writeString
done, getFactory, getPath, getUri, isCachingAllowed, isInstanceCreated, readAll, readString, writeString
protected void setBuffer(byte[] buffer)
protected byte[] getBuffer()
protected void read(long offset, byte[] bytes) throws IOException
read.
read
in class ByteBufferBackend
offset
- a long.bytes
- an array of byte.IOException
- if any.IllegalArgumentException
- if offset is bigger that the possible length.public long getLength()
getLength
in class RrdBackend
protected void setLength(long length) throws IOException
It will reserves a memory section as a RRD storage.
setLength
in class RrdBackend
length
- Length of the underlying RRD storage in bytes.IllegalArgumentException
- if length is bigger that the possible length.IOException
- Thrown in case of I/O error.