public class

RrdBerkeleyDbBackendFactory

extends RrdBackendFactory
java.lang.Object
   ↳ org.rrd4j.core.RrdBackendFactory
     ↳ org.rrd4j.core.RrdBerkeleyDbBackendFactory

Class Overview

RrdBackendFactory that uses Oracle Berkeley DB Java Edition to read data. Call init() after instantiation and destroy() when tearing down (or when using Spring use init-method and destroy-method).

NOTE: you can set the used Berkeley DB name using setRrdDatabaseName(String)

Summary

Public Constructors
RrdBerkeleyDbBackendFactory()
Public Methods
void delete(String path)
void destroy()
String getName()
Returns the name (primary ID) for the factory.
void init()
void setHomeDirectory(String homeDirectory)
void setRrdDatabaseName(String rrdDatabaseName)
Protected Methods
boolean exists(String path)
Checks if the RRD with the given id (path) already exists in the database.
RrdBackend open(String path, boolean readOnly)
Creates new RrdBerkeleyDbBackend object for the given id (path).
boolean shouldValidateHeader(String path)
Determines if the header should be validated.
[Expand]
Inherited Methods
From class org.rrd4j.core.RrdBackendFactory
From class java.lang.Object

Public Constructors

public RrdBerkeleyDbBackendFactory ()

Public Methods

public void delete (String path)

public void destroy ()

Throws
Exception

public String getName ()

Returns the name (primary ID) for the factory.

Returns
  • Name of the factory.

public void init ()

Throws
Exception

public void setHomeDirectory (String homeDirectory)

public void setRrdDatabaseName (String rrdDatabaseName)

Protected Methods

protected boolean exists (String path)

Checks if the RRD with the given id (path) already exists in the database.

Parameters
path Storage path
Returns
  • True, if such storage exists, false otherwise.
Throws
IOException

protected RrdBackend open (String path, boolean readOnly)

Creates new RrdBerkeleyDbBackend object for the given id (path).

Parameters
path Storage path
readOnly True, if the storage should be accessed in read/only mode. False otherwise.
Returns
  • Backend object which handles all I/O operations for the given storage path
Throws
IOException

protected boolean shouldValidateHeader (String path)

Determines if the header should be validated.

Returns
  • True, if the header should be validated for this factory