public class

RrdFileBackendFactory

extends RrdBackendFactory
java.lang.Object
   ↳ org.rrd4j.core.RrdBackendFactory
     ↳ org.rrd4j.core.RrdFileBackendFactory
Known Direct Subclasses

Class Overview

Factory class which creates actual RrdFileBackend objects. This was the default backend factory in Rrd4j before 1.4.0 release.

Summary

Public Constructors
RrdFileBackendFactory()
Public Methods
String getName()
Returns the name (primary ID) for the factory.
Protected Methods
boolean exists(String path)
Method to determine if a file with the given path already exists.
RrdBackend open(String path, boolean readOnly)
Creates RrdFileBackend object for the given file 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 RrdFileBackendFactory ()

Public Methods

public String getName ()

Returns the name (primary ID) for the factory.

Returns
  • Name of the factory.

Protected Methods

protected boolean exists (String path)

Method to determine if a file with the given path already exists.

Parameters
path File path
Returns
  • True, if such file exists, false otherwise.

protected RrdBackend open (String path, boolean readOnly)

Creates RrdFileBackend object for the given file path.

Parameters
path File path
readOnly True, if the file should be accessed in read/only mode. False otherwise.
Returns
  • RrdFileBackend object which handles all I/O operations for the given file path
Throws
IOException Thrown in case of I/O error.

protected boolean shouldValidateHeader (String path)

Determines if the header should be validated.

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