Package org.apache.hadoop.hbase.thrift
Class HBaseThriftTestingUtility
java.lang.Object
org.apache.hadoop.hbase.thrift.HBaseThriftTestingUtility
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.thrift.ThriftServer
createThriftServer
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.thrift.ThriftMetrics.ThriftServerType type) create a new thrift serverint
void
startThriftServer
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.thrift.ThriftMetrics.ThriftServerType type) start thrift serverprivate void
startThriftServerThread
(String[] args) void
private void
-
Field Details
-
LOG
-
thriftServerThread
-
thriftServerException
-
thriftServer
-
port
-
-
Constructor Details
-
HBaseThriftTestingUtility
public HBaseThriftTestingUtility()
-
-
Method Details
-
getServerPort
-
startThriftServer
public void startThriftServer(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.thrift.ThriftMetrics.ThriftServerType type) throws Exception start thrift server- Parameters:
conf
- configurationtype
- the type of thrift server- Throws:
Exception
- When starting the thrift server fails.
-
startThriftServerThread
-
createThriftServer
private org.apache.hadoop.hbase.thrift.ThriftServer createThriftServer(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.thrift.ThriftMetrics.ThriftServerType type) create a new thrift server- Parameters:
conf
- configurationtype
- the type of thrift server- Returns:
- the instance of ThriftServer
-
waitForThriftServer
- Throws:
Exception
-
stopThriftServer
- Throws:
Exception
-