Skip to content

Commit

Permalink
Expose cancelling all repairs to JmxProxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Radovan Zvoncek committed Jan 16, 2015
1 parent b45ff49 commit 5825959
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/com/spotify/reaper/cassandra/JmxProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,14 @@ public int getPendingCompactions() {
return cmProxy.getPendingTasks();
}

/**
* Terminates all ongoing repairs on the node this proxy is connected to
*/
public void cancelAllRepairs() {
checkNotNull(ssProxy, "Looks like the proxy is not connected");
ssProxy.forceTerminateAllRepairSessions();
}

/**
* Triggers a repair of range (beginToken, endToken] for given keyspace and column family.
*
Expand Down

0 comments on commit 5825959

Please sign in to comment.