int clusterPort, int collectionLength) { if (!AwsUtils.isDeployedToAWS() || !processing.equals("<connect>")) { GL.error("ha", "Unrecognized scheme {} for {} in {}", getScheme(uri), processing, uri);
throw new IllegalArgumentException("Conflicting multicast discovery addresses in cluster configuration"); } else if (multicastAddressesCount > 0) { if (AwsUtils.isDeployedToAWS() && !InternalSystemProperty.CLUSTER_BYPASS_AWS_CHECK.getBooleanProperty(gatewayConfiguration)) { throw new IllegalArgumentException("Multicast cluster configuration not supported on AWS, use " + "aws://security-group/<security-group-name> in connect tag");