Package org.apache.hadoop.oncrpc
Class RpcUtil
java.lang.Object
org.apache.hadoop.oncrpc.RpcUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.netty.channel.ChannelInboundHandlerAdapterstatic final io.netty.channel.ChannelInboundHandlerAdapterstatic final io.netty.channel.ChannelInboundHandlerAdapter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic io.netty.handler.codec.ByteToMessageDecoderstatic intstatic voidsendRpcResponse(io.netty.channel.ChannelHandlerContext ctx, RpcResponse response)
-
Field Details
-
STAGE_RPC_MESSAGE_PARSER
public static final io.netty.channel.ChannelInboundHandlerAdapter STAGE_RPC_MESSAGE_PARSER -
STAGE_RPC_TCP_RESPONSE
public static final io.netty.channel.ChannelInboundHandlerAdapter STAGE_RPC_TCP_RESPONSE -
STAGE_RPC_UDP_RESPONSE
public static final io.netty.channel.ChannelInboundHandlerAdapter STAGE_RPC_UDP_RESPONSE
-
-
Constructor Details
-
RpcUtil
public RpcUtil()
-
-
Method Details
-
getNewXid
-
sendRpcResponse
public static void sendRpcResponse(io.netty.channel.ChannelHandlerContext ctx, RpcResponse response) -
constructRpcFrameDecoder
public static io.netty.handler.codec.ByteToMessageDecoder constructRpcFrameDecoder()
-