Class HBaseThriftTestingUtility

java.lang.Object
org.apache.hadoop.hbase.thrift.HBaseThriftTestingUtility

public class HBaseThriftTestingUtility extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getServerPort

      public int 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 - configuration
      type - the type of thrift server
      Throws:
      Exception - When starting the thrift server fails.
    • startThriftServerThread

      private void startThriftServerThread(String[] args)
    • 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 - configuration
      type - the type of thrift server
      Returns:
      the instance of ThriftServer
    • waitForThriftServer

      private void waitForThriftServer() throws Exception
      Throws:
      Exception
    • stopThriftServer

      public void stopThriftServer() throws Exception
      Throws:
      Exception