public class RrdSafeFileBackend extends RrdFileBackend
| Modifier and Type | Class | Description |
|---|---|---|
(package private) static class |
RrdSafeFileBackend.Counters |
file| Constructor | Description |
|---|---|
RrdSafeFileBackend(String path,
long lockWaitTime,
long lockRetryPeriod) |
Creates RrdFileBackend object for the given file path, backed by RandomAccessFile object.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Closes the underlying RRD file.
|
static String |
getLockInfo() |
|
protected boolean |
isCachingAllowed() |
Defines the caching policy for this backend.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPath, isInstanceCreated, isReadOnly, readAll, readDouble, readDouble, readInt, readLong, readString, writeDouble, writeDouble, writeDouble, writeInt, writeLong, writeStringgetCanonicalPath, getCanonicalPath, getLength, read, setLength, writepublic RrdSafeFileBackend(String path, long lockWaitTime, long lockRetryPeriod) throws IOException
path - Path to a filelockWaitTime - lock waiting time in millisecondslockRetryPeriod - lock retry period in millisecondsIOException - Thrown in case of I/O errorpublic void close()
throws IOException
RrdFileBackendclose in class RrdFileBackendIOException - Thrown in case of I/O errorprotected boolean isCachingAllowed()
isCachingAllowed in class RrdBackendfalsepublic static String getLockInfo()