java.lang.Object | |
↳ | org.rrd4j.core.RrdDbPool |
![]() |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | INITIAL_CAPACITY | Initial capacity of the pool i.e. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the maximum number of simultaneously open RRD files.
| |||||||||||
Creates a single instance of the class on the first call,
or returns already existing one.
| |||||||||||
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Initial capacity of the pool i.e. maximum number of simultaneously open RRD files. The pool will never open too many RRD files at the same time.
Returns the maximum number of simultaneously open RRD files.
Creates a single instance of the class on the first call, or returns already existing one. Uses Initialization On Demand Holder idiom.
RuntimeException | Thrown if the default RRD backend is not derived from the RrdFileBackendFactory
|
---|
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 | Thrown in case of I/O error |
---|
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 | Thrown in case of I/O error |
---|
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 | Thrown in case of I/O error |
---|
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 | Thrown in case of I/O error |
---|
Sets the maximum number of simultaneously open RRD files.
capacity | Maximum number of simultaneously open RRD files. |
---|