org.rrd4j.core
Class RrdFileBackendFactory
java.lang.Object
org.rrd4j.core.RrdBackendFactory
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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RrdFileBackendFactory
public RrdFileBackendFactory()
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.