|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rrd.RrdDemo
Class to test all Rrd
methods. This test consists of several steps:
If the test passes without exceptions, you are ready to use the full power of RRDTOOL using simple Java interface.
This class is part of RRDJTool package freely available from http://marvin.datagate.co.yu:8081/rrdjtool.
Constructor Summary | |
RrdDemo()
|
Method Summary | |
static void |
main(java.lang.String[] args)
Used to conduct Rrd test. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RrdDemo()
Method Detail |
public static void main(java.lang.String[] args) throws RrdException
Rrd
test.Example:
java rrd.RrdDemo /tmp/test.rrdThe test is successful if:
The graph should look like this (but not exactly, RRD database is updated with random values):
Possible problems The only problem you should expect is an UnsatisfiedLinkException. This exception occurs if JVM cannot find two requested shared libraries:
If you find both libraries on your file system, check LD_LIBRARY_PATH environment variable and update it so that both libraries can be found by JVM at runtime.
args
- Full path to the RRD database which will be created during the test.
All parent directories must exist.
RrdException
- Thrown if anything fails.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |