org.jrobin.core
public class RrdMemoryBackend extends RrdBackend
Constructor Summary | |
---|---|
protected | RrdMemoryBackend(String path) |
Method Summary | |
---|---|
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 overriden to disable high-level caching in frontend JRobin classes.
|
protected void | read(long offset, byte[] b) |
protected void | setLength(long newLength)
Reserves a memory section as a RRD storage.
|
protected void | write(long offset, byte[] b) |
Returns: Number of all RRD bytes.
Returns: Always returns false
. There is no need to cache anything in high-level classes
since all RRD bytes are already in memory.
Parameters: newLength Number of bytes held in memory.
Throws: IOException Thrown in case of I/O error.