org.jrobin.core

Class RrdFileBackendFactory

public class RrdFileBackendFactory extends RrdBackendFactory

Factory class which creates actual RrdFileBackend objects. This was the default backend factory in JRobin before 1.4.0 release.
Field Summary
static StringNAME
factory name, "FILE"
Method Summary
protected booleanexists(String path)
Method to determine if a file with the given path already exists.
StringgetFactoryName()
Returns the name of this factory.
protected RrdBackendopen(String path, boolean readOnly)
Creates RrdFileBackend object for the given file path.

Field Detail

NAME

public static final String NAME
factory name, "FILE"

Method Detail

exists

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.

getFactoryName

public String getFactoryName()
Returns the name of this factory.

Returns: Factory name (equals to string "FILE")

open

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.