@Test public void testResolve() { final List<LookupResult> lookupResults = resolver.resolve(SERVICE); Assert.assertNotNull("lookupResults", lookupResults); Assert.assertEquals("num results", 1, lookupResults.size()); final LookupResult lookupResult = lookupResults.get(0); Assert.assertEquals("host", memcachedInstance.Node.Address, lookupResult.host()); Assert.assertEquals("port", memcachedInstance.Service.Port, lookupResult.port()); Assert.assertEquals("getResolvedCluster", lookupResults, resolver.getResolvedCluster()); }
@Override public List<LookupResult> resolve(final String fqdn_ignored) { return resolvedCluster; }
HealthyMemcachedResolver implements DnsSrvResolver, HealthyTargetsList.TargetsChangedListener { @Override public List<LookupResult> resolve(final String fqdn_ignored) { return resolvedCluster; } }
HealthyMemcachedResolver implements DnsSrvResolver, HealthyTargetsList.TargetsChangedListener { @Override public List<LookupResult> resolve(final String fqdn_ignored) { return resolvedCluster; } HealthyMemcachedResolver(final HealthyTargetsList healthyTargetsList); }
HealthyMemcachedResolver implements DnsSrvResolver, HealthyTargetsList.TargetsChangedListener { @Override public List<LookupResult> resolve(final String fqdn_ignored) { return resolvedCluster; } HealthyMemcachedResolver(final HealthyTargetsList healthyTargetsList); @Override List<LookupResult> resolve(final String fqdn_ignored); @Override void onTargetsChanged(final List<HealthInfoInstance> healthTargets); List<LookupResult> getResolvedCluster(); }
HealthyMemcachedResolver implements DnsSrvResolver, HealthyTargetsList.TargetsChangedListener { @Override public List<LookupResult> resolve(final String fqdn_ignored) { return resolvedCluster; } HealthyMemcachedResolver(final HealthyTargetsList healthyTargetsList); @Override List<LookupResult> resolve(final String fqdn_ignored); @Override void onTargetsChanged(final List<HealthInfoInstance> healthTargets); List<LookupResult> getResolvedCluster();  }