public class RrdSafeFileBackend extends RrdRandomAccessFileBackend
| Modifier and Type | Class and Description |
|---|---|
(package private) static class | RrdSafeFileBackend.CountersInternal counters for tracking file locking operations. |
rafileBYTEORDER| Constructor and Description |
|---|
RrdSafeFileBackend(String path,
long lockWaitTime,
long lockRetryPeriod)Creates RrdFileBackend object for the given file path, backed by RandomAccessFile object. |
| Modifier and Type | Method and Description |
|---|---|
void | close()close. |
static String | getLockInfo()getLockInfo. |
getCanonicalPath, getLength, read, setLength, writedone, getCharBuffer, getFactory, getPath, getUri, isCachingAllowed, isInstanceCreated, readAll, readDouble, readDouble, readInt, readLong, readShort, readString, rrdClose, writeDouble, writeDouble, writeDouble, writeInt, writeLong, writeShort, writeString, writeStringpublic RrdSafeFileBackend(String path, long lockWaitTime, long lockRetryPeriod) throws IOException
path - Path to a filelockWaitTime - lock waiting time in milliseconds.lockRetryPeriod - lock retry period in milliseconds.IOException - Thrown in case of I/O error.public void close()
throws IOExceptionclose in class RrdRandomAccessFileBackendIOException - if any.