org.apache.hadoop.hbase.client
Class ServerCallable<T>
java.lang.Object
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.
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 |
connection
protected final HConnection connection
tableName
protected final byte[] tableName
row
protected final byte[] row
location
protected HRegionLocation location
server
protected HRegionInterface server
ServerCallable
public ServerCallable(HConnection connection,
byte[] tableName,
byte[] row)
- Parameters:
connection
- connection callable is ontableName
- table name callable is onrow
- row we are querying
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.