public class RrdJRobin14FileBackendFactory extends RrdBackendFactory
RrdFileBackend objects. This was the default
backend factory in JRobin before 1.4.0 release.| Modifier and Type | Field and Description |
|---|---|
static String |
NAME
factory name, "FILE"
|
| Constructor and Description |
|---|
RrdJRobin14FileBackendFactory() |
RrdJRobin14FileBackendFactory(RrdJRobin14FileBackend.LockMode lockMode) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
exists(String path)
Method to determine if a file with the given path already exists.
|
String |
getFactoryName()
Returns the name of this factory.
|
protected RrdBackend |
open(String path,
boolean readOnly)
Creates RrdFileBackend object for the given file path.
|
String |
toString() |
getDefaultFactory, getFactory, isInstanceCreated, registerAndSetAsDefaultFactory, registerFactory, setDefaultFactorypublic static final String NAME
public RrdJRobin14FileBackendFactory()
public RrdJRobin14FileBackendFactory(RrdJRobin14FileBackend.LockMode lockMode)
protected RrdBackend open(String path, boolean readOnly) throws IOException
open in class RrdBackendFactorypath - 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 RrdBackendFactorypath - File pathpublic String getFactoryName()
getFactoryName in class RrdBackendFactorypublic String toString()
toString in class RrdBackendFactory