public class DsDef extends Object
For the complete explanation of all source definition parameters, see RRDTool's rrdcreate man page.
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)
Checks if two datasource definitions are equal.
|
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() |
public DsDef(String dsName, DsType dsType, long heartbeat, double minValue, double maxValue)
Creates new data source definition object. This object should be passed as argument
to 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 getDsName()
public DsType getDsType()
public long getHeartbeat()
public double getMinValue()
public double getMaxValue()
public String dump()
public boolean equals(Object obj)
Copyright © 2015. All rights reserved.