java.lang.Object | |
↳ | org.rrd4j.core.jrrd.RRDatabase |
Instances of this class model Round Robin Database (RRD) files.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a database to read from.
| |||||||||||
Creates a database to read from.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Closes this database stream and releases any associated system resources.
| |||||||||||
Returns the
Archive at the specified position in this database. | |||||||||||
Returns an iterator over the archives in this database of the given type
in proper sequence.
| |||||||||||
Returns an iterator over the archives in this database in proper sequence.
| |||||||||||
Returns data from the database corresponding to the given consolidation
function and a step size of 1.
| |||||||||||
Returns data from the database corresponding to the given consolidation
function.
| |||||||||||
Returns the
DataSource at the specified position in this database. | |||||||||||
Returns an iterator over the data sources in this database in proper sequence.
| |||||||||||
Returns the
Header for this database. | |||||||||||
Returns the date this database was last updated.
| |||||||||||
Returns the number of archives in this database.
| |||||||||||
Outputs the header information of the database to the given print stream
using the default number format.
| |||||||||||
Outputs the header information of the database to the given print stream
using the given number format.
| |||||||||||
Returns a summary the contents of this database.
| |||||||||||
Outputs the content of the database to the given print stream
as a stream of XML.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a database to read from.
name | the filename of the file to read from. |
---|
IOException | if an I/O error occurs. |
---|
Creates a database to read from.
file | the file to read from. |
---|
IOException | if an I/O error occurs. |
---|
Closes this database stream and releases any associated system resources.
IOException | if an I/O error occurs. |
---|
Returns the Archive
at the specified position in this database.
index | index of Archive to return. |
---|
Archive
at the specified position in this database.
Returns an iterator over the archives in this database of the given type in proper sequence.
type | the consolidation function that should have been applied to the data. |
---|
Returns an iterator over the archives in this database in proper sequence.
Returns data from the database corresponding to the given consolidation function and a step size of 1.
type | the consolidation function that should have been applied to the data. |
---|
IllegalArgumentException | if there was a problem locating a data archive with the requested consolidation function. |
---|---|
IOException | if there was a problem reading data from the database. |
Returns data from the database corresponding to the given consolidation function.
type | the consolidation function that should have been applied to the data. |
---|---|
step | the step size to use. |
IllegalArgumentException | if there was a problem locating a data archive with the requested consolidation function. |
---|---|
IOException | if there was a problem reading data from the database. |
Returns the DataSource
at the specified position in this database.
index | index of DataSource to return. |
---|
DataSource
at the specified position in this database
Returns an iterator over the data sources in this database in proper sequence.
Returns the Header
for this database.
Header
for this database.
Returns the date this database was last updated. To convert this date to
the form returned by rrdtool last
call Date.getTime() and
divide the result by 1000.
Returns the number of archives in this database.
Outputs the header information of the database to the given print stream
using the default number format. The default format for double
is 0.0000000000E0.
s | the PrintStream to print the header information to. |
---|
Outputs the header information of the database to the given print stream using the given number format. The format is almost identical to that produced by rrdtool info
s | the PrintStream to print the header information to. |
---|---|
numberFormat | the format to print double s as.
|
Returns a summary the contents of this database.
Outputs the content of the database to the given print stream as a stream of XML. The XML format is almost identical to that produced by rrdtool dump
s | the PrintStream to send the XML to. |
---|