public class TestThriftServerCmdLine extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
protected org.apache.hadoop.hbase.thrift.ImplType |
implType |
private static org.slf4j.Logger |
LOG |
protected boolean |
specifyBindIP |
protected boolean |
specifyCompact |
protected boolean |
specifyFramed |
protected static boolean |
tableCreated |
protected static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestThriftServerCmdLine(org.apache.hadoop.hbase.thrift.ImplType implType,
boolean specifyFramed,
boolean specifyBindIP,
boolean specifyCompact) |
Modifier and Type | Method and Description |
---|---|
(package private) static ThriftServerRunner |
createBoundServer(Supplier<org.apache.hadoop.hbase.thrift.ThriftServer> thriftServerSupplier) |
(package private) static ThriftServerRunner |
createBoundServer(Supplier<org.apache.hadoop.hbase.thrift.ThriftServer> thriftServerSupplier,
boolean protocolPortClash,
boolean infoPortClash) |
(package private) static ThriftServerRunner |
createBoundServer(Supplier<org.apache.hadoop.hbase.thrift.ThriftServer> thriftServerSupplier,
org.apache.hadoop.hbase.thrift.ImplType implType,
boolean specifyFramed,
boolean specifyCompact,
boolean specifyBindIP) |
(package private) static ThriftServerRunner |
createBoundServer(Supplier<org.apache.hadoop.hbase.thrift.ThriftServer> thriftServerSupplier,
org.apache.hadoop.hbase.thrift.ImplType implType,
boolean specifyFramed,
boolean specifyCompact,
boolean specifyBindIP,
boolean protocolPortClash,
boolean infoPortClash) |
static Collection<Object[]> |
getParameters() |
private String |
getParametersString() |
(package private) static int |
getRandomPort() |
protected Supplier<org.apache.hadoop.hbase.thrift.ThriftServer> |
getThriftServerSupplier() |
private static boolean |
isBindException(Exception cmdLineException) |
static void |
setUpBeforeClass() |
(package private) static ThriftServerRunner |
startCmdLineThread(Supplier<org.apache.hadoop.hbase.thrift.ThriftServer> supplier,
String[] args) |
protected void |
talkToThriftServer(int port) |
static void |
tearDownAfterClass() |
void |
testRunThriftServer() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
protected final org.apache.hadoop.hbase.thrift.ImplType implType
protected boolean specifyFramed
protected boolean specifyBindIP
protected boolean specifyCompact
protected static final HBaseTestingUtility TEST_UTIL
protected static volatile boolean tableCreated
public TestThriftServerCmdLine(org.apache.hadoop.hbase.thrift.ImplType implType, boolean specifyFramed, boolean specifyBindIP, boolean specifyCompact)
public static Collection<Object[]> getParameters()
private String getParametersString()
public static void setUpBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
static ThriftServerRunner startCmdLineThread(Supplier<org.apache.hadoop.hbase.thrift.ThriftServer> supplier, String[] args)
static int getRandomPort()
protected Supplier<org.apache.hadoop.hbase.thrift.ThriftServer> getThriftServerSupplier()
static ThriftServerRunner createBoundServer(Supplier<org.apache.hadoop.hbase.thrift.ThriftServer> thriftServerSupplier) throws Exception
Exception
static ThriftServerRunner createBoundServer(Supplier<org.apache.hadoop.hbase.thrift.ThriftServer> thriftServerSupplier, boolean protocolPortClash, boolean infoPortClash) throws Exception
Exception
static ThriftServerRunner createBoundServer(Supplier<org.apache.hadoop.hbase.thrift.ThriftServer> thriftServerSupplier, org.apache.hadoop.hbase.thrift.ImplType implType, boolean specifyFramed, boolean specifyCompact, boolean specifyBindIP) throws Exception
Exception
static ThriftServerRunner createBoundServer(Supplier<org.apache.hadoop.hbase.thrift.ThriftServer> thriftServerSupplier, org.apache.hadoop.hbase.thrift.ImplType implType, boolean specifyFramed, boolean specifyCompact, boolean specifyBindIP, boolean protocolPortClash, boolean infoPortClash) throws Exception
protocolPortClash
- This param is just so we can manufacture a port clash so we can test
the code does the right thing when this happens during actual test
runs. Ugly but works.Exception
TestBindExceptionHandling.testProtocolPortClash()
private static boolean isBindException(Exception cmdLineException)
public void testRunThriftServer() throws Exception
Exception
protected void talkToThriftServer(int port) throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.