|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jrobin.core.RrdBackendFactory
org.jrobin.core.RrdFileBackendFactory
org.jrobin.core.RrdSafeFileBackendFactory
public class RrdSafeFileBackendFactory
Factory class which creates actual RrdSafeFileBackend
objects.
Field Summary | |
---|---|
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" |
Constructor Summary | |
---|---|
RrdSafeFileBackendFactory()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.jrobin.core.RrdFileBackendFactory |
---|
exists |
Methods inherited from class org.jrobin.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 long LOCK_WAIT_TIME
public static final long LOCK_RETRY_PERIOD
public static final java.lang.String NAME
Constructor Detail |
---|
public RrdSafeFileBackendFactory()
Method Detail |
---|
protected RrdBackend open(java.lang.String path, boolean readOnly) throws java.io.IOException
open
in class RrdFileBackendFactory
path
- File pathreadOnly
- This parameter is ignored
java.io.IOException
- Thrown in case of I/O error.public java.lang.String getFactoryName()
getFactoryName
in class 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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |