|
||||||||
| 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<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. |
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 RrdStrategyException
public Object createDefinition(String creator,
String directory,
String rrdName,
int step,
List<RrdDataSource> dataSources,
List<String> rraList)
throws Exception
createDefinition in interface RrdStrategyException
public void createFile(Object rrdDef)
throws Exception
createFile in interface RrdStrategyException
public Object openFile(String fileName)
throws Exception
openFile in interface RrdStrategyException
public void updateFile(Object rrd,
String owner,
String data)
throws Exception
updateFile in interface RrdStrategyException
public void initialize()
throws Exception
initialize in interface RrdStrategyException
public void graphicsInitialize()
throws Exception
graphicsInitialize in interface RrdStrategyException
public Double fetchLastValue(String rrdFile,
String ds,
int interval)
throws NumberFormatException,
RrdException
fetchLastValue in interface RrdStrategyNumberFormatException
RrdException
public Double fetchLastValue(String rrdFile,
String ds,
String consolidationFunction,
int interval)
fetchLastValue in interface RrdStrategy
public Double fetchLastValueInRange(String rrdFile,
String ds,
int interval,
int range)
throws NumberFormatException,
RrdException
fetchLastValueInRange in interface RrdStrategyNumberFormatException
RrdException
public InputStream createGraph(String command,
File workDir)
throws IOException,
RrdException
createGraph in interface RrdStrategyIOException
RrdExceptionpublic String getStats()
getStats in interface RrdStrategypublic Category log()
public int getGraphLeftOffset()
getGraphLeftOffset in interface RrdStrategypublic int getGraphRightOffset()
getGraphRightOffset in interface RrdStrategypublic int getGraphTopOffsetWithText()
getGraphTopOffsetWithText in interface RrdStrategypublic String getDefaultFileExtension()
getDefaultFileExtension in interface RrdStrategy
public RrdGraphDetails createGraphReturnDetails(String command,
File workDir)
throws IOException,
RrdException
createGraphReturnDetails in interface RrdStrategyIOException
RrdExceptionpublic void promoteEnqueuedFiles(Collection<String> rrdFiles)
promoteEnqueuedFiles in interface RrdStrategy
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||