|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rrd4j.core.RrdBackendFactory
org.rrd4j.core.RrdFileBackendFactory
org.rrd4j.core.RrdRandomAccessFileBackendFactory
public class RrdRandomAccessFileBackendFactory
Factory class which creates actual RrdRandomAccessFileBackend
objects. This was the default
backend factory in Rrd4j before 1.4.0 release.
Constructor Summary | |
---|---|
RrdRandomAccessFileBackendFactory()
|
Method Summary | |
---|---|
protected boolean |
exists(String path)
Method to determine if a file with the given path already exists. |
String |
getName()
Returns the name (primary ID) for the factory. |
protected RrdBackend |
open(String path,
boolean readOnly)
Creates RrdFileBackend object for the given file path. |
protected boolean |
shouldValidateHeader(String path)
Determines if the header should be validated. |
Methods inherited from class org.rrd4j.core.RrdBackendFactory |
---|
getDefaultFactory, getFactory, registerAndSetAsDefaultFactory, registerFactory, setDefaultFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RrdRandomAccessFileBackendFactory()
Method Detail |
---|
protected RrdBackend open(String path, boolean readOnly) throws IOException
open
in class RrdBackendFactory
path
- File pathreadOnly
- True, if the file should be accessed in read/only mode.
False otherwise.
IOException
- Thrown in case of I/O error.protected boolean exists(String path)
exists
in class RrdFileBackendFactory
path
- File path
protected boolean shouldValidateHeader(String path) throws IOException
RrdBackendFactory
shouldValidateHeader
in class RrdFileBackendFactory
path
- Storage path
IOException
- if header validation failspublic String getName()
RrdBackendFactory
getName
in class RrdBackendFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |