public class TestCounter extends Object
Modifier and Type | Class and Description |
---|---|
private static interface |
TestCounter.Operation |
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static int |
DATA_COUNT |
private static int[] |
THREAD_COUNTS |
Constructor and Description |
---|
TestCounter() |
Modifier and Type | Method and Description |
---|---|
private static void |
execute(TestCounter.Operation op,
int threadCount) |
void |
testIncrement() |
void |
testIncrementAndGet() |
public static final HBaseClassTestRule CLASS_RULE
private static final int[] THREAD_COUNTS
private static final int DATA_COUNT
public TestCounter()
public void testIncrement() throws Exception
Exception
public void testIncrementAndGet() throws Exception
Exception
private static void execute(TestCounter.Operation op, int threadCount) throws InterruptedException
InterruptedException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.