Package org.opennms.netmgt.rrd.model.v3
Class DS
- java.lang.Object
- 
- org.opennms.netmgt.rrd.model.AbstractDS
- 
- org.opennms.netmgt.rrd.model.v3.DS
 
 
- 
 public class DS extends AbstractDS The Class DS (Data Source).- ds.decl.normal: minimal_heartbeat, min, max
- ds.decl.cdef: cdef
- ds.decl: name, type, (ds.decl.normal | ds.decl.cdef), last_ds, value, unknown_sec
 - Author:
- Alejandro Galue 
 
- 
- 
Constructor SummaryConstructors Constructor Description DS()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanformatEquals(DS ds)Format equals.java.lang.StringgetCdef()Gets the CDEF.DSTypegetType()Gets the type.booleanisCounter()Checks if the data source is counter.voidsetCdef(java.lang.String cdef)Sets the CDEF.voidsetType(java.lang.String type)Sets the type.voidsetType(DSType type)Sets the type.- 
Methods inherited from class org.opennms.netmgt.rrd.model.AbstractDSformatEquals, getLastDs, getMax, getMin, getMinHeartbeat, getName, getUnknownSec, getValue, setLastDs, setMax, setMin, setMinHeartbeat, setName, setUnknownSec, setValue
 
- 
 
- 
- 
- 
Method Detail- 
getTypepublic DSType getType() Gets the type.- Returns:
- the type
 
 - 
setTypepublic void setType(DSType type) Sets the type.- Parameters:
- type- the new type
 
 - 
setTypepublic void setType(java.lang.String type) Sets the type.- Parameters:
- type- the new type
 
 - 
getCdefpublic java.lang.String getCdef() Gets the CDEF.- Returns:
- the CDEF
 
 - 
setCdefpublic void setCdef(java.lang.String cdef) Sets the CDEF.The XML may contain spaces that must be removed. - Parameters:
- cdef- the new CDEF
 
 - 
formatEqualspublic boolean formatEquals(DS ds) Format equals.- Parameters:
- ds- the DS object
- Returns:
- true, if successful
 
 - 
isCounterpublic boolean isCounter() Description copied from class:AbstractDSChecks if the data source is counter.- Specified by:
- isCounterin class- AbstractDS
- Returns:
- true, if the data source is a counter
 
 
- 
 
-