public class TestScannerHeartbeatMessages extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TestScannerHeartbeatMessages.SparseFilter |
| Constructor and Description |
|---|
TestScannerHeartbeatMessages() |
| Modifier and Type | Method and Description |
|---|---|
static void |
setUpBeforeClass() |
void |
setupBeforeTest() |
static void |
tearDownAfterClass() |
void |
teardownAfterTest() |
void |
testEquivalenceOfScanWithHeartbeats(Scan scan,
int rowSleepTime,
int cfSleepTime,
boolean sleepBeforeCf)
Test the equivalence of a scan versus the same scan executed when heartbeat messages are
necessary
|
Callable<Void> |
testHeartbeatBetweenColumnFamilies()
Test the case that the time limit for scans is reached in between column families
|
Callable<Void> |
testHeartbeatBetweenRows()
Test the case that the time limit for the scan is reached after each full row of cells is
fetched.
|
Callable<Void> |
testHeartbeatWithSparseFilter()
Test the case that there is a filter which filters most of cells
|
void |
testImportanceOfHeartbeats(Callable<Void> testCallable)
Run the test callable when heartbeats are enabled/disabled.
|
void |
testScannerHeartbeatMessages()
Test a variety of scan configurations to ensure that they return the expected Results when
heartbeat messages are necessary.
|
public void testScannerHeartbeatMessages()
throws Exception
Exceptionpublic void testImportanceOfHeartbeats(Callable<Void> testCallable) throws InterruptedException
testCallable - InterruptedExceptionpublic Callable<Void> testHeartbeatBetweenRows() throws Exception
Exceptionpublic Callable<Void> testHeartbeatBetweenColumnFamilies() throws Exception
Exceptionpublic Callable<Void> testHeartbeatWithSparseFilter() throws Exception
Exceptionpublic void testEquivalenceOfScanWithHeartbeats(Scan scan, int rowSleepTime, int cfSleepTime, boolean sleepBeforeCf) throws Exception
scan - The scan configuration being testedrowSleepTime - The time to sleep between fetches of row cellscfSleepTime - The time to sleep between fetches of column family cellssleepBeforeCf - set to true when column family sleeps should occur before the cells for
that column family are fetchedException