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

java.lang.Object
  extended by org.apache.hadoop.hbase.ipc.HBaseClient.Call
Direct Known Subclasses:
HBaseClient.ParallelCall
Enclosing class:
HBaseClient

protected class HBaseClient.Call
extends Object

A call waiting for a value.


Constructor Summary
protected HBaseClient.Call(org.apache.hadoop.io.Writable param)
           
 
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 setValue(org.apache.hadoop.io.Writable value)
          Set the return value when there is no error.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HBaseClient.Call

protected HBaseClient.Call(org.apache.hadoop.io.Writable param)
Method Detail

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

setValue

public void setValue(org.apache.hadoop.io.Writable value)
Set the return value when there is no error. Notify the caller the call is done.

Parameters:
value - return value of the call.

getStartTime

public long getStartTime()


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.