Package com.google.caliper.runner.ServerSocketService

Examples of com.google.caliper.runner.ServerSocketService.OpenedSocket.writer()


        new Runnable() {
          @Override public void run() {
            try {
              OpenedSocket openedSocket = worker.socketFuture().get();
              logger.fine("successfully opened the pipe from the worker");
              socketWriter = openedSocket.writer();
              runningReadStreams.addAndGet(1);
              openStreams.addAndGet(1);
              streamExecutor.submit(threadRenaming("worker-socket",
                  new StreamReader(openedSocket.reader())));
            } catch (ExecutionException e) {
View Full Code Here


  /**
   * Opens a connection to the service and identifies itself using the id.
   */
  private OpenedSocket openConnectionAndIdentify(UUID id) throws IOException {
    OpenedSocket clientSocket = openClientConnection();
    Writer writer = clientSocket.writer();
    writer.write(gson.toJson(new StartupAnnounceMessage(id)));
    writer.write('\n');
    writer.flush();
    return clientSocket;
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.