@InterfaceAudience.Private public class RegionReplicationLagEvaluation extends org.apache.hadoop.conf.Configured implements org.apache.hadoop.util.Tool
Modifier and Type | Field and Description |
---|---|
static String |
FAMILY_NAME |
private org.apache.hadoop.hbase.metrics.impl.FastLongHistogram |
histogram |
private static org.slf4j.Logger |
LOG |
private static org.apache.hbase.thirdparty.org.apache.commons.cli.Options |
OPTIONS |
static String |
QUALIFIER_NAME |
static int |
ROW_LENGTH |
static String |
TABLE_NAME |
static int |
VALUE_LENGTH |
Constructor and Description |
---|
RegionReplicationLagEvaluation() |
Modifier and Type | Method and Description |
---|---|
private void |
checkLag(org.apache.hadoop.hbase.client.Table table,
int rlen,
int vlen,
int rows) |
private void |
createTable(org.apache.hadoop.hbase.client.Admin admin,
org.apache.hadoop.hbase.TableName tableName) |
private void |
exec(org.apache.hadoop.hbase.TableName tableName,
int rlen,
int vlen,
int rows) |
(package private) org.apache.hadoop.hbase.metrics.impl.FastLongHistogram |
getHistogram() |
static void |
main(String[] args) |
int |
run(String[] args) |
private static final org.slf4j.Logger LOG
public static final String TABLE_NAME
public static final String FAMILY_NAME
public static final String QUALIFIER_NAME
public static final int VALUE_LENGTH
public static final int ROW_LENGTH
private static final org.apache.hbase.thirdparty.org.apache.commons.cli.Options OPTIONS
private org.apache.hadoop.hbase.metrics.impl.FastLongHistogram histogram
public RegionReplicationLagEvaluation()
org.apache.hadoop.hbase.metrics.impl.FastLongHistogram getHistogram()
public int run(String[] args) throws Exception
run
in interface org.apache.hadoop.util.Tool
Exception
private void createTable(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.hbase.TableName tableName) throws IOException
IOException
private void checkLag(org.apache.hadoop.hbase.client.Table table, int rlen, int vlen, int rows) throws IOException
IOException
private void exec(org.apache.hadoop.hbase.TableName tableName, int rlen, int vlen, int rows) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.