java.lang.Object | |||
↳ | org.rrd4j.core.RrdBackendFactory | ||
↳ | org.rrd4j.core.RrdFileBackendFactory | ||
↳ | org.rrd4j.core.RrdNioBackendFactory |
Factory class which creates actual RrdNioBackend
objects. This is the default factory since
1.4.0 version
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | DEFAULT_SYNC_CORE_POOL_SIZE | The core pool size for the sync executor. | |||||||||
int | DEFAULT_SYNC_PERIOD | Period in seconds between consecutive synchronizations when sync-mode is set to SYNC_BACKGROUND. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the name (primary ID) for the factory.
| |||||||||||
Returns time between two consecutive background synchronizations.
| |||||||||||
Sets time between consecutive background synchronizations.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates RrdNioBackend object for the given file path.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
The core pool size for the sync executor. Defaults to 6.
Period in seconds between consecutive synchronizations when
sync-mode is set to SYNC_BACKGROUND. By default in-memory cache will be
transferred to the disc every 300 seconds (5 minutes). Default value can be
changed via setSyncPeriod(int)
method.
Returns the name (primary ID) for the factory.
Returns time between two consecutive background synchronizations. If not changed via
setSyncPeriod(int)
method call, defaults to DEFAULT_SYNC_PERIOD
.
See setSyncPeriod(int)
for more information.
Sets time between consecutive background synchronizations.
syncPeriod | Time in seconds between consecutive background synchronizations. |
---|
Creates RrdNioBackend object for the given file path.
path | File path |
---|---|
readOnly | True, if the file should be accessed in read/only mode. False otherwise. |
IOException | Thrown in case of I/O error. |
---|