public class TestThriftServer extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TestThriftServer.MySlowHBaseHandler |
| Modifier and Type | Field and Description |
|---|---|
protected static int |
MAXVERSIONS |
| Constructor and Description |
|---|
TestThriftServer() |
| Modifier and Type | Method and Description |
|---|---|
static void |
afterClass() |
static void |
beforeClass() |
static void |
checkTableList(Hbase.Iface handler) |
static void |
createTestTables(Hbase.Iface handler) |
static void |
doTestAppend()
Appends the value to a cell and checks that the cell value is updated properly.
|
static void |
doTestCheckAndPut()
Check that checkAndPut fails if the cell does not exist, then put in the cell, then check that
the checkAndPut succeeds.
|
void |
doTestFilterRegistration() |
void |
doTestGetRegionInfo() |
static void |
doTestGetRegionInfo(Hbase.Iface handler) |
void |
doTestGetTableRegions()
For HBASE-2556
Tests for GetTableRegions
|
static void |
doTestGetTableRegions(Hbase.Iface handler) |
void |
doTestIncrements() |
static void |
doTestIncrements(ThriftServerRunner.HBaseHandler handler) |
void |
doTestTableCreateDrop()
Tests for creating, enabling, disabling, and deleting tables.
|
static void |
doTestTableCreateDrop(Hbase.Iface handler) |
void |
doTestTableMutations()
Tests adding a series of Mutations and BatchMutations, including a
delete mutation.
|
static void |
doTestTableMutations(Hbase.Iface handler) |
void |
doTestTableScanners()
Tests the four different scanner-opening methods (with and without
a stoprow, with and without a timestamp).
|
void |
doTestTableTimestampsAndColumns()
Similar to testTableMutations(), except Mutations are applied with
specific timestamps and data retrieval uses these timestamps to
extract specific versions of data.
|
void |
doTestThriftMetrics()
Tests if the metrics for thrift handler work correctly
|
static void |
dropTestTables(Hbase.Iface handler) |
void |
testAll()
Runs all of the tests under a single JUnit test method.
|
protected static final int MAXVERSIONS
public void testAll()
throws Exception
Exceptionpublic void doTestTableCreateDrop()
throws Exception
Exceptionpublic static void doTestTableCreateDrop(Hbase.Iface handler) throws Exception
Exceptionpublic void doTestThriftMetrics()
throws Exception
Exceptionpublic static void createTestTables(Hbase.Iface handler) throws Exception
Exceptionpublic static void checkTableList(Hbase.Iface handler) throws Exception
Exceptionpublic static void dropTestTables(Hbase.Iface handler) throws Exception
Exceptionpublic static void doTestIncrements(ThriftServerRunner.HBaseHandler handler) throws Exception
Exceptionpublic void doTestTableMutations()
throws Exception
Exceptionpublic static void doTestTableMutations(Hbase.Iface handler) throws Exception
Exceptionpublic void doTestTableTimestampsAndColumns()
throws Exception
Exceptionpublic void doTestTableScanners()
throws Exception
Exceptionpublic void doTestGetTableRegions()
throws Exception
Exceptionpublic static void doTestGetTableRegions(Hbase.Iface handler) throws Exception
Exceptionpublic static void doTestGetRegionInfo(Hbase.Iface handler) throws Exception
Exceptionpublic static void doTestAppend()
throws Exception
Exception