Package org.opennms.netmgt.rrd.model.v1
Class RRDv1
- java.lang.Object
-
- org.opennms.netmgt.rrd.model.AbstractRRD
-
- org.opennms.netmgt.rrd.model.v1.RRDv1
-
public class RRDv1 extends AbstractRRD
The Class RRD (Round Robin Database) supports version 1 only (JRobin).- Author:
- Alejandro Galue
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<DS>
dataSources
The data sources.java.util.List<RRA>
rras
The RRAs.
-
Constructor Summary
Constructors Constructor Description RRDv1()
Instantiates a new RRDv1.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDataSource(AbstractDS ds)
Adds the data source.void
addRRA(AbstractRRA rra)
Adds the RRA.protected AbstractRRD
createRRD()
Creates the RRD.AbstractDS
getDataSource(int index)
Gets the data source.java.util.List<DS>
getDataSources()
Gets the data sources.java.util.List<RRA>
getRras()
Gets the RRAs.void
setDataSources(java.util.List<DS> dataSources)
Sets the data sources.void
setRras(java.util.List<RRA> rras)
Sets the RRAs.-
Methods inherited from class org.opennms.netmgt.rrd.model.AbstractRRD
findRowByTimestamp, findTimestampByRow, formatEquals, getEndTimestamp, getIndex, getLastUpdate, getMergeableRRA, getStartTimestamp, getStep, getVersion, hasEqualsRras, hasMergeableRRAs, merge, merge, reset, setLastUpdate, setStep, setVersion, split
-
-
-
-
Method Detail
-
getRras
public java.util.List<RRA> getRras()
Description copied from class:AbstractRRD
Gets the RRAs.- Specified by:
getRras
in classAbstractRRD
- Returns:
- the RRAs
-
setRras
public void setRras(java.util.List<RRA> rras)
Sets the RRAs.- Parameters:
rras
- the new RRAs
-
getDataSources
public java.util.List<DS> getDataSources()
Description copied from class:AbstractRRD
Gets the data sources.- Specified by:
getDataSources
in classAbstractRRD
- Returns:
- the data sources
-
setDataSources
public void setDataSources(java.util.List<DS> dataSources)
Sets the data sources.- Parameters:
dataSources
- the new data sources
-
createRRD
protected AbstractRRD createRRD()
Description copied from class:AbstractRRD
Creates the RRD.- Specified by:
createRRD
in classAbstractRRD
- Returns:
- the abstract RRD
-
addDataSource
public void addDataSource(AbstractDS ds)
Description copied from class:AbstractRRD
Adds the data source.- Specified by:
addDataSource
in classAbstractRRD
- Parameters:
ds
- the DS
-
getDataSource
public AbstractDS getDataSource(int index)
Description copied from class:AbstractRRD
Gets the data source.- Specified by:
getDataSource
in classAbstractRRD
- Parameters:
index
- the index- Returns:
- the data source
-
addRRA
public void addRRA(AbstractRRA rra)
Description copied from class:AbstractRRD
Adds the RRA.- Specified by:
addRRA
in classAbstractRRD
- Parameters:
rra
- the RRA
-
-