Package org.opennms.netmgt.rrd.model.v1
Class DS
- java.lang.Object
-
- org.opennms.netmgt.rrd.model.AbstractDS
-
- org.opennms.netmgt.rrd.model.v1.DS
-
public class DS extends AbstractDS
The Class DS (Data Source).- ds.decl: name, type, minimal_heartbeat, min, max, last_ds, value, unknown_sec
- Author:
- Alejandro Galue
-
-
Constructor Summary
Constructors Constructor Description DS()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanformatEquals(DS ds)Format equals.DSTypegetType()Gets the type.booleanisCounter()Checks if the data source is counter.voidsetType(String type)Sets the type.voidsetType(DSType type)Sets the type.-
Methods inherited from class org.opennms.netmgt.rrd.model.AbstractDS
formatEquals, getLastDs, getMax, getMin, getMinHeartbeat, getName, getUnknownSec, getValue, setLastDs, setMax, setMin, setMinHeartbeat, setName, setUnknownSec, setValue
-
-
-
-
Method Detail
-
getType
public DSType getType()
Gets the type.- Returns:
- the type
-
setType
public void setType(DSType type)
Sets the type.- Parameters:
type- the new type
-
setType
public void setType(String type)
Sets the type.- Parameters:
type- the new type
-
formatEquals
public boolean formatEquals(DS ds)
Format equals.- Parameters:
ds- the DS object- Returns:
- true, if successful
-
isCounter
public boolean isCounter()
Description copied from class:AbstractDSChecks if the data source is counter.- Specified by:
isCounterin classAbstractDS- Returns:
- true, if the data source is a counter
-
-