public class RrdNioByteBufferBackend extends RrdFileBackend
file
修飾子 | コンストラクタ | 説明 |
---|---|---|
protected |
RrdNioByteBufferBackend(java.lang.String path,
boolean readOnly) |
Creates RrdFileBackend object for the given file path, backed by java.nio.* classes.
|
修飾子とタイプ | メソッド | 説明 |
---|---|---|
void |
close() |
Closes the underlying RRD file.
|
protected void |
read(long offset,
byte[] b) |
Reads a number of bytes from the RRD file on the disk
|
protected void |
setLength(long newLength) |
Sets length of the underlying RRD file.
|
protected void |
write(long offset,
byte[] b) |
Writes bytes to the underlying RRD file on the disk
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPath, isCachingAllowed, isInstanceCreated, isReadOnly, readAll, readDouble, readDouble, readInt, readLong, readString, writeDouble, writeDouble, writeDouble, writeInt, writeLong, writeString
getCanonicalPath, getCanonicalPath, getLength
protected RrdNioByteBufferBackend(java.lang.String path, boolean readOnly) throws java.io.IOException, java.lang.IllegalStateException
path
- Path to a filereadOnly
- True, if file should be open in a read-only mode. False otherwisejava.io.IOException
- Thrown in case of I/O errorjava.lang.IllegalStateException
protected void setLength(long newLength) throws java.io.IOException
setLength
クラス内 RrdFileBackend
newLength
- Length of the RRD filejava.io.IOException
- Thrown in case of I/O error.protected void write(long offset, byte[] b)
write
クラス内 RrdFileBackend
offset
- Starting file offsetb
- Bytes to be written.protected void read(long offset, byte[] b)
read
クラス内 RrdFileBackend
offset
- Starting file offsetb
- Buffer which receives bytes read from the file.public void close() throws java.io.IOException
close
クラス内 RrdFileBackend
java.io.IOException
- Thrown in case of I/O error