Package org.opennms.netmgt.rrd.model
Class AbstractDS
- java.lang.Object
-
- org.opennms.netmgt.rrd.model.AbstractDS
-
-
Constructor Summary
Constructors Constructor Description AbstractDS()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanformatEquals(AbstractDS ds)Format equals.DoublegetLastDs()Gets the last data source value.DoublegetMax()Gets the maximum value.DoublegetMin()Gets the minimum value.LonggetMinHeartbeat()Gets the minimum heartbeat.StringgetName()Gets the name.LonggetUnknownSec()Gets the unknown seconds.DoublegetValue()Gets the value.abstract booleanisCounter()Checks if the data source is counter.voidsetLastDs(Double lastDs)Sets the last data source value.voidsetMax(Double max)Sets the maximum value.voidsetMin(Double min)Sets the minimum value.voidsetMinHeartbeat(Long minHeartbeat)Sets the minimum heartbeat.voidsetName(String name)Sets the name.voidsetUnknownSec(Long unknownSec)Sets the unknown seconds.voidsetValue(Double value)Sets the value.
-
-
-
Method Detail
-
getName
public String getName()
Gets the name.- Returns:
- the name
-
setName
public void setName(String name)
Sets the name.The XML may contain spaces that must be removed.
- Parameters:
name- the new name
-
getMinHeartbeat
public Long getMinHeartbeat()
Gets the minimum heartbeat.- Returns:
- the minimum heartbeat
-
setMinHeartbeat
public void setMinHeartbeat(Long minHeartbeat)
Sets the minimum heartbeat.- Parameters:
minHeartbeat- the new minimum heartbeat
-
getMin
public Double getMin()
Gets the minimum value.- Returns:
- the minimum value
-
setMin
public void setMin(Double min)
Sets the minimum value.- Parameters:
min- the new minimum value
-
getMax
public Double getMax()
Gets the maximum value.- Returns:
- the maximum value
-
setMax
public void setMax(Double max)
Sets the maximum value.- Parameters:
max- the new maximum value
-
getLastDs
public Double getLastDs()
Gets the last data source value.- Returns:
- the last data source time stamp
-
setLastDs
public void setLastDs(Double lastDs)
Sets the last data source value.- Parameters:
lastDs- the new last data source value
-
getValue
public Double getValue()
Gets the value.- Returns:
- the value
-
setValue
public void setValue(Double value)
Sets the value.- Parameters:
value- the new value
-
getUnknownSec
public Long getUnknownSec()
Gets the unknown seconds.- Returns:
- the unknown seconds
-
setUnknownSec
public void setUnknownSec(Long unknownSec)
Sets the unknown seconds.- Parameters:
unknownSec- the new unknown seconds
-
isCounter
public abstract boolean isCounter()
Checks if the data source is counter.- Returns:
- true, if the data source is a counter
-
formatEquals
public boolean formatEquals(AbstractDS ds)
Format equals.- Parameters:
ds- the DS object- Returns:
- true, if successful
-
-