- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {FileOutputStream f =
File file;new FileOutputStream(file)
String name;new FileOutputStream(name)
File file;new FileOutputStream(file, true)
- Smart code suggestions by Codota
}
@Override public void stop() { http.close(); super.stop(); }
/** 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; }
int run2(PrintStream err) throws InterruptedException { latch.await(); err.println("Closing server."); server.close(); return 0; }
int run2(PrintStream err) throws InterruptedException { latch.await(); err.println("Closing server."); server.close(); return 0; }
@Override public void stop() { http.close(); super.stop(); }