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 boolean
formatEquals(AbstractDS ds)
Format equals.java.lang.Double
getLastDs()
Gets the last data source value.java.lang.Double
getMax()
Gets the maximum value.java.lang.Double
getMin()
Gets the minimum value.java.lang.Long
getMinHeartbeat()
Gets the minimum heartbeat.java.lang.String
getName()
Gets the name.java.lang.Long
getUnknownSec()
Gets the unknown seconds.java.lang.Double
getValue()
Gets the value.abstract boolean
isCounter()
Checks if the data source is counter.void
setLastDs(java.lang.Double lastDs)
Sets the last data source value.void
setMax(java.lang.Double max)
Sets the maximum value.void
setMin(java.lang.Double min)
Sets the minimum value.void
setMinHeartbeat(java.lang.Long minHeartbeat)
Sets the minimum heartbeat.void
setName(java.lang.String name)
Sets the name.void
setUnknownSec(java.lang.Long unknownSec)
Sets the unknown seconds.void
setValue(java.lang.Double value)
Sets the value.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Gets the name.- Returns:
- the name
-
setName
public void setName(java.lang.String name)
Sets the name.The XML may contain spaces that must be removed.
- Parameters:
name
- the new name
-
getMinHeartbeat
public java.lang.Long getMinHeartbeat()
Gets the minimum heartbeat.- Returns:
- the minimum heartbeat
-
setMinHeartbeat
public void setMinHeartbeat(java.lang.Long minHeartbeat)
Sets the minimum heartbeat.- Parameters:
minHeartbeat
- the new minimum heartbeat
-
getMin
public java.lang.Double getMin()
Gets the minimum value.- Returns:
- the minimum value
-
setMin
public void setMin(java.lang.Double min)
Sets the minimum value.- Parameters:
min
- the new minimum value
-
getMax
public java.lang.Double getMax()
Gets the maximum value.- Returns:
- the maximum value
-
setMax
public void setMax(java.lang.Double max)
Sets the maximum value.- Parameters:
max
- the new maximum value
-
getLastDs
public java.lang.Double getLastDs()
Gets the last data source value.- Returns:
- the last data source time stamp
-
setLastDs
public void setLastDs(java.lang.Double lastDs)
Sets the last data source value.- Parameters:
lastDs
- the new last data source value
-
getValue
public java.lang.Double getValue()
Gets the value.- Returns:
- the value
-
setValue
public void setValue(java.lang.Double value)
Sets the value.- Parameters:
value
- the new value
-
getUnknownSec
public java.lang.Long getUnknownSec()
Gets the unknown seconds.- Returns:
- the unknown seconds
-
setUnknownSec
public void setUnknownSec(java.lang.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
-
-