public final class RPCBlockWriteResponse extends RPCResponse
RPCBlockWriteRequest.RPCResponse.StatusRPCMessage.Type| Constructor and Description |
|---|
RPCBlockWriteResponse(long sessionId,
long blockId,
long offset,
long length,
RPCResponse.Status status) |
| Modifier and Type | Method and Description |
|---|---|
static RPCBlockWriteResponse |
createErrorResponse(RPCBlockWriteRequest request,
RPCResponse.Status status)
Creates a
RPCBlockWriteResponse object that indicates an error for the given
RPCBlockWriteRequest. |
static RPCBlockWriteResponse |
decode(io.netty.buffer.ByteBuf in)
Decodes the input
ByteBuf into a RPCBlockWriteResponse object and returns it. |
void |
encode(io.netty.buffer.ByteBuf out)
Encodes the message to the output
ByteBuf. |
long |
getBlockId() |
int |
getEncodedLength()
Returns the number bytes for the message when it is encoded.
|
long |
getLength() |
long |
getOffset() |
long |
getSessionId() |
RPCResponse.Status |
getStatus() |
RPCMessage.Type |
getType()
Returns the type of the message.
|
createFrameDecoder, decodeMessage, getPayloadDataBuffer, hasPayload, validatepublic RPCBlockWriteResponse(long sessionId,
long blockId,
long offset,
long length,
RPCResponse.Status status)
public static RPCBlockWriteResponse createErrorResponse(RPCBlockWriteRequest request, RPCResponse.Status status)
RPCBlockWriteResponse object that indicates an error for the given
RPCBlockWriteRequest.request - The RPCBlockWriteRequest to generated the RPCBlockReadResponse
for.status - The RPCResponse.Status for the response.RPCBlockWriteResponse objectpublic RPCMessage.Type getType()
RPCMessagegetType in class RPCMessagepublic static RPCBlockWriteResponse decode(io.netty.buffer.ByteBuf in)
ByteBuf into a RPCBlockWriteResponse object and returns it.in - the input ByteBufpublic int getEncodedLength()
EncodedMessagepublic void encode(io.netty.buffer.ByteBuf out)
EncodedMessageByteBuf.out - the output ByteBuf where the message should be encoded.public long getSessionId()
public long getBlockId()
public long getLength()
public long getOffset()
public RPCResponse.Status getStatus()
Copyright © 2015. All Rights Reserved.