public class RrdSafeFileBackend extends RrdRandomAccessFileBackend
rafile
file, readOnly
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.
|
protected boolean |
isCachingAllowed()
Defines the caching policy for this backend.
|
read, setLength, write
getCanonicalPath, getCanonicalPath, getLength
getPath, readAll
public RrdSafeFileBackend(String path, long lockWaitTime, long lockRetryPeriod) throws IOException
path
- Path to a filelockWaitTime
- a long.lockRetryPeriod
- a long.IOException
- Thrown in case of I/O errorpublic void close() throws IOException
close.
close
in class RrdRandomAccessFileBackend
IOException
- if any.protected boolean isCachingAllowed()
isCachingAllowed
in class RrdBackend
false
Copyright © 2015. All rights reserved.