rrd
Class RrdDemo

java.lang.Object
  |
  +--rrd.RrdDemo

public class RrdDemo
extends java.lang.Object

Class to test all Rrd methods. This test consists of several steps:

  1. Single RRD database is created.
  2. Database is updated more than 20.000 times.
  3. Last update time was tested.
  4. Sample graph is created.
  5. Some data is fetched from the RRD database and printed on stdout.

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.

Version:
1.0.1 (Feb 17, 2003)
Author:
Sasa Markovic
sasam@dnseurope.co.uk


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

RrdDemo

public RrdDemo()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws RrdException
Used to conduct Rrd test.

Example:

 java rrd.RrdDemo /tmp/test.rrd
 
The 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.

Parameters:
args - Full path to the RRD database which will be created during the test. All parent directories must exist.
Throws:
RrdException - Thrown if anything fails.