public abstract class RpcMessage
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected com.stumbleupon.async.Deferred<java.lang.Object> |
deferred |
protected static io.netty.buffer.ByteBuf |
EMPTY_PAYLOAD |
protected mapr.fs.Rpcheader.RpcHeader |
hdr |
protected mapr.fs.Rpcheader.RpcHeader.Builder |
hdrBuilder |
protected boolean |
isBuilt |
protected com.google.protobuf.MessageLite |
req |
protected com.google.protobuf.MessageLiteOrBuilder |
reqMsgOrBuilder |
protected static int |
RPC_VERSION_1 |
protected static int |
RPC_VERSION_CURRENT |
| Constructor and Description |
|---|
RpcMessage(int programId,
int procedureId,
com.google.protobuf.MessageLiteOrBuilder reqMsgOrBuilder) |
| Modifier and Type | Method and Description |
|---|---|
void |
build() |
void |
callback(java.lang.Object result) |
mapr.fs.Rpcheader.RpcHeader |
getHeader() |
io.netty.buffer.ByteBuf |
getPayload() |
protected io.netty.buffer.ByteBuf |
getPayload0() |
com.google.protobuf.MessageLite |
getRequest() |
long |
getSequenceId() |
boolean |
isBuilt() |
java.lang.Object |
parseResponse(RpcResponse response) |
protected abstract java.lang.Object |
parseResponse0(RpcResponse respMsg) |
void |
release() |
RpcMessage |
setCallId(int callId) |
RpcMessage |
setConnId(int connId) |
RpcMessage |
setEpoch(int epoh) |
RpcMessage |
setSequenceId(long sequenceId) |
protected static final int RPC_VERSION_1
protected static final int RPC_VERSION_CURRENT
protected static final io.netty.buffer.ByteBuf EMPTY_PAYLOAD
protected final mapr.fs.Rpcheader.RpcHeader.Builder hdrBuilder
protected mapr.fs.Rpcheader.RpcHeader hdr
protected final com.google.protobuf.MessageLiteOrBuilder reqMsgOrBuilder
protected com.google.protobuf.MessageLite req
protected boolean isBuilt
protected com.stumbleupon.async.Deferred<java.lang.Object> deferred
public RpcMessage(int programId,
int procedureId,
com.google.protobuf.MessageLiteOrBuilder reqMsgOrBuilder)
public java.lang.Object parseResponse(RpcResponse response) throws java.io.IOException
java.io.IOExceptionprotected abstract java.lang.Object parseResponse0(RpcResponse respMsg) throws java.io.IOException
java.io.IOExceptionpublic io.netty.buffer.ByteBuf getPayload()
protected io.netty.buffer.ByteBuf getPayload0()
public mapr.fs.Rpcheader.RpcHeader getHeader()
public com.google.protobuf.MessageLite getRequest()
public RpcMessage setEpoch(int epoh)
public long getSequenceId()
public RpcMessage setSequenceId(long sequenceId)
public RpcMessage setCallId(int callId)
public RpcMessage setConnId(int connId)
public boolean isBuilt()
public void release()
public void build()
public void callback(java.lang.Object result)