public class TestChoreService extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
TestChoreService.CountingChore |
private static class |
TestChoreService.DoNothingChore
Lightweight ScheduledChore used primarily to fill the scheduling queue in tests
|
static class |
TestChoreService.FailInitialChore
A Chore that will try to execute the initial chore a few times before succeeding.
|
private static class |
TestChoreService.SampleStopper
Straight forward stopper implementation that is used by default when one is not provided
|
private static class |
TestChoreService.SleepingChore |
private static class |
TestChoreService.SlowChore
Sleeps for longer than the scheduled period.
|
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.conf.Configuration |
CONF |
private int |
initialCorePoolSize |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private org.apache.hadoop.hbase.ChoreService |
service |
Constructor and Description |
---|
TestChoreService() |
Modifier and Type | Method and Description |
---|---|
void |
setUp() |
void |
shutdownService(org.apache.hadoop.hbase.ChoreService service) |
void |
tearDown() |
void |
testCancelChore() |
void |
testChangingChoreServices() |
void |
testChoreServiceConstruction() |
void |
testCleanupWithShutdown() |
void |
testCleanupWithStopper() |
void |
testCorePoolDecrease() |
void |
testCorePoolIncrease() |
void |
testForceTrigger() |
void |
testFrequencyOfChores() |
void |
testInitialChorePrecedence() |
void |
testInitialDelay()
for HBASE-25014
|
void |
testMaximumChoreServiceThreads()
ChoreServices should never have a core pool size that exceeds the number of chores that have
been scheduled with the service.
|
void |
testNumberOfChoresMissingStartTime() |
void |
testNumberOfRunningChores() |
void |
testScheduledChoreConstruction() |
void |
testShutdownCancelsScheduledChores() |
void |
testShutdownRejectsNewSchedules() |
void |
testShutdownWorksWhileChoresAreExecuting() |
void |
testStopperForScheduledChores() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final org.apache.hadoop.conf.Configuration CONF
public org.junit.rules.TestName name
private int initialCorePoolSize
private org.apache.hadoop.hbase.ChoreService service
public TestChoreService()
public void setUp()
public void tearDown()
public void testInitialChorePrecedence() throws InterruptedException
InterruptedException
public void testCancelChore() throws InterruptedException
InterruptedException
public void testScheduledChoreConstruction()
public void testChoreServiceConstruction() throws InterruptedException
InterruptedException
public void testFrequencyOfChores() throws InterruptedException
InterruptedException
public void shutdownService(org.apache.hadoop.hbase.ChoreService service)
public void testForceTrigger() throws InterruptedException
InterruptedException
public void testCorePoolIncrease() throws InterruptedException
InterruptedException
public void testCorePoolDecrease() throws InterruptedException
InterruptedException
public void testNumberOfRunningChores() throws InterruptedException
InterruptedException
public void testNumberOfChoresMissingStartTime() throws InterruptedException
InterruptedException
public void testMaximumChoreServiceThreads() throws InterruptedException
InterruptedException
public void testChangingChoreServices() throws InterruptedException
InterruptedException
public void testStopperForScheduledChores() throws InterruptedException
InterruptedException
public void testShutdownCancelsScheduledChores() throws InterruptedException
InterruptedException
public void testShutdownWorksWhileChoresAreExecuting() throws InterruptedException
InterruptedException
public void testShutdownRejectsNewSchedules() throws InterruptedException
InterruptedException
public void testInitialDelay()
public void testCleanupWithStopper()
public void testCleanupWithShutdown()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.