public class DsDef extends Object
For the complete explanation of all source definition parameters, see RRDTool's rrdcreate man page.
| Modifier and Type | Field and Description |
|---|---|
(package private) static String |
FORCE_ZEROS_FOR_NANS_SUFFIX |
| Constructor and Description |
|---|
DsDef(String dsName,
DsType dsType,
long heartbeat,
double minValue,
double maxValue)
Creates new data source definition object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
dump()
Returns string representing source definition (RRDTool format).
|
boolean |
equals(Object obj) |
(package private) boolean |
exactlyEqual(DsDef def) |
String |
getDsName()
Returns data source name.
|
DsType |
getDsType()
Returns source type.
|
long |
getHeartbeat()
Returns source heartbeat.
|
double |
getMaxValue()
Returns maximal calculated source value.
|
double |
getMinValue()
Returns minimal calculated source value.
|
int |
hashCode() |
static final String FORCE_ZEROS_FOR_NANS_SUFFIX
public DsDef(String dsName, DsType dsType, long heartbeat, double minValue, double maxValue)
addDatasource() method of RrdDb
object.
For the complete explanation of all source definition parameters, see RRDTool's rrdcreate man page
IMPORTANT NOTE: If datasource name ends with '!', corresponding archives will never store NaNs as datasource values. In that case, NaN datasource values will be silently replaced with zeros by the framework.
dsName - Data source name.dsType - Data source type. Valid values are "COUNTER", "GAUGE", "DERIVE" and "ABSOLUTE"
(these string constants are conveniently defined in the DsType class).heartbeat - HearbeatminValue - Minimal value. Use Double.NaN if unknown.maxValue - Maximal value. Use Double.NaN if unknown.public String dump()
public boolean equals(Object obj)
Checks if two datasource definitions are equal. Source definitions are treated as equal if they have the same source name. It is not possible to create RRD with two equal archive definitions.
boolean exactlyEqual(DsDef def)
public String getDsName()
public DsType getDsType()
public long getHeartbeat()
public double getMaxValue()
public double getMinValue()