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
Exception
public void doTestTableCreateDrop() throws Exception
Exception
public static void doTestTableCreateDrop(Hbase.Iface handler) throws Exception
Exception
public void doTestThriftMetrics() throws Exception
Exception
public static void createTestTables(Hbase.Iface handler) throws Exception
Exception
public static void checkTableList(Hbase.Iface handler) throws Exception
Exception
public static void dropTestTables(Hbase.Iface handler) throws Exception
Exception
public static void doTestIncrements(ThriftServerRunner.HBaseHandler handler) throws Exception
Exception
public void doTestTableMutations() throws Exception
Exception
public static void doTestTableMutations(Hbase.Iface handler) throws Exception
Exception
public void doTestTableTimestampsAndColumns() throws Exception
Exception
public void doTestTableScanners() throws Exception
Exception
public void doTestGetTableRegions() throws Exception
Exception
public static void doTestGetTableRegions(Hbase.Iface handler) throws Exception
Exception
public static void doTestGetRegionInfo(Hbase.Iface handler) throws Exception
Exception
public static void doTestAppend() throws Exception
Exception