public void syncComplete(boolean success) { if (success) { set(stat); } else { setException(new RepairException(desc, String.format("Sync failed between %s and %s", r1.endpoint, r2.endpoint))); } } }
public void syncComplete(boolean success) { if (success) { set(stat); } else { setException(new RepairException(desc, String.format("Sync failed between %s and %s", r1.endpoint, r2.endpoint))); } } }
public void syncComplete(boolean success) { if (success) { set(stat); } else { setException(new RepairException(desc, String.format("Sync failed between %s and %s", r1.endpoint, r2.endpoint))); } } }
/** * Receive MerkleTrees from replica node. * * @param trees MerkleTrees that is sent from replica. Null if validation failed on replica node. */ public void treesReceived(MerkleTrees trees) { if (trees == null) { setException(new RepairException(desc, "Validation failed in " + endpoint)); } else { set(new TreeResponse(endpoint, trees)); } } }
exception = new RepairException(desc, String.format("Sync failed between %s and %s", nodes.endpoint1, nodes.endpoint2)); forceShutdown(); return;
/** * Receive MerkleTrees from replica node. * * @param trees MerkleTrees that is sent from replica. Null if validation failed on replica node. */ public void treesReceived(MerkleTrees trees) { if (trees == null) { setException(new RepairException(desc, "Validation failed in " + endpoint)); } else { set(new TreeResponse(endpoint, trees)); } } }
/** * Receive MerkleTrees from replica node. * * @param trees MerkleTrees that is sent from replica. Null if validation failed on replica node. */ public void treesReceived(MerkleTrees trees) { if (trees == null) { setException(new RepairException(desc, "Validation failed in " + endpoint)); } else { set(new TreeResponse(endpoint, trees)); } } }
exception = new RepairException(desc, "Validation failed in " + endpoint); forceShutdown(); return;