@GET
@Path("/repair")
public Response cassRepair(@QueryParam("sequential") boolean isSequential, @QueryParam("localDC") boolean localDCOnly, @DefaultValue("false") @QueryParam("primaryRange") boolean primaryRange) throws IOException, ExecutionException, InterruptedException
{
JMXNodeTool nodetool = null;
try {
nodetool = JMXNodeTool.instance(config);
} catch (JMXConnectionException e) {
return Response.status(503).entity("JMXConnectionException")
.build();
}
logger.debug("node tool repair being called");
nodetool.repair(isSequential, localDCOnly, primaryRange);
return Response.ok(REST_SUCCESS, MediaType.APPLICATION_JSON).build();
}