java.lang.Object | |
↳ | org.rrd4j.core.Archive |
Class to represent single RRD archive in a RRD with its internal state. Normally, you don't need methods to manipulate archive objects directly because Rrd4j framework does it automatically for you.
Each archive object consists of three parts: archive definition, archive state objects (one state object for each datasource) and round robin archives (one round robin for each datasource). API (read-only) is provided to access each of theese parts.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
consolFun | |||||||||||
rows | |||||||||||
steps | |||||||||||
xff |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Copies object's internal state to another Archive object.
| |||||||||||
Returns the underlying archive state object.
| |||||||||||
Returns archive time step in seconds.
| |||||||||||
Returns archive consolidation function ("AVERAGE", "MIN", "MAX" or "LAST").
| |||||||||||
Returns current ending timestamp.
| |||||||||||
Returns the underlying round robin archive.
| |||||||||||
Returns the number of archive rows.
| |||||||||||
Required to implement RrdUpdater interface.
| |||||||||||
Returns the underlying storage (backend) object which actually performs all
I/O operations.
| |||||||||||
Returns current starting timestamp.
| |||||||||||
Returns the number of archive steps.
| |||||||||||
Returns archive X-files factor.
| |||||||||||
Sets X-files factor to a new value.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Copies object's internal state to another Archive object.
other | New Archive object to copy state to |
---|
IOException | Thrown in case of I/O error |
---|
Returns the underlying archive state object. Each datasource has its corresponding ArcState object (archive states are managed independently for each RRD datasource).
dsIndex | Datasource index |
---|
Returns archive time step in seconds. Archive step is equal to RRD step multiplied with the number of archive steps.
IOException | Thrown in case of I/O error. |
---|
Returns archive consolidation function ("AVERAGE", "MIN", "MAX" or "LAST").
IOException | Thrown in case of I/O error. |
---|
Returns current ending timestamp. This value is not constant.
IOException | Thrown in case of I/O error. |
---|
Returns the underlying round robin archive. Robins are used to store actual archive values on a per-datasource basis.
dsIndex | Index of the datasource in the RRD. |
---|
Returns the number of archive rows.
IOException | Thrown in case of I/O error. |
---|
Required to implement RrdUpdater interface. You should never call this method directly.
Returns the underlying storage (backend) object which actually performs all I/O operations.
Returns current starting timestamp. This value is not constant.
IOException | Thrown in case of I/O error. |
---|
Returns the number of archive steps.
IOException | Thrown in case of I/O error. |
---|
Returns archive X-files factor.
IOException | Thrown in case of I/O error. |
---|
Sets X-files factor to a new value.
xff | New X-files factor value. Must be >= 0 and < 1. |
---|
IOException | Thrown in case of I/O error |
---|