@Test public void testNormalizeRequestKey() throws Exception { assertEquals("&NOW=<redacted>", normalizeRequestKey("&NOW=1448689151133")); }
@VisibleForTesting final String normalizeRequestKey(String str) { str = NOW_TIMESTAMP_PATTERN.matcher(str).replaceAll("$1<redacted>"); str = SHARD_AND_REPLICA_PATTERN.matcher(str).replaceAll("$1<redacted>$2<redacted>"); str = normalizeWhitespace(str); return str; }
RetryingSolrServer extends SolrClient { @VisibleForTesting final String normalizeRequestKey(String str) { str = NOW_TIMESTAMP_PATTERN.matcher(str).replaceAll("$1<redacted>"); str = SHARD_AND_REPLICA_PATTERN.matcher(str).replaceAll("$1<redacted>$2<redacted>"); str = normalizeWhitespace(str); return str; } }
RetryingSolrServer extends SolrClient { @VisibleForTesting final String normalizeRequestKey(String str) { str = NOW_TIMESTAMP_PATTERN.matcher(str).replaceAll("$1<redacted>"); str = SHARD_AND_REPLICA_PATTERN.matcher(str).replaceAll("$1<redacted>$2<redacted>"); str = normalizeWhitespace(str); return str; } RetryingSolrServer(SolrClient solrServer, 
                            RetryPolicyFactory retryPolicyFactory, 
                            MetricsFacade metrics); }
RetryingSolrServer extends SolrClient { @VisibleForTesting final String normalizeRequestKey(String str) { str = NOW_TIMESTAMP_PATTERN.matcher(str).replaceAll("$1<redacted>"); str = SHARD_AND_REPLICA_PATTERN.matcher(str).replaceAll("$1<redacted>$2<redacted>"); str = normalizeWhitespace(str); return str; } RetryingSolrServer(SolrClient solrServer, 
                            RetryPolicyFactory retryPolicyFactory, 
                            MetricsFacade metrics); final SolrClient getUnderlyingSolrServer(); @Override NamedList<Object> request(final SolrRequest request, String collection); @Override DocumentObjectBinder getBinder(); @Override void close(); }
RetryingSolrServer extends SolrClient { @VisibleForTesting final String normalizeRequestKey(String str) { str = NOW_TIMESTAMP_PATTERN.matcher(str).replaceAll("$1<redacted>"); str = SHARD_AND_REPLICA_PATTERN.matcher(str).replaceAll("$1<redacted>$2<redacted>"); str = normalizeWhitespace(str); return str; } RetryingSolrServer(SolrClient solrServer, 
                            RetryPolicyFactory retryPolicyFactory, 
                            MetricsFacade metrics); final SolrClient getUnderlyingSolrServer(); @Override NamedList<Object> request(final SolrRequest request, String collection); @Override DocumentObjectBinder getBinder(); @Override void close();  }