|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rrd4j.core.DsDef
public class DsDef
Class to represent single data source definition within the RRD. Datasource definition consists of the following five elements:
For the complete explanation of all source definition parameters, see RRDTool's rrdcreate man page.
Constructor Summary | |
---|---|
DsDef(String dsName,
DsType dsType,
long heartbeat,
double minValue,
double maxValue)
Creates new data source definition object. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
public String getDsName()
public DsType getDsType()
public long getHeartbeat()
public double getMinValue()
public double getMaxValue()
public String dump()
public boolean equals(Object obj)
equals
in class Object
obj
- Archive definition to compare with.
true
if archive definitions are equal,
false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |