Tabnine Logo
ThriftServer.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.hadoop.hbase.thrift2.ThriftServer
constructor

Best Java code snippets using org.apache.hadoop.hbase.thrift2.ThriftServer.<init> (Showing top 6 results out of 315)

origin: apache/hbase

/**
 * Start up the Thrift2 server.
 */
public static void main(String[] args) throws Exception {
 final Configuration conf = HBaseConfiguration.create();
 // for now, only time we return is on an argument error.
 final int status = ToolRunner.run(conf, new ThriftServer(conf), args);
 System.exit(status);
}
origin: apache/hbase

@Override
protected ThriftServer createThriftServer() {
 return new ThriftServer(TEST_UTIL.getConfiguration());
}
origin: apache/hbase

@Override
protected ThriftServer createThriftServer() {
 return new ThriftServer(TEST_UTIL.getConfiguration());
}
origin: apache/hbase

private static ThriftServer startThriftServer(int port, boolean useHttp) {
 Configuration thriftServerConf = HBaseConfiguration.create(TEST_UTIL.getConfiguration());
 thriftServerConf.setInt(Constants.PORT_CONF_KEY, port);
 if (useHttp) {
  thriftServerConf.setBoolean(Constants.USE_HTTP_CONF_KEY, true);
 }
 ThriftServer server = new ThriftServer(thriftServerConf);
 Thread thriftServerThread = new Thread(() -> {
  try{
   server.run();
  } catch (Exception t) {
   LOG.error("Thrift Server failed", t);
  }
 });
 thriftServerThread.setDaemon(true);
 thriftServerThread.start();
 if (useHttp) {
  TEST_UTIL.waitFor(10000, () -> server.getHttpServer() != null);
 } else {
  TEST_UTIL.waitFor(10000, () -> server.getTserver() != null);
 }
 return server;
}
origin: org.apache.hbase/hbase-thrift

/**
 * Start up the Thrift2 server.
 */
public static void main(String[] args) throws Exception {
 final Configuration conf = HBaseConfiguration.create();
 // for now, only time we return is on an argument error.
 final int status = ToolRunner.run(conf, new ThriftServer(), args);
 System.exit(status);
}
origin: com.aliyun.hbase/alihbase-thrift

/**
 * Start up the Thrift2 server.
 */
public static void main(String[] args) throws Exception {
 final Configuration conf = HBaseConfiguration.create();
 // for now, only time we return is on an argument error.
 final int status = ToolRunner.run(conf, new ThriftServer(), args);
 System.exit(status);
}
org.apache.hadoop.hbase.thrift2ThriftServer<init>

Popular methods of ThriftServer

  • registerFilters
    Adds the option to pre-load filters at startup.
  • bindToPort
  • createExecutor
  • getOptions
  • getTHsHaServer
  • getTNonBlockingServer
  • getTProtocolFactory
  • getTThreadPoolServer
  • getTTransportFactory
  • parseArguments
  • printUsage
  • getConf
  • printUsage,
  • getConf,
  • getTThreadedSelectorServer,
  • getHttpServer,
  • getTserver,
  • run,
  • stop

Popular in Java

  • Making http requests using okhttp
  • getContentResolver (Context)
  • scheduleAtFixedRate (Timer)
  • compareTo (BigDecimal)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now