use of alluxio.network.protocol.RPCBlockReadResponse in project alluxio by Alluxio.
the class NettyRemoteBlockReaderTest method createRPCBlockReadResponse.
private RPCBlockReadResponse createRPCBlockReadResponse(RPCResponse.Status status) {
ByteBuffer byteBuffer = ByteBuffer.allocateDirect((int) LENGTH);
byteBuffer.put("alluxio".getBytes());
DataBuffer dataBuffer = new DataByteBuffer(byteBuffer, LENGTH);
return new RPCBlockReadResponse(BLOCK_ID, OFFSET, LENGTH, dataBuffer, status);
}
Aggregations