public class TestBalancerStatusTagInJMXMetrics extends BalancerTestBase
BalancerTestBase.MockMapping| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static MiniHBaseCluster |
cluster |
private static org.apache.hadoop.conf.Configuration |
conf |
private static int |
connectorPort |
private static org.slf4j.Logger |
LOG |
private static org.apache.hadoop.hbase.master.HMaster |
master |
private static HBaseTestingUtility |
UTIL |
clusterStateMocks, largeCluster, loadBalancer, regionId| Constructor and Description |
|---|
TestBalancerStatusTagInJMXMetrics() |
| Modifier and Type | Method and Description |
|---|---|
String |
getStatus()
Gets the balancer status tag from the Metrics registry
|
static void |
setupBeforeClass()
Setup the environment for the test.
|
static void |
tearDownAfterClass() |
void |
testJmxMetrics()
Tests the status change using the Default Metrics System
|
assertClusterAsBalanced, assertClusterOverallAsBalanced, assertRegionReplicaPlacement, beforeAllTests, convertToList, createRegions, createServerMap, mockCluster, mockClusterServers, mockClusterServers, mockClusterServersWithTables, mockUniformClusterServers, printMock, printStats, randomRegions, randomRegions, randomServer, randomServers, reconcile, returnRegions, returnServer, returnServers, testWithCluster, testWithCluster, uniformRegions, updateLoadpublic static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static HBaseTestingUtility UTIL
private static int connectorPort
private static org.apache.hadoop.hbase.master.HMaster master
private static MiniHBaseCluster cluster
private static org.apache.hadoop.conf.Configuration conf
public TestBalancerStatusTagInJMXMetrics()
public static void setupBeforeClass() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionpublic void testJmxMetrics() throws Exception
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.