Examples of stopThriftServer()


Examples of com.netflix.priam.utils.JMXNodeTool.stopThriftServer()

      nodetool = JMXNodeTool.instance(config);
    } catch (JMXConnectionException e) {
      return Response.status(503).entity("JMXConnectionException")
          .build();
    }
        nodetool.stopThriftServer();
        return Response.ok(REST_SUCCESS, MediaType.APPLICATION_JSON).build();
    }

    @GET
    @Path("/enablethrift")
View Full Code Here

Examples of com.netflix.priam.utils.JMXNodeTool.stopThriftServer()

      nodetool = JMXNodeTool.instance(config);
    } catch (JMXConnectionException e) {
      return Response.status(503).entity("JMXConnectionException")
          .build();
    }
        nodetool.stopThriftServer();
        return Response.ok(REST_SUCCESS, MediaType.APPLICATION_JSON).build();
    }

    @GET
    @Path("/enablethrift")
View Full Code Here

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

    TProtocol protocol = new TBinaryProtocol(transport);
    ChronosService.Client client = new ChronosService.Client(protocol);
    client.getTimestamp();
    transport.close();

    chronosServer.stopThriftServer();
    assert true;

    chronosServer.getFailoverWatcher().close();
  }
View Full Code Here

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

    Thread.sleep(500); // wait for server to start
    ChronosClientWatcher chronosClientWatcher = createChronosClientWatcher();
    chronosClientWatcher.getTimestamp();
   
    chronosServer.stopThriftServer();
    chronosServer.getFailoverWatcher().close();
    chronosClientWatcher.close();
    assertTrue(true);
  }
View Full Code Here

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

    ChronosClient chronosClient = createChronosServer();
    long timestamp1 = chronosClient.getTimestamp();
    long timestamp2 = chronosClient.getTimestamp();
    assertTrue(timestamp1 < timestamp2);
   
    chronosServer.stopThriftServer();
    chronosServer.getFailoverWatcher().close();
    chronosClient.getChronosClientWatcher().close();
  }
 
  @Test
View Full Code Here

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

    ChronosClient chronosClient = createChronosServer();
    long timestamp1 = chronosClient.getTimestamps(100);
    long timestamp2 = chronosClient.getTimestamps(100);
    assertTrue(timestamp2 - timestamp1 >= 100);

    chronosServer.stopThriftServer();
    chronosServer.getFailoverWatcher().close();
    chronosClient.getChronosClientWatcher().close();
  }

}
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.