Modifier and Type | Field and Description |
---|---|
private Admin |
admin |
private Connection |
conn |
private static org.slf4j.Logger |
LOG |
private List<RegionInfo> |
movedRegions |
private RegionInfo |
region |
private ServerName |
sourceServer |
private ServerName |
targetServer |
Constructor and Description |
---|
MoveWithAck(Connection conn,
RegionInfo regionInfo,
ServerName sourceServer,
ServerName targetServer,
List<RegionInfo> movedRegions) |
Modifier and Type | Method and Description |
---|---|
Boolean |
call() |
(package private) static ServerName |
getServerNameForRegion(RegionInfo region,
Admin admin,
Connection conn)
Get servername that is up in hbase:meta hosting the given region.
|
private static String |
getTimeDiffInSec(long startTime) |
private boolean |
isSameServer(RegionInfo region,
ServerName serverName)
Returns true if passed region is still on serverName when we look at hbase:meta.
|
private void |
isSuccessfulScan(RegionInfo region)
Tries to scan a row from passed region
|
private static final org.slf4j.Logger LOG
private final RegionInfo region
private final ServerName targetServer
private final List<RegionInfo> movedRegions
private final ServerName sourceServer
private final Connection conn
MoveWithAck(Connection conn, RegionInfo regionInfo, ServerName sourceServer, ServerName targetServer, List<RegionInfo> movedRegions) throws IOException
IOException
public Boolean call() throws IOException, InterruptedException
call
in interface Callable<Boolean>
IOException
InterruptedException
private static String getTimeDiffInSec(long startTime)
private void isSuccessfulScan(RegionInfo region) throws IOException
IOException
private boolean isSameServer(RegionInfo region, ServerName serverName) throws IOException
IOException
static ServerName getServerNameForRegion(RegionInfo region, Admin admin, Connection conn) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.