|
||||||||||
| 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 String |
NAME
factory name, "SAFE" |
| Constructor Summary | |
|---|---|
RrdSafeFileBackendFactory()
|
|
| Method Summary | |
|---|---|
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. |
| 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 String NAME
| Constructor Detail |
|---|
public RrdSafeFileBackendFactory()
| Method Detail |
|---|
protected RrdBackend open(String path,
boolean readOnly)
throws IOException
open in class RrdFileBackendFactorypath - File pathreadOnly - This parameter is ignored
IOException - 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||