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
InterruptedExceptionpublic void testCancelChore() throws InterruptedException
InterruptedExceptionpublic void testScheduledChoreConstruction()
public void testChoreServiceConstruction() throws InterruptedException
InterruptedExceptionpublic void testFrequencyOfChores() throws InterruptedException
InterruptedExceptionpublic void shutdownService(org.apache.hadoop.hbase.ChoreService service)
public void testForceTrigger() throws InterruptedException
InterruptedExceptionpublic void testCorePoolIncrease() throws InterruptedException
InterruptedExceptionpublic void testCorePoolDecrease() throws InterruptedException
InterruptedExceptionpublic void testNumberOfRunningChores() throws InterruptedException
InterruptedExceptionpublic void testNumberOfChoresMissingStartTime() throws InterruptedException
InterruptedExceptionpublic void testMaximumChoreServiceThreads() throws InterruptedException
InterruptedExceptionpublic void testChangingChoreServices() throws InterruptedException
InterruptedExceptionpublic void testStopperForScheduledChores() throws InterruptedException
InterruptedExceptionpublic void testShutdownCancelsScheduledChores() throws InterruptedException
InterruptedExceptionpublic void testShutdownWorksWhileChoresAreExecuting() throws InterruptedException
InterruptedExceptionpublic void testShutdownRejectsNewSchedules() throws InterruptedException
InterruptedExceptionpublic void testInitialDelay()
public void testCleanupWithStopper()
public void testCleanupWithShutdown()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.