|
|||||||||
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.RrdBerkeleyDbBackendFactory
public class RrdBerkeleyDbBackendFactory
RrdBackendFactory
that uses
Oracle Berkeley DB Java Edition
to read data. Construct a BerkeleyDB {#link Database} object and pass it via the constructor.
Constructor Summary | |
---|---|
RrdBerkeleyDbBackendFactory(com.sleepycat.je.Database rrdDatabase)
|
Method Summary | |
---|---|
void |
delete(String path)
|
protected boolean |
exists(String path)
Checks if the RRD with the given id (path) already exists in the database. |
String |
getName()
Returns the name (primary ID) for the factory. |
protected RrdBackend |
open(String path,
boolean readOnly)
Creates new RrdBerkeleyDbBackend object for the given id (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 RrdBerkeleyDbBackendFactory(com.sleepycat.je.Database rrdDatabase)
Method Detail |
---|
protected RrdBackend open(String path, boolean readOnly) throws IOException
open
in class RrdBackendFactory
path
- Storage pathreadOnly
- True, if the storage should be accessed in read/only mode.
False otherwise.
IOException
- Thrown in case of I/O error.public void delete(String path)
protected boolean exists(String path) throws IOException
exists
in class RrdBackendFactory
path
- Storage path
IOException
protected boolean shouldValidateHeader(String path)
RrdBackendFactory
shouldValidateHeader
in class RrdBackendFactory
path
- Storage path
public String getName()
RrdBackendFactory
getName
in class RrdBackendFactory
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |