Tabnine Logo
HttpServer.close
Code IndexAdd Tabnine to your IDE (free)

How to use
close
method
in
org.apache.avro.ipc.HttpServer

Best Java code snippets using org.apache.avro.ipc.HttpServer.close (Showing top 5 results out of 315)

origin: apache/flume

@Override
public void stop() {
 http.close();
 super.stop();
}
origin: apache/avro

/** Sends RPCs and returns nanos elapsed. */
private static long sendRpcs(boolean withPlugin) throws IOException {
 HttpServer server = createServer(withPlugin);
 Transceiver t =
  new HttpTransceiver(new URL("http://127.0.0.1:"+server.getPort()+"/"));
 GenericRequestor requestor = new GenericRequestor(NULL_PROTOCOL, t);
 long now = System.nanoTime();
 for (int i = 0; i < COUNT; ++i) {
  requestor.request("null", null);
 }
 long elapsed = System.nanoTime() - now;
 t.close();
 server.close();
 return elapsed;
}
origin: org.apache.hadoop/avro

int run2(PrintStream err) throws InterruptedException {
 latch.await();
 err.println("Closing server.");
 server.close();
 return 0;
}
origin: org.apache.cassandra.deps/avro

int run2(PrintStream err) throws InterruptedException {
 latch.await();
 err.println("Closing server.");
 server.close();
 return 0;
}
origin: org.apache.flume.flume-ng-legacy-sources/flume-avro-source

@Override
public void stop() {
 http.close();
 super.stop();
}
org.apache.avro.ipcHttpServerclose

Popular methods of HttpServer

  • <init>
    Constructs a server to run with the given connector.
  • start
    Start the server.
  • getPort
  • join

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (Timer)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Permission (java.security)
    Legacy security code; do not use.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Top Vim plugins
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