java.lang.Object | ||
↳ | org.rrd4j.core.RrdBackendFactory | |
↳ | org.rrd4j.core.RrdMemoryBackendFactory |
Factory class which creates actual RrdMemoryBackend
objects. Rrd4j's support
for in-memory RRDs is still experimental. You should know that all active RrdMemoryBackend
objects are held in memory, each backend object stores RRD data in one big byte array. This
implementation is therefore quite basic and memory hungry but runs very fast.
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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Removes the storage with the given ID from the memory.
| |||||||||||
Returns the name of this factory.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Method to determine if a memory storage with the given ID already exists.
| |||||||||||
Creates RrdMemoryBackend object.
| |||||||||||
Determines if the header should be validated.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Removes the storage with the given ID from the memory.
id | Storage ID |
---|
Returns the name of this factory.
Method to determine if a memory storage with the given ID already exists.
id | Memory storage ID. |
---|
Creates RrdMemoryBackend object.
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 |
IOException | Thrown in case of I/O error. |
---|
Determines if the header should be validated.
IOException |
---|