java.lang.Object | |
↳ | org.rrd4j.core.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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates new data source definition object. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns string representing source definition (RRDTool format).
| |||||||||||
Checks if two datasource definitions are equal.
| |||||||||||
Returns data source name.
| |||||||||||
Returns source type.
| |||||||||||
Returns source heartbeat.
| |||||||||||
Returns maximal calculated source value.
| |||||||||||
Returns minimal calculated source value.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
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 | Hearbeat |
minValue | Minimal value. Use Double.NaN if unknown. |
maxValue | Maximal value. Use Double.NaN if unknown.
|
Returns string representing source definition (RRDTool format).
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.
obj | Archive definition to compare with. |
---|
true
if archive definitions are equal,
false
otherwise.
Returns source type.
Returns source heartbeat.
Returns maximal calculated source value.
Returns minimal calculated source value.