org.jrobin.core
public class RrdMemoryBackendFactory extends RrdBackendFactory
Calling
close()
on RrdDb objects does not release any memory at all
(RRD data must be available for the next new RrdDb(path)
call. To release allocated
memory, you'll have to call delete(path)
method of this class.
Field Summary | |
---|---|
static String | NAME
factory name, "MEMORY" |
Method Summary | |
---|---|
boolean | delete(String id)
Removes the storage with the given ID from the memory.
|
protected boolean | exists(String id)
Method to determine if a memory storage with the given ID already exists.
|
String | getFactoryName()
Returns the name of this factory.
|
protected RrdBackend | open(String id, boolean readOnly)
Creates RrdMemoryBackend object.
|
Parameters: id Storage ID
Returns: True, if the storage with the given ID is deleted, false otherwise.
Parameters: id Memory storage ID.
Returns: True, if such storage exists, false otherwise.
Returns: Factory name (equals to "MEMORY").
Parameters: id Since this backend holds all data in memory, this argument is interpreted as an ID for this memory-based storage. readOnly This parameter is ignored
Returns: RrdMemoryBackend object which handles all I/O operations
Throws: IOException Thrown in case of I/O error.