public class RrdBerkeleyDbBackendFactory extends RrdBackendFactory
RrdBackendFactory
that uses
Oracle Berkeley DB Java Edition
to read data. Construct a BerkeleyDB Database
object and pass it via the constructor.Constructor and Description |
---|
RrdBerkeleyDbBackendFactory(Database rrdDatabase)
Constructor for RrdBerkeleyDbBackendFactory.
|
Modifier and Type | Method and Description |
---|---|
void |
delete(String path)
delete.
|
protected boolean |
exists(String path)
Determines if a storage with the given path already exists.
|
String |
getName()
getName.
|
protected RrdBackend |
open(String path,
boolean readOnly)
Creates RrdBackend object for the given storage path.
|
protected boolean |
shouldValidateHeader(String path)
Determines if the header should be validated.
|
getDefaultFactory, getFactory, registerAndSetAsDefaultFactory, registerFactory, setDefaultFactory
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.protected boolean exists(String path) throws IOException
exists
in class RrdBackendFactory
path
- Storage pathIOException
- if any.protected boolean shouldValidateHeader(String path)
shouldValidateHeader
in class RrdBackendFactory
path
- Storage pathpublic String getName()
getName.
getName
in class RrdBackendFactory
String
"BERKELEY".Copyright © 2015. All rights reserved.