@Test public void testSimpleSelection1() throws Exception { NetworkOrganizer organizer = new NetworkOrganizer("127.0.0.0/24"); List<String> list = organizer.getSubset(1); assertEquals(1, list.size()); assertEquals("127.0.0.1", list.get(0)); }
public List<String> getSubset(int numShards) { return getSubset(numShards, null); }
NetworkOrganizer { public List<String> getSubset(int numShards) { return getSubset(numShards, null); } }
NetworkOrganizer { public List<String> getSubset(int numShards) { return getSubset(numShards, null); } protected  NetworkOrganizer(@NonNull Collection<NetworkInformation> infoSet);  NetworkOrganizer(@NonNull Collection<NetworkInformation> infoSet, String mask);  NetworkOrganizer(@NonNull String networkMask); }
NetworkOrganizer { public List<String> getSubset(int numShards) { return getSubset(numShards, null); } protected  NetworkOrganizer(@NonNull Collection<NetworkInformation> infoSet);  NetworkOrganizer(@NonNull Collection<NetworkInformation> infoSet, String mask);  NetworkOrganizer(@NonNull String networkMask); String getMatchingAddress(); List<String> getSubset(int numShards); List<String> getSubset(int numShards, Collection<String> primary); }
NetworkOrganizer { public List<String> getSubset(int numShards) { return getSubset(numShards, null); } protected  NetworkOrganizer(@NonNull Collection<NetworkInformation> infoSet);  NetworkOrganizer(@NonNull Collection<NetworkInformation> infoSet, String mask);  NetworkOrganizer(@NonNull String networkMask); String getMatchingAddress(); List<String> getSubset(int numShards); List<String> getSubset(int numShards, Collection<String> primary);  }