java.lang.Object | ||
↳ | org.rrd4j.core.RrdDbPool | |
↳ | org.rrd4j.core.RrdDbPoolOld |
This class should be used to synchronize access to RRD files in a multithreaded environment. This class should be also used to prevent opening of too many RRD files at the same time (thus avoiding operating system limits).
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the maximum number of simultaneously open RRD files.
| |||||||||||
Returns the number of usage for a RRD.
| |||||||||||
Returns the number of usage for a RRD.
| |||||||||||
Returns the number of open RRD files.
| |||||||||||
Returns an array of open file names.
| |||||||||||
Releases RrdDb reference previously obtained from the pool.
| |||||||||||
Requests a RrdDb reference for the given RRD file path.
| |||||||||||
Requests a RrdDb reference for the given path.
| |||||||||||
Requests a RrdDb reference for the given RRD file definition object.
| |||||||||||
Sets the maximum number of simultaneously open RRD files.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Returns the maximum number of simultaneously open RRD files.
Returns the number of usage for a RRD.
rrdDb | RrdDb reference for which informations is needed. |
---|
IOException |
---|
Returns the number of usage for a RRD.
path | RRD file for which informations is needed. |
---|
IOException |
---|
Returns the number of open RRD files.
Returns an array of open file names.
Releases RrdDb reference previously obtained from the pool. When a reference is released, its usage count is decremented by one. If usage count drops to zero, the underlying RRD file will be closed.
rrdDb | RrdDb reference to be returned to the pool |
---|
IOException |
---|
Requests a RrdDb reference for the given RRD file path.
INITIAL_CAPACITY
, the file will be open and a new RrdDb reference will be returned.
If the file is not already open and the number of already open RRD files is equal to
INITIAL_CAPACITY
, the method blocks until some RRD file is closed.
path | Path to existing RRD file |
---|
IOException |
---|
Requests a RrdDb reference for the given path. The file will be created from external data (from XML dump, RRD file or RRDTool's binary RRD file).
INITIAL_CAPACITY
, a new RRD file will be created and a its RrdDb reference will be returned.
If the file is not already open and the number of already open RRD files is equal to
INITIAL_CAPACITY
, the method blocks until some RRD file is closed.
path | Path to RRD file which should be created |
---|---|
sourcePath | Path to external data which is to be converted to Rrd4j's native RRD file format |
IOException |
---|
Requests a RrdDb reference for the given RRD file definition object.
INITIAL_CAPACITY
, a new RRD file will be created and a its RrdDb reference will be returned.
If the file is not already open and the number of already open RRD files is equal to
INITIAL_CAPACITY
, the method blocks until some RRD file is closed.
rrdDef | Definition of the RRD file to be created |
---|
IOException |
---|
Sets the maximum number of simultaneously open RRD files.
capacity | Maximum number of simultaneously open RRD files. |
---|