|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opennms.netmgt.rrd.rrdtool.JniRrdStrategy
public class JniRrdStrategy
Provides an rrdtool based implementation of RrdStrategy. It uses the existing JNI based single-threaded interface to write the rrdtool compatibile RRD files. The JNI interface takes command-like arguments and doesn't provide open files so the the Objects used to represent open files are really partial command strings See the individual methods for more details
| Constructor Summary | |
|---|---|
JniRrdStrategy()
|
|
| Method Summary | |
|---|---|
void |
closeFile(Object rrd)
The 'closes' the rrd file. |
Object |
createDefinition(String creator,
String directory,
String rrdName,
int step,
List<org.opennms.netmgt.rrd.RrdDataSource> dataSources,
List<String> rraList)
|
void |
createFile(Object rrdDef)
Creates a the rrd file from the rrdDefinition. |
InputStream |
createGraph(String command,
File workDir)
Executes the given graph command as process with workDir as the current directory. |
org.opennms.netmgt.rrd.RrdGraphDetails |
createGraphReturnDetails(String command,
File workDir)
|
Double |
fetchLastValue(String rrdFile,
String ds,
int interval)
Fetches the last value directly from the rrd file using the JNI Interface. |
Double |
fetchLastValue(String rrdFile,
String ds,
String consolidationFunction,
int interval)
|
Double |
fetchLastValueInRange(String rrdFile,
String ds,
int interval,
int range)
|
String |
getDefaultFileExtension()
|
int |
getGraphLeftOffset()
|
int |
getGraphRightOffset()
|
int |
getGraphTopOffsetWithText()
|
String |
getStats()
No stats are kept for this implementation. |
void |
graphicsInitialize()
|
void |
initialize()
Initialized the JNI Interface |
Category |
log()
|
Object |
openFile(String fileName)
The 'opens' the given rrd file. |
void |
promoteEnqueuedFiles(Collection<String> rrdFiles)
|
void |
updateFile(Object rrd,
String owner,
String data)
This 'updates' the given rrd file by providing data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JniRrdStrategy()
| Method Detail |
|---|
public void closeFile(Object rrd)
throws Exception
closeFile in interface org.opennms.netmgt.rrd.RrdStrategyException
public Object createDefinition(String creator,
String directory,
String rrdName,
int step,
List<org.opennms.netmgt.rrd.RrdDataSource> dataSources,
List<String> rraList)
throws Exception
createDefinition in interface org.opennms.netmgt.rrd.RrdStrategyException
public void createFile(Object rrdDef)
throws Exception
createFile in interface org.opennms.netmgt.rrd.RrdStrategyException
public Object openFile(String fileName)
throws Exception
openFile in interface org.opennms.netmgt.rrd.RrdStrategyException
public void updateFile(Object rrd,
String owner,
String data)
throws Exception
updateFile in interface org.opennms.netmgt.rrd.RrdStrategyException
public void initialize()
throws Exception
initialize in interface org.opennms.netmgt.rrd.RrdStrategyException
public void graphicsInitialize()
throws Exception
graphicsInitialize in interface org.opennms.netmgt.rrd.RrdStrategyException
public Double fetchLastValue(String rrdFile,
String ds,
int interval)
throws NumberFormatException,
org.opennms.netmgt.rrd.RrdException
fetchLastValue in interface org.opennms.netmgt.rrd.RrdStrategyNumberFormatException
org.opennms.netmgt.rrd.RrdException
public Double fetchLastValue(String rrdFile,
String ds,
String consolidationFunction,
int interval)
fetchLastValue in interface org.opennms.netmgt.rrd.RrdStrategy
public Double fetchLastValueInRange(String rrdFile,
String ds,
int interval,
int range)
throws NumberFormatException,
org.opennms.netmgt.rrd.RrdException
fetchLastValueInRange in interface org.opennms.netmgt.rrd.RrdStrategyNumberFormatException
org.opennms.netmgt.rrd.RrdException
public InputStream createGraph(String command,
File workDir)
throws IOException,
org.opennms.netmgt.rrd.RrdException
createGraph in interface org.opennms.netmgt.rrd.RrdStrategyIOException
org.opennms.netmgt.rrd.RrdExceptionpublic String getStats()
getStats in interface org.opennms.netmgt.rrd.RrdStrategypublic Category log()
public int getGraphLeftOffset()
getGraphLeftOffset 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 String getDefaultFileExtension()
getDefaultFileExtension in interface org.opennms.netmgt.rrd.RrdStrategy
public org.opennms.netmgt.rrd.RrdGraphDetails createGraphReturnDetails(String command,
File workDir)
throws IOException,
org.opennms.netmgt.rrd.RrdException
createGraphReturnDetails in interface org.opennms.netmgt.rrd.RrdStrategyIOException
org.opennms.netmgt.rrd.RrdExceptionpublic void promoteEnqueuedFiles(Collection<String> rrdFiles)
promoteEnqueuedFiles in interface org.opennms.netmgt.rrd.RrdStrategy
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||