public class TestRegistryEndpointsRefresher extends Object
Modifier and Type | Field and Description |
---|---|
private CopyOnWriteArrayList<Long> |
callTimestamps |
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.conf.Configuration |
conf |
private static String |
INITIAL_DELAY_SECS_CONFIG_NAME |
private static String |
INTERVAL_SECS_CONFIG_NAME |
private static String |
MIN_INTERVAL_SECS_CONFIG_NAME |
private AtomicInteger |
refreshCallCounter |
private org.apache.hadoop.hbase.client.RegistryEndpointsRefresher |
refresher |
Constructor and Description |
---|
TestRegistryEndpointsRefresher() |
Modifier and Type | Method and Description |
---|---|
private void |
createRefresher(long initialDelaySecs,
long intervalSecs,
long minIntervalSecs) |
private void |
refresh() |
void |
setUp() |
void |
tearDown() |
void |
testDisableRefresh() |
void |
testDurationBetweenRefreshes() |
void |
testInitialDelay() |
void |
testPeriodicMasterEndPointRefresh() |
public static final HBaseClassTestRule CLASS_RULE
private static final String INITIAL_DELAY_SECS_CONFIG_NAME
private static final String INTERVAL_SECS_CONFIG_NAME
private static final String MIN_INTERVAL_SECS_CONFIG_NAME
private org.apache.hadoop.conf.Configuration conf
private org.apache.hadoop.hbase.client.RegistryEndpointsRefresher refresher
private AtomicInteger refreshCallCounter
private CopyOnWriteArrayList<Long> callTimestamps
public TestRegistryEndpointsRefresher()
public void setUp()
public void tearDown()
private void refresh()
private void createRefresher(long initialDelaySecs, long intervalSecs, long minIntervalSecs)
public void testDisableRefresh()
public void testInitialDelay() throws InterruptedException
InterruptedException
public void testPeriodicMasterEndPointRefresh()
public void testDurationBetweenRefreshes()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.