org.rrd4j.core
Class RrdFileBackendFactory

java.lang.Object
  extended by org.rrd4j.core.RrdBackendFactory
      extended by org.rrd4j.core.RrdFileBackendFactory
Direct Known Subclasses:
RrdNioBackendFactory, RrdRandomAccessFileBackendFactory

public abstract class RrdFileBackendFactory
extends RrdBackendFactory

An abstract backend factory which is used to store RRD data to ordinary files on the disk.

Every backend factory storing RRD data as ordinary files should inherit from it, some check are done in the code for instanceof.


Constructor Summary
RrdFileBackendFactory()
           
 
Method Summary
protected  boolean exists(String path)
          Method to determine if a file with the given path already exists.
protected  boolean shouldValidateHeader(String path)
          Determines if the header should be validated.
 
Methods inherited from class org.rrd4j.core.RrdBackendFactory
getDefaultFactory, getFactory, getName, open, registerAndSetAsDefaultFactory, registerFactory, setDefaultFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RrdFileBackendFactory

public RrdFileBackendFactory()
Method Detail

exists

protected boolean exists(String path)
Method to determine if a file with the given path already exists.

Specified by:
exists in class RrdBackendFactory
Parameters:
path - File path
Returns:
True, if such file exists, false otherwise.

shouldValidateHeader

protected boolean shouldValidateHeader(String path)
                                throws IOException
Description copied from class: RrdBackendFactory
Determines if the header should be validated.

Specified by:
shouldValidateHeader in class RrdBackendFactory
Parameters:
path - Storage path
Returns:
True, if the header should be validated for this factory
Throws:
IOException - if header validation fails


Copyright © 2011. All Rights Reserved.