Java 类org.apache.hadoop.hbase.http.HttpServer.Builder 实例源码

项目:ditb    文件:HttpServerFunctionalTest.java   
/**
 * Create an HttpServer instance on the given address for the given webapp
 * @param host to bind
 * @param port to bind
 * @return the server
 * @throws IOException if it could not be created
 */
public static HttpServer createServer(String host, int port)
    throws IOException {
  prepareTestWebapp();
  return new HttpServer.Builder().setName(TEST)
      .addEndpoint(URI.create("http://" + host + ":" + port))
      .setFindPort(true).build();
}
项目:pbase    文件:HttpServerFunctionalTest.java   
/**
 * Create an HttpServer instance on the given address for the given webapp
 * @param host to bind
 * @param port to bind
 * @return the server
 * @throws IOException if it could not be created
 */
public static HttpServer createServer(String host, int port)
    throws IOException {
  prepareTestWebapp();
  return new HttpServer.Builder().setName(TEST)
      .addEndpoint(URI.create("http://" + host + ":" + port))
      .setFindPort(true).build();
}
项目:hbase    文件:HttpServerFunctionalTest.java   
/**
 * Create an HttpServer instance on the given address for the given webapp
 * @param host to bind
 * @param port to bind
 * @return the server
 * @throws IOException if it could not be created
 */
public static HttpServer createServer(String host, int port)
    throws IOException {
  prepareTestWebapp();
  return new HttpServer.Builder().setName(TEST)
      .addEndpoint(URI.create("http://" + host + ":" + port))
      .setFindPort(true).build();
}
项目:ditb    文件:HttpServerFunctionalTest.java   
private static Builder localServerBuilder(String webapp) {
  return new HttpServer.Builder().setName(webapp).addEndpoint(
      URI.create("http://localhost:0"));
}
项目:pbase    文件:HttpServerFunctionalTest.java   
private static Builder localServerBuilder(String webapp) {
  return new HttpServer.Builder().setName(webapp).addEndpoint(
      URI.create("http://localhost:0"));
}
项目:hbase    文件:HttpServerFunctionalTest.java   
private static Builder localServerBuilder(String webapp) {
  return new HttpServer.Builder().setName(webapp).addEndpoint(
      URI.create("http://localhost:0"));
}