|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opennms.netmgt.rrd.jrobin.JRobinRrdStrategy
public class JRobinRrdStrategy
Provides a JRobin based implementation of RrdStrategy. It uses JRobin 1.4 in FILE mode (NIO is too memory consuming for the large number of files that we open)
| Constructor Summary | |
|---|---|
JRobinRrdStrategy()
|
|
| Method Summary | |
|---|---|
void |
closeFile(java.lang.Object rrdFile)
Closes the JRobin RrdDb. |
java.lang.Object |
createDefinition(java.lang.String creator,
java.lang.String directory,
java.lang.String rrdName,
int step,
java.util.List<org.opennms.netmgt.rrd.RrdDataSource> dataSources,
java.util.List<java.lang.String> rraList)
|
void |
createFile(java.lang.Object rrdDef)
Creates the JRobin RrdDb from the def by opening the file and then closing. |
java.io.InputStream |
createGraph(java.lang.String command,
java.io.File workDir)
|
protected org.jrobin.graph.RrdGraphDef |
createGraphDef(java.io.File workDir,
java.lang.String[] commandArray)
|
org.opennms.netmgt.rrd.RrdGraphDetails |
createGraphReturnDetails(java.lang.String command,
java.io.File workDir)
This constructs a graphDef by parsing the rrdtool style command and using the values to create the JRobin graphDef. |
java.lang.Double |
fetchLastValue(java.lang.String fileName,
java.lang.String ds,
int interval)
Fetch the last value from the JRobin RrdDb file. |
java.lang.Double |
fetchLastValueInRange(java.lang.String fileName,
java.lang.String ds,
int interval,
int range)
|
java.lang.String |
getDefaultFileExtension()
|
int |
getGraphRightOffset()
|
int |
getGraphTopOffsetWithText()
|
java.lang.String |
getStats()
This implementation does not track any stats. |
void |
graphicsInitialize()
|
void |
initialize()
Initialized the RrdDb to use the FILE factory because the NIO factory uses too much memory for our implementation. |
java.lang.Object |
openFile(java.lang.String fileName)
Opens the JRobin RrdDb by name and returns it. |
void |
updateFile(java.lang.Object rrdFile,
java.lang.String owner,
java.lang.String data)
Creates a sample from the JRobin RrdDb and passes in the data provided. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JRobinRrdStrategy()
| Method Detail |
|---|
public void closeFile(java.lang.Object rrdFile)
throws java.lang.Exception
closeFile in interface org.opennms.netmgt.rrd.RrdStrategyjava.lang.Exception
public java.lang.Object createDefinition(java.lang.String creator,
java.lang.String directory,
java.lang.String rrdName,
int step,
java.util.List<org.opennms.netmgt.rrd.RrdDataSource> dataSources,
java.util.List<java.lang.String> rraList)
throws java.lang.Exception
createDefinition in interface org.opennms.netmgt.rrd.RrdStrategyjava.lang.Exception
public void createFile(java.lang.Object rrdDef)
throws java.lang.Exception
createFile in interface org.opennms.netmgt.rrd.RrdStrategyjava.lang.Exception
public java.lang.Object openFile(java.lang.String fileName)
throws java.lang.Exception
openFile in interface org.opennms.netmgt.rrd.RrdStrategyjava.lang.Exception
public void updateFile(java.lang.Object rrdFile,
java.lang.String owner,
java.lang.String data)
throws java.lang.Exception
updateFile in interface org.opennms.netmgt.rrd.RrdStrategyjava.lang.Exception
public void initialize()
throws java.lang.Exception
initialize in interface org.opennms.netmgt.rrd.RrdStrategyjava.lang.Exception
public void graphicsInitialize()
throws java.lang.Exception
graphicsInitialize in interface org.opennms.netmgt.rrd.RrdStrategyjava.lang.Exception
public java.lang.Double fetchLastValue(java.lang.String fileName,
java.lang.String ds,
int interval)
throws java.lang.NumberFormatException,
org.opennms.netmgt.rrd.RrdException
fetchLastValue in interface org.opennms.netmgt.rrd.RrdStrategyjava.lang.NumberFormatException
org.opennms.netmgt.rrd.RrdException
public java.lang.Double fetchLastValueInRange(java.lang.String fileName,
java.lang.String ds,
int interval,
int range)
throws java.lang.NumberFormatException,
org.opennms.netmgt.rrd.RrdException
fetchLastValueInRange in interface org.opennms.netmgt.rrd.RrdStrategyjava.lang.NumberFormatException
org.opennms.netmgt.rrd.RrdException
public java.io.InputStream createGraph(java.lang.String command,
java.io.File workDir)
throws java.io.IOException,
org.opennms.netmgt.rrd.RrdException
createGraph in interface org.opennms.netmgt.rrd.RrdStrategyjava.io.IOException
org.opennms.netmgt.rrd.RrdException
public org.opennms.netmgt.rrd.RrdGraphDetails createGraphReturnDetails(java.lang.String command,
java.io.File workDir)
throws java.io.IOException,
org.opennms.netmgt.rrd.RrdException
createGraphReturnDetails in interface org.opennms.netmgt.rrd.RrdStrategyjava.io.IOException
org.opennms.netmgt.rrd.RrdException
protected org.jrobin.graph.RrdGraphDef createGraphDef(java.io.File workDir,
java.lang.String[] commandArray)
throws org.jrobin.core.RrdException
org.jrobin.core.RrdExceptionpublic java.lang.String getStats()
getStats in interface org.opennms.netmgt.rrd.RrdStrategypublic int getGraphRightOffset()
getGraphRightOffset in interface org.opennms.netmgt.rrd.RrdStrategypublic int getGraphTopOffsetWithText()
getGraphTopOffsetWithText in interface org.opennms.netmgt.rrd.RrdStrategypublic java.lang.String getDefaultFileExtension()
getDefaultFileExtension in interface org.opennms.netmgt.rrd.RrdStrategy
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||