public interface RemoteBlockReader extends Closeable
Modifier and Type | Interface and Description |
---|---|
static class |
RemoteBlockReader.Factory |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
readRemoteBlock(InetSocketAddress address,
long blockId,
long offset,
long length)
Reads a remote block with a offset and length.
|
ByteBuffer readRemoteBlock(InetSocketAddress address, long blockId, long offset, long length) throws IOException
address
- The InetSocketAddress
of the data server.blockId
- the id of the block trying to read.offset
- the offset of the block.length
- the length the client wants to read.IOException
- if the remote server is not reachable or responds with failures.Copyright © 2015. All Rights Reserved.