@Override public Throwable createException(String message, Throwable cause) { return new ConfigMismatchException(message); } });
private void verifyPartitionGroup(ConfigCheck found) { if (!partitionGroupEnabled && found.partitionGroupEnabled || partitionGroupEnabled && !found.partitionGroupEnabled) { throw new ConfigMismatchException("Incompatible partition groups! " + "expected: " + (partitionGroupEnabled ? "enabled" : "disabled") + " / " + memberGroupType + ", found: " + (found.partitionGroupEnabled ? "enabled" : "disabled") + " / " + found.memberGroupType); } if (partitionGroupEnabled && memberGroupType != found.memberGroupType) { throw new ConfigMismatchException("Incompatible partition groups! expected: " + memberGroupType + ", found: " + found.memberGroupType); } }
@Override public Throwable createException(String message, Throwable cause) { return new ConfigMismatchException(message); } });
private void verifyPartitionGroup(ConfigCheck found) { if (!partitionGroupEnabled && found.partitionGroupEnabled || partitionGroupEnabled && !found.partitionGroupEnabled) { throw new ConfigMismatchException("Incompatible partition groups! " + "expected: " + (partitionGroupEnabled ? "enabled" : "disabled") + " / " + memberGroupType + ", found: " + (found.partitionGroupEnabled ? "enabled" : "disabled") + " / " + found.memberGroupType); } if (partitionGroupEnabled && memberGroupType != found.memberGroupType) { throw new ConfigMismatchException("Incompatible partition groups! expected: " + memberGroupType + ", found: " + found.memberGroupType); } }
private void verifyJoiner(ConfigCheck found) { if (!equals(joinerType, found.joinerType)) { throw new ConfigMismatchException("Incompatible joiners! expected: " + joinerType + ", found: " + found.joinerType); } }
private void verifyJoiner(ConfigCheck found) { if (!equals(joinerType, found.joinerType)) { throw new ConfigMismatchException("Incompatible joiners! expected: " + joinerType + ", found: " + found.joinerType); } }
private void verifyPartitionCount(ConfigCheck found) { String expectedPartitionCount = properties.get(PARTITION_COUNT.getName()); String foundPartitionCount = found.properties.get(PARTITION_COUNT.getName()); if (!equals(expectedPartitionCount, foundPartitionCount)) { throw new ConfigMismatchException("Incompatible partition count! expected: " + expectedPartitionCount + ", found: " + foundPartitionCount); } }
private void verifyApplicationValidationToken(ConfigCheck found) { String expectedValidationToken = properties.get(APPLICATION_VALIDATION_TOKEN.getName()); String foundValidationToken = found.properties.get(APPLICATION_VALIDATION_TOKEN.getName()); if (!equals(expectedValidationToken, foundValidationToken)) { throw new ConfigMismatchException("Incompatible '" + APPLICATION_VALIDATION_TOKEN + "'! expected: " + expectedValidationToken + ", found: " + foundValidationToken); } }
private void verifyApplicationValidationToken(ConfigCheck found) { String expectedValidationToken = properties.get(APPLICATION_VALIDATION_TOKEN.getName()); String foundValidationToken = found.properties.get(APPLICATION_VALIDATION_TOKEN.getName()); if (!equals(expectedValidationToken, foundValidationToken)) { throw new ConfigMismatchException("Incompatible '" + APPLICATION_VALIDATION_TOKEN + "'! expected: " + expectedValidationToken + ", found: " + foundValidationToken); } }
private void verifyPartitionCount(ConfigCheck found) { String expectedPartitionCount = properties.get(PARTITION_COUNT.getName()); String foundPartitionCount = found.properties.get(PARTITION_COUNT.getName()); if (!equals(expectedPartitionCount, foundPartitionCount)) { throw new ConfigMismatchException("Incompatible partition count! expected: " + expectedPartitionCount + ", found: " + foundPartitionCount); } }