public class ArcDef extends Object
| Constructor and Description |
|---|
ArcDef(ConsolFun consolFun,
double xff,
int steps,
int rows)
Creates new archive definition object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
dump()
Returns string representing archive definition (RRDTool format).
|
boolean |
equals(Object obj) |
(package private) boolean |
exactlyEqual(ArcDef def) |
ConsolFun |
getConsolFun()
Returns consolidation function.
|
int |
getRows()
Returns the number of rows (aggregated values) stored in the archive.
|
int |
getSteps()
Returns the number of primary RRD steps which complete a single archive step.
|
double |
getXff()
Returns the X-files factor.
|
int |
hashCode() |
(package private) void |
setRows(int rows) |
public ArcDef(ConsolFun consolFun, double xff, int steps, int rows)
addArchive() method of RrdDb object.
For the complete explanation of all archive definition parameters, see RRDTool's rrdcreate man page
consolFun - Consolidation function. Allowed values are "AVERAGE", "MIN", "MAX", "LAST"
and "TOTAL" (these string constants are conveniently defined in the ConsolFun class).xff - X-files factor, between 0 and 1.steps - Number of archive steps.rows - Number of archive rows.public String dump()
public boolean equals(Object obj)
Checks if two archive definitions are equal. Archive definitions are considered equal if they have the same number of steps and the same consolidation function. It is not possible to create RRD with two equal archive definitions.
boolean exactlyEqual(ArcDef def)
public ConsolFun getConsolFun()
public int getRows()
public int getSteps()
public double getXff()
void setRows(int rows)