|
||||||||||
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.RrdFileBackendFactory
org.rrd4j.core.RrdNioBackendFactory
public class RrdNioBackendFactory
Factory class which creates actual RrdNioBackend
objects. This is the default factory since
1.4.0 version
Field Summary | |
---|---|
static int |
DEFAULT_SYNC_CORE_POOL_SIZE
The core pool size for the sync executor. |
static int |
DEFAULT_SYNC_PERIOD
Period in seconds between consecutive synchronizations when sync-mode is set to SYNC_BACKGROUND. |
Constructor Summary | |
---|---|
RrdNioBackendFactory()
|
Method Summary | |
---|---|
String |
getName()
Returns the name (primary ID) for the factory. |
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. |
Methods inherited from class org.rrd4j.core.RrdFileBackendFactory |
---|
exists, shouldValidateHeader |
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 |
Field Detail |
---|
public static final int DEFAULT_SYNC_PERIOD
setSyncPeriod(int)
method.
public static final int DEFAULT_SYNC_CORE_POOL_SIZE
Constructor Detail |
---|
public RrdNioBackendFactory()
Method Detail |
---|
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 RrdBackendFactory
path
- 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 getName()
RrdBackendFactory
getName
in class RrdBackendFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |