public class TestScannerHeartbeatMessages extends Object
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.
|
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
Exception
public void testImportanceOfHeartbeats(Callable<Void> testCallable) throws InterruptedException
testCallable
- InterruptedException
public Callable<Void> testHeartbeatBetweenRows() throws Exception
Exception
public Callable<Void> testHeartbeatBetweenColumnFamilies() throws Exception
Exception
public 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