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, updateLoad
public 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
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testJmxMetrics() throws Exception
Exception
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.