org.jrobin.core
public class RrdNioBackendFactory extends RrdFileBackendFactory
Field Summary | |
---|---|
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" |
Method Summary | |
---|---|
String | getFactoryName()
Returns the name of this 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.
|
Returns: Factory name (equals to string "NIO")
Returns: Time in seconds between consecutive background synchronizations.
Parameters: path File path readOnly True, if the file should be accessed in read/only mode. False otherwise.
Returns: RrdNioBackend object which handles all I/O operations for the given file path
Throws: IOException Thrown in case of I/O error.
Parameters: syncPeriod Time in seconds between consecutive background synchronizations.