public class RrdSafeFileBackend extends RrdRandomAccessFileBackend
Modifier and Type | Class and Description |
---|---|
(package private) static class |
RrdSafeFileBackend.Counters |
rafile
BYTEORDER
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, write
done, getCharBuffer, getFactory, getPath, getUri, isCachingAllowed, isInstanceCreated, readAll, readDouble, readDouble, readInt, readLong, readShort, readString, rrdClose, writeDouble, writeDouble, writeDouble, writeInt, writeLong, writeShort, writeString, writeString
public 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 IOException
close.
close
in class RrdRandomAccessFileBackend
IOException
- if any.