@Test public void findAll() throws Exception { expect(zergConnector.getHosts()).andReturn(HOSTS); replayAll(); assertEquals(BIG_RING_INSTANCES, dao.findAll(BIG_RING)); }
@Override public ImmutableSet<CassandraInstance> findAll(String ring) throws BackingStoreException { return getHosts(ring).toCassandraInstances(); }
ZergCassandraInstanceDao implements CassandraInstanceDao { @Override public ImmutableSet<CassandraInstance> findAll(String ring) throws BackingStoreException { return getHosts(ring).toCassandraInstances(); } }
ZergCassandraInstanceDao implements CassandraInstanceDao { @Override public ImmutableSet<CassandraInstance> findAll(String ring) throws BackingStoreException { return getHosts(ring).toCassandraInstances(); } @Inject  ZergCassandraInstanceDao(ZergConnector zergConnector,
      @Named(ZergDaoModule.ZERG_REGION_PROPERTY) String currentRegion,
      @Named(ZergDaoModule.ZERG_CASSANDRA_RING_SCOPES) Map<String, String> ringScopes); }
ZergCassandraInstanceDao implements CassandraInstanceDao { @Override public ImmutableSet<CassandraInstance> findAll(String ring) throws BackingStoreException { return getHosts(ring).toCassandraInstances(); } @Inject  ZergCassandraInstanceDao(ZergConnector zergConnector,
      @Named(ZergDaoModule.ZERG_REGION_PROPERTY) String currentRegion,
      @Named(ZergDaoModule.ZERG_CASSANDRA_RING_SCOPES) Map<String, String> ringScopes); @Override ImmutableSet<CassandraInstance> findAll(String ring); @Override @Nullable CassandraInstance findById(String ring, int id); @Override void save(String ring, CassandraInstance instance); @Override void delete(String ring, CassandraInstance instance); }
ZergCassandraInstanceDao implements CassandraInstanceDao { @Override public ImmutableSet<CassandraInstance> findAll(String ring) throws BackingStoreException { return getHosts(ring).toCassandraInstances(); } @Inject  ZergCassandraInstanceDao(ZergConnector zergConnector,
      @Named(ZergDaoModule.ZERG_REGION_PROPERTY) String currentRegion,
      @Named(ZergDaoModule.ZERG_CASSANDRA_RING_SCOPES) Map<String, String> ringScopes); @Override ImmutableSet<CassandraInstance> findAll(String ring); @Override @Nullable CassandraInstance findById(String ring, int id); @Override void save(String ring, CassandraInstance instance); @Override void delete(String ring, CassandraInstance instance);  }