Package org.apache.hadoop.hbase.thrift
Class HBaseThriftTestingUtility
java.lang.Object
org.apache.hadoop.hbase.thrift.HBaseThriftTestingUtility
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.thrift.ThriftServercreateThriftServer(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.thrift.ThriftMetrics.ThriftServerType type) create a new thrift serverintvoidstartThriftServer(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.thrift.ThriftMetrics.ThriftServerType type) start thrift serverprivate voidstartThriftServerThread(String[] args) voidprivate 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
-