Examples of doAsActiveServer()


Examples of com.xiaomi.infra.chronos.ChronosServer.doAsActiveServer()

  public void testDoAsActiveServer() throws TException, IOException, ChronosException {
    final ChronosServer chronosServer = createChronosServer(new HostPort("127.0.0.1", 2187));
    Thread thread = new Thread() {
      @Override
      public void run() {
        chronosServer.doAsActiveServer();
      }
    };
    thread.start();

    TTransport transport = new TSocket("127.0.0.1", 2187);
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.