public class RrdNioBackendFactory
extends org.jrobin.core.RrdFileBackendFactory
RrdNioBackend objects. This is the default factory since
1.4.0 version| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_SYNC_PERIOD
Period in seconds between consecutive synchronizations when
sync-mode is set to SYNC_BACKGROUND.
|
static String |
FACTORY_NAME
factory name, "NIO-JavaMelody".
|
| Constructor and Description |
|---|
RrdNioBackendFactory() |
| Modifier and Type | Method and Description |
|---|---|
String |
getFactoryName()
Returns the name of this factory.
|
static int |
getSyncPeriod()
Returns time between two consecutive background synchronizations.
|
protected org.jrobin.core.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.
|
public static final String FACTORY_NAME
public static final int DEFAULT_SYNC_PERIOD
setSyncPeriod(int) method.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 org.jrobin.core.RrdBackend open(String path, boolean readOnly) throws IOException
open in class org.jrobin.core.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 String getFactoryName()
getFactoryName in class org.jrobin.core.RrdFileBackendFactoryCopyright © 2008–2017 Emeric Vernat. All rights reserved.