public class RrdNioBackendFactory extends RrdFileBackendFactory
RrdNioBackend objects. This is
the default factory since 1.4.0 version| Modifier and Type | Field | Description |
|---|---|---|
static int |
DEFAULT_SYNC_PERIOD |
Period in seconds between consecutive synchronizations when sync-mode
is set to SYNC_BACKGROUND.
|
static String |
NAME |
factory name, "NIO"
|
| Constructor | Description |
|---|---|
RrdNioBackendFactory() |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
finalize() |
|
String |
getFactoryName() |
Returns the name of this factory.
|
(package private) SyncManager |
getSyncManager() |
|
static int |
getSyncPeriod() |
Returns time between two consecutive background synchronizations.
|
protected RrdBackend |
open(String path,
boolean readOnly) |
Creates RrdNioBackend object for the given file path.
|
static void |
setSyncPeriod(int syncPeriod) |
Sets time between consecutive background synchronizations.
|
void |
shutdown() |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDefaultFactory, getFactory, isInstanceCreated, registerAndSetAsDefaultFactory, registerFactory, setDefaultFactory, toStringexistspublic static final int DEFAULT_SYNC_PERIOD
setSyncPeriod(int) method.public static final String NAME
public static int getSyncPeriod()
setSyncPeriod(int) method call, defaults to
DEFAULT_SYNC_PERIOD. See setSyncPeriod(int) for more
information.public static void setSyncPeriod(int syncPeriod)
syncPeriod - Time in seconds between consecutive background
synchronizations.protected RrdBackend open(String path, boolean readOnly) throws IOException
open in class RrdFileBackendFactorypath - File pathreadOnly - True, if the file should be accessed in read/only mode.
False otherwise.IOException - Thrown in case of I/O error.public void shutdown()
public String getFactoryName()
getFactoryName in class RrdFileBackendFactoryprotected void finalize()
throws Throwable
SyncManager getSyncManager()