@Override public Throwable createException(String message, Throwable cause) { return new TopologyChangedException(message); } });
@Override public Throwable createException(String message, Throwable cause) { return new TopologyChangedException(message); } });
TopologyChangedStrategy tcs = supervisor.getConfiguration().getTopologyChangedStrategy(); if (tcs == CANCEL_RUNNING_OPERATION) { Exception exception = new TopologyChangedException(); supervisor.cancelAndNotify(exception); this.result = new KeysAssignmentResult(CHECK_STATE_FAILED, assignment); Exception exception = new TopologyChangedException("Unknown or unsupported TopologyChangedStrategy"); supervisor.cancelAndNotify(exception); this.result = new KeysAssignmentResult(CHECK_STATE_FAILED, assignment);
TopologyChangedStrategy tcs = supervisor.getConfiguration().getTopologyChangedStrategy(); if (tcs == CANCEL_RUNNING_OPERATION) { Exception exception = new TopologyChangedException(); supervisor.cancelAndNotify(exception); this.result = new KeysAssignmentResult(CHECK_STATE_FAILED, assignment); Exception exception = new TopologyChangedException("Unknown or unsupported TopologyChangedStrategy"); supervisor.cancelAndNotify(exception); this.result = new KeysAssignmentResult(CHECK_STATE_FAILED, assignment);