public class TestClientClusterMetrics extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TestClientClusterMetrics.MyObserver |
Modifier and Type | Field and Description |
---|---|
private static org.apache.hadoop.hbase.client.Admin |
ADMIN |
private static byte[] |
CF |
static HBaseClassTestRule |
CLASS_RULE |
private static MiniHBaseCluster |
CLUSTER |
private static org.apache.hadoop.hbase.regionserver.HRegionServer |
DEAD |
private static int |
MASTERS |
private static int |
SLAVES |
private static org.apache.hadoop.hbase.TableName |
TABLE_NAME |
private static HBaseTestingUtility |
UTIL |
Constructor and Description |
---|
TestClientClusterMetrics() |
Modifier and Type | Method and Description |
---|---|
private org.apache.hadoop.hbase.client.Connection |
createConnection(org.apache.hadoop.conf.Configuration conf) |
private void |
doGet() |
private void |
doPut() |
private org.apache.hadoop.hbase.RegionMetrics |
getMetaMetrics() |
private static void |
insertData(org.apache.hadoop.hbase.TableName tableName,
int startRow,
int rowCount) |
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testAsyncClient() |
void |
testDefaults() |
void |
testLiveAndDeadServersStatus() |
void |
testMasterAndBackupMastersStatus() |
void |
testObserver() |
void |
testOtherStatusInfos() |
void |
testRegionStatesCount() |
void |
testUserMetrics() |
private void |
waitForUsersMetrics(int noOfUsers) |
public static final HBaseClassTestRule CLASS_RULE
private static HBaseTestingUtility UTIL
private static org.apache.hadoop.hbase.client.Admin ADMIN
private static final int SLAVES
private static final int MASTERS
private static MiniHBaseCluster CLUSTER
private static org.apache.hadoop.hbase.regionserver.HRegionServer DEAD
private static final org.apache.hadoop.hbase.TableName TABLE_NAME
private static final byte[] CF
public TestClientClusterMetrics()
public static void setUpBeforeClass() throws Exception
Exception
public void testDefaults() throws Exception
Exception
public void testAsyncClient() throws Exception
Exception
public void testLiveAndDeadServersStatus() throws Exception
Exception
public void testRegionStatesCount() throws Exception
Exception
public void testMasterAndBackupMastersStatus() throws Exception
Exception
public void testUserMetrics() throws Exception
Exception
private org.apache.hadoop.hbase.RegionMetrics getMetaMetrics() throws IOException
IOException
private void waitForUsersMetrics(int noOfUsers) throws Exception
Exception
private void doPut() throws IOException
IOException
private void doGet() throws IOException
IOException
private org.apache.hadoop.hbase.client.Connection createConnection(org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
public void testOtherStatusInfos() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testObserver() throws IOException
IOException
private static void insertData(org.apache.hadoop.hbase.TableName tableName, int startRow, int rowCount) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.