public class RrdSafeFileBackendFactory extends RrdFileBackendFactory
RrdSafeFileBackend
objects.修飾子とタイプ | フィールド | 説明 |
---|---|---|
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 java.lang.String |
NAME |
factory name, "SAFE"
|
コンストラクタ | 説明 |
---|---|
RrdSafeFileBackendFactory() |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
java.lang.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(java.lang.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, wait
getDefaultFactory, getFactory, isInstanceCreated, registerAndSetAsDefaultFactory, registerFactory, setDefaultFactory, toString
exists
public static final long LOCK_WAIT_TIME
public static final long LOCK_RETRY_PERIOD
public static final java.lang.String NAME
protected RrdBackend open(java.lang.String path, boolean readOnly) throws java.io.IOException
open
クラス内 RrdFileBackendFactory
path
- File pathreadOnly
- This parameter is ignoredjava.io.IOException
- Thrown in case of I/O error.public java.lang.String getFactoryName()
getFactoryName
クラス内 RrdFileBackendFactory
public 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.