@Test public void getHosts() throws Exception { expectZergResponseBody(MANIFEST); replayAll(); assertEquals(HOSTS, connector.getHosts()); }
@Override public ImmutableSet<ZergHost> getHosts() throws BackingStoreException { ImmutableSet.Builder<ZergHost> hosts = ImmutableSet.builder(); for (Map.Entry<String, Map<String, ZergHost>> regionEntry : getRegions().entrySet()) { Map<String, ZergHost> region = regionEntry.getValue(); for (Map.Entry<String, ZergHost> hostEntry : region.entrySet()) { ZergHost host = hostEntry.getValue(); host.setName(hostEntry.getKey()); hosts.add(host); } } return hosts.build(); }
ZergConnectorImpl implements ZergConnector { @Override public ImmutableSet<ZergHost> getHosts() throws BackingStoreException { ImmutableSet.Builder<ZergHost> hosts = ImmutableSet.builder(); for (Map.Entry<String, Map<String, ZergHost>> regionEntry : getRegions().entrySet()) { Map<String, ZergHost> region = regionEntry.getValue(); for (Map.Entry<String, ZergHost> hostEntry : region.entrySet()) { ZergHost host = hostEntry.getValue(); host.setName(hostEntry.getKey()); hosts.add(host); } } return hosts.build(); } }
ZergConnectorImpl implements ZergConnector { @Override public ImmutableSet<ZergHost> getHosts() throws BackingStoreException { ImmutableSet.Builder<ZergHost> hosts = ImmutableSet.builder(); for (Map.Entry<String, Map<String, ZergHost>> regionEntry : getRegions().entrySet()) { Map<String, ZergHost> region = regionEntry.getValue(); for (Map.Entry<String, ZergHost> hostEntry : region.entrySet()) { ZergHost host = hostEntry.getValue(); host.setName(hostEntry.getKey()); hosts.add(host); } } return hosts.build(); } @Inject  ZergConnectorImpl(@Named(ZergDaoModule.ZERG_MANIFEST_URL_PROPERTY) String manifestUrl,
      CacheBuilder<Object, Object> regionsCache, ZergConnectorImpl.ZergLoader loader); }
ZergConnectorImpl implements ZergConnector { @Override public ImmutableSet<ZergHost> getHosts() throws BackingStoreException { ImmutableSet.Builder<ZergHost> hosts = ImmutableSet.builder(); for (Map.Entry<String, Map<String, ZergHost>> regionEntry : getRegions().entrySet()) { Map<String, ZergHost> region = regionEntry.getValue(); for (Map.Entry<String, ZergHost> hostEntry : region.entrySet()) { ZergHost host = hostEntry.getValue(); host.setName(hostEntry.getKey()); hosts.add(host); } } return hosts.build(); } @Inject  ZergConnectorImpl(@Named(ZergDaoModule.ZERG_MANIFEST_URL_PROPERTY) String manifestUrl,
      CacheBuilder<Object, Object> regionsCache, ZergConnectorImpl.ZergLoader loader); @Override ImmutableSet<ZergHost> getHosts(); }
ZergConnectorImpl implements ZergConnector { @Override public ImmutableSet<ZergHost> getHosts() throws BackingStoreException { ImmutableSet.Builder<ZergHost> hosts = ImmutableSet.builder(); for (Map.Entry<String, Map<String, ZergHost>> regionEntry : getRegions().entrySet()) { Map<String, ZergHost> region = regionEntry.getValue(); for (Map.Entry<String, ZergHost> hostEntry : region.entrySet()) { ZergHost host = hostEntry.getValue(); host.setName(hostEntry.getKey()); hosts.add(host); } } return hosts.build(); } @Inject  ZergConnectorImpl(@Named(ZergDaoModule.ZERG_MANIFEST_URL_PROPERTY) String manifestUrl,
      CacheBuilder<Object, Object> regionsCache, ZergConnectorImpl.ZergLoader loader); @Override ImmutableSet<ZergHost> getHosts();  }