org.apache.hadoop.hbase.client
Class ServerCallable<T>

java.lang.Object
  extended by org.apache.hadoop.hbase.client.ServerCallable<T>
Type Parameters:
T - the class that the ServerCallable handles
All Implemented Interfaces:
Callable<T>
Direct Known Subclasses:
ScannerCallable

public abstract class ServerCallable<T>
extends Object
implements Callable<T>

Abstract class that implements Callable, used by retryable actions.


Field Summary
protected  HConnection connection
           
protected  HRegionLocation location
           
protected  byte[] row
           
protected  HRegionInterface server
           
protected  byte[] tableName
           
 
Constructor Summary
ServerCallable(HConnection connection, byte[] tableName, byte[] row)
           
 
Method Summary
 byte[] getRegionName()
           
 byte[] getRow()
           
 String getServerName()
           
 void instantiateServer(boolean reload)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.concurrent.Callable
call
 

Field Detail

connection

protected final HConnection connection

tableName

protected final byte[] tableName

row

protected final byte[] row

location

protected HRegionLocation location

server

protected HRegionInterface server
Constructor Detail

ServerCallable

public ServerCallable(HConnection connection,
                      byte[] tableName,
                      byte[] row)
Parameters:
connection - connection callable is on
tableName - table name callable is on
row - row we are querying
Method Detail

instantiateServer

public void instantiateServer(boolean reload)
                       throws IOException
Parameters:
reload - set this to true if connection should re-find the region
Throws:
IOException - e

getServerName

public String getServerName()
Returns:
the server name

getRegionName

public byte[] getRegionName()
Returns:
the region name

getRow

public byte[] getRow()
Returns:
the row


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