public class RrdSafeFileBackendFactory extends RrdFileBackendFactory
RrdSafeFileBackend objects.| Modifier and Type | Field | Description |
|---|---|---|
static long |
LOCK_RETRY_PERIOD |
Default time between two consecutive file locking attempts.
|
static long |
LOCK_WAIT_TIME |
Default time (in milliseconds) this backend will wait for a file lock.
|
static String |
NAME |
factory name, "SAFE"
|
| Constructor | Description |
|---|---|
RrdSafeFileBackendFactory() |
| Modifier and Type | Method | Description |
|---|---|---|
String |
getFactoryName() |
Returns the name of this factory.
|
static long |
getLockRetryPeriod() |
Returns time between two consecutive file locking attempts.
|
static long |
getLockWaitTime() |
Returns time this backend will wait for a file lock.
|
protected RrdBackend |
open(String path,
boolean readOnly) |
Creates RrdSafeFileBackend object for the given file path.
|
static void |
setLockRetryPeriod(long lockRetryPeriod) |
Sets time between two consecutive file locking attempts.
|
static void |
setLockWaitTime(long lockWaitTime) |
Sets time this backend will wait for a file lock.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDefaultFactory, getFactory, isInstanceCreated, registerAndSetAsDefaultFactory, registerFactory, setDefaultFactory, toStringexistspublic static final long LOCK_WAIT_TIME
public static final long LOCK_RETRY_PERIOD
public static final String NAME
protected RrdBackend open(String path, boolean readOnly) throws IOException
open in class RrdFileBackendFactorypath - File pathreadOnly - This parameter is ignoredIOException - Thrown in case of I/O error.public String getFactoryName()
getFactoryName in class RrdFileBackendFactorypublic static long getLockWaitTime()
public static void setLockWaitTime(long lockWaitTime)
lockWaitTime - Maximum lock wait time (in milliseconds)public static long getLockRetryPeriod()
public static void setLockRetryPeriod(long lockRetryPeriod)
lockRetryPeriod - time (in milliseconds) between two consecutive file locking attempts.