Class BinaryLinkServer


  • public final class BinaryLinkServer
    extends java.lang.Object
    Accepts the binary data from the forked VM and pushes it to parent VM as appropriate. This server assumes there is only the one and only client at any given point of time.
    • Field Detail

      • BUFFER_SIZE

        private static final int BUFFER_SIZE
      • methods

        private final java.util.Map<java.lang.String,​java.lang.reflect.Method> methods
      • forbidden

        private final java.util.Set<java.lang.String> forbidden
      • results

        private final java.util.concurrent.atomic.AtomicReference<java.util.List<IterationResult>> results
      • exception

        private final java.util.concurrent.atomic.AtomicReference<BenchmarkException> exception
      • plan

        private final java.util.concurrent.atomic.AtomicReference<ActionPlan> plan
      • clientPid

        private volatile long clientPid
    • Constructor Detail

      • BinaryLinkServer

        public BinaryLinkServer​(Options opts,
                                OutputFormat out)
                         throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • terminate

        public void terminate()
      • waitFinish

        public void waitFinish()
      • setPlan

        public void setPlan​(ActionPlan actionPlan)
      • getListenAddress

        private java.net.InetAddress getListenAddress()
      • getListenPort

        private int getListenPort()
      • getClientPid

        public long getClientPid()
      • getHost

        public java.lang.String getHost()
      • getPort

        public int getPort()