org.apache.hadoop.oncrpc
Class RpcResponse

java.lang.Object
  extended by org.apache.hadoop.oncrpc.RpcResponse

public class RpcResponse
extends Object

RpcResponse encapsulates a response to a RPC request. It contains the data that is going to cross the wire, as well as the information of the remote peer.


Constructor Summary
RpcResponse(org.jboss.netty.buffer.ChannelBuffer data, SocketAddress remoteAddress)
           
 
Method Summary
 org.jboss.netty.buffer.ChannelBuffer data()
           
 SocketAddress remoteAddress()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RpcResponse

public RpcResponse(org.jboss.netty.buffer.ChannelBuffer data,
                   SocketAddress remoteAddress)
Method Detail

data

public org.jboss.netty.buffer.ChannelBuffer data()

remoteAddress

public SocketAddress remoteAddress()


Copyright © 2014 Apache Software Foundation. All Rights Reserved.