public class TestThriftHttpServer extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private Exception |
clientSideException |
org.junit.rules.ExpectedException |
exception |
private Exception |
httpServerException |
private Thread |
httpServerThread |
private static org.slf4j.Logger |
LOG |
(package private) int |
port |
protected static boolean |
tableCreated |
protected static HBaseTestingUtility |
TEST_UTIL |
private org.apache.hadoop.hbase.thrift.ThriftServer |
thriftServer |
Constructor and Description |
---|
TestThriftHttpServer() |
Modifier and Type | Method and Description |
---|---|
private void |
checkHttpMethods(String url) |
protected org.apache.hadoop.hbase.thrift.ThriftServer |
createThriftServer() |
(package private) void |
runThriftServer(int customHeaderSize) |
static void |
setUpBeforeClass() |
private void |
startHttpServerThread(String[] args) |
private void |
stopHttpServerThread() |
protected void |
talkToThriftServer(String url,
int customHeaderSize) |
static void |
tearDownAfterClass() |
void |
testExceptionThrownWhenMisConfigured() |
void |
testRunThriftServer() |
void |
testRunThriftServerWithHeaderBufferLength() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
protected static final HBaseTestingUtility TEST_UTIL
private Thread httpServerThread
private volatile Exception httpServerException
private Exception clientSideException
private org.apache.hadoop.hbase.thrift.ThriftServer thriftServer
int port
public org.junit.rules.ExpectedException exception
protected static volatile boolean tableCreated
public TestThriftHttpServer()
public static void setUpBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testExceptionThrownWhenMisConfigured() throws Exception
Exception
private void startHttpServerThread(String[] args)
public void testRunThriftServerWithHeaderBufferLength() throws Exception
Exception
protected org.apache.hadoop.hbase.thrift.ThriftServer createThriftServer()
public void testRunThriftServer() throws Exception
Exception
void runThriftServer(int customHeaderSize) throws Exception
Exception
private void checkHttpMethods(String url) throws Exception
Exception
protected void talkToThriftServer(String url, int customHeaderSize) throws Exception
Exception
private void stopHttpServerThread() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.