Package test.r2.integ

Examples of test.r2.integ.TestHttpServer$FoobarHandler


    final URI uri = PerfConfig.getHttpUri();
    final int numThreads = PerfConfig.getNumClientThreads();
    final int numMsgs = PerfConfig.getNumMessages();
    final int msgSize = PerfConfig.getMessageSize();

    final PerfClient client = PerfClients.httpRpc(uri, numThreads, numMsgs, msgSize);
    client.run();
    client.shutdown();
  }
View Full Code Here


    final URI uri = PerfConfig.getHttpUri();
    final int numThreads = PerfConfig.getNumClientThreads();
    final int numMsgs = PerfConfig.getNumMessages();
    final int msgSize = PerfConfig.getMessageSize();

    final PerfClient client = PerfClients.httpRest(uri, numThreads, numMsgs, msgSize);
    client.run();
    client.shutdown();
  }
View Full Code Here

  public static void main(String[] args) throws IOException
  {
    final int port = PerfConfig.getHttpPort();
    final URI relativeUri = PerfConfig.getRelativeUri();

    final Server server = new HttpPerfServerFactory().create(port, relativeUri);
    server.start();
  }
View Full Code Here

TOP

Related Classes of test.r2.integ.TestHttpServer$FoobarHandler

Copyright © 2018 www.massapicom. 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.