List of usage examples for org.apache.cassandra.tools RepairRunner RepairRunner
public RepairRunner(PrintStream out, StorageServiceMBean ssProxy, String keyspace,
Map<String, String> options)
From source file:com.wenyu.utils.ClusterToolNodeProbe.java
License:Apache License
public void repairAsync(final PrintStream out, final String keyspace, Map<String, String> options) throws IOException { RepairRunner runner = new RepairRunner(out, ssProxy, keyspace, options); try {//from w w w . ja va 2 s. c om jmxc.addConnectionNotificationListener(runner, null, null); ssProxy.addNotificationListener(runner, null, null); runner.run(); } catch (Exception e) { throw new IOException(e); } finally { try { ssProxy.removeNotificationListener(runner); jmxc.removeConnectionNotificationListener(runner); } catch (Throwable e) { out.println("Exception occurred during clean-up. " + e); } } }