org.apache.hadoop.hbase.ipc
Class RpcClient.Call

java.lang.Object
  extended by org.apache.hadoop.hbase.ipc.RpcClient.Call
Enclosing class:
RpcClient

protected class RpcClient.Call
extends Object

A call waiting for a value.


Constructor Summary
protected RpcClient.Call(com.google.protobuf.Descriptors.MethodDescriptor md, com.google.protobuf.Message param, CellScanner cells, com.google.protobuf.Message responseDefaultType, MetricsConnection.CallStats callStats)
           
 
Method Summary
protected  void callComplete()
          Indicate when the call is complete and the value or error are available.
 long getStartTime()
           
 void setException(IOException error)
          Set the exception when there is an error.
 void setResponse(com.google.protobuf.Message response, CellScanner cells)
          Set the return value when there is no error.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RpcClient.Call

protected RpcClient.Call(com.google.protobuf.Descriptors.MethodDescriptor md,
                         com.google.protobuf.Message param,
                         CellScanner cells,
                         com.google.protobuf.Message responseDefaultType,
                         MetricsConnection.CallStats callStats)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

callComplete

protected void callComplete()
Indicate when the call is complete and the value or error are available. Notifies by default.


setException

public void setException(IOException error)
Set the exception when there is an error. Notify the caller the call is done.

Parameters:
error - exception thrown by the call; either local or remote

setResponse

public void setResponse(com.google.protobuf.Message response,
                        CellScanner cells)
Set the return value when there is no error. Notify the caller the call is done.

Parameters:
response - return value of the call.
cells - Can be null

getStartTime

public long getStartTime()


Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.