public class RrdMemoryBackend extends RrdBackend
修飾子 | コンストラクタ | 説明 |
---|---|---|
protected |
RrdMemoryBackend(java.lang.String path) |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
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 JRobin classes.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPath, isInstanceCreated, isReadOnly, readAll, readDouble, readDouble, readInt, readLong, readString, writeDouble, writeDouble, writeDouble, writeInt, writeLong, writeString
protected void write(long offset, byte[] b)
RrdBackend
write
クラス内 RrdBackend
offset
- Storage offset.b
- Array of bytes that should be copied to the underlying storageprotected void read(long offset, byte[] b) throws java.io.IOException
RrdBackend
read
クラス内 RrdBackend
offset
- Storage offset.b
- Array which receives bytes from the underlying storagejava.io.IOException
- Thrown in case of I/O errorpublic long getLength()
getLength
クラス内 RrdBackend
protected void setLength(long newLength) throws java.io.IOException
setLength
クラス内 RrdBackend
newLength
- Number of bytes held in memory.java.io.IOException
- Thrown in case of I/O error.public void close()
close
クラス内 RrdBackend
protected boolean isCachingAllowed()
isCachingAllowed
クラス内 RrdBackend
false
. There is no need to cache anything in high-level classes
since all RRD bytes are already in memory.