public abstract class RrdByteArrayBackend extends RrdBackend
Modifier and Type | Field and Description |
---|---|
protected byte[] |
buffer |
Modifier | Constructor and Description |
---|---|
protected |
RrdByteArrayBackend(String path)
Constructor for RrdByteArrayBackend.
|
Modifier and Type | Method and Description |
---|---|
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 boolean |
isCachingAllowed()
This method is overridden to disable high-level caching in frontend RRD4J classes.
|
protected void |
read(long offset,
byte[] bytes)
read.
|
protected void |
setLength(long length)
Sets the number of bytes in the underlying RRD storage.
|
protected void |
write(long offset,
byte[] bytes)
write.
|
getPath, readAll
protected void write(long offset, byte[] bytes) throws IOException
write.
write
in class RrdBackend
offset
- a long.bytes
- an array of byte.IOException
- if any.protected void read(long offset, byte[] bytes) throws IOException
read.
read
in class RrdBackend
offset
- a long.bytes
- an array of byte.IOException
- if any.public long getLength()
getLength
in class RrdBackend
protected void setLength(long length) throws IOException
setLength
in class RrdBackend
length
- Length of the underlying RRD storage in bytes.IOException
- Thrown in case of I/O error.public void close() throws IOException
close
in class RrdBackend
IOException
- if any.protected boolean isCachingAllowed()
isCachingAllowed
in class RrdBackend
false
. There is no need to cache anything in high-level classes
since all RRD bytes are already in memory.Copyright © 2015. All rights reserved.