@Test public void aclsAreReplicatedAcrossShards() { range(0, 100).forEach(index -> assertTrue(router.routeAcl(randomizer.nextInt(), randomizer.nextInt(), acl))); }
@Override public Boolean routeAcl(int shardCount, int shardInstance, Acl acl) { return true; }
DBIDRangeRouter implements DocRouter { @Override public Boolean routeAcl(int shardCount, int shardInstance, Acl acl) { return true; } }
DBIDRangeRouter implements DocRouter { @Override public Boolean routeAcl(int shardCount, int shardInstance, Acl acl) { return true; } DBIDRangeRouter(long startRange, long endRange); }
DBIDRangeRouter implements DocRouter { @Override public Boolean routeAcl(int shardCount, int shardInstance, Acl acl) { return true; } DBIDRangeRouter(long startRange, long endRange); void setEndRange(long endRange); void setExpanded(boolean expanded); void setInitialized(boolean initialized); boolean getInitialized(); long getEndRange(); long getStartRange(); boolean getExpanded(); @Override Boolean routeAcl(int shardCount, int shardInstance, Acl acl); @Override Boolean routeNode(int shardCount, int shardInstance, Node node); @Override Map<String, String> getProperties(Optional<QName> shardProperty); }
DBIDRangeRouter implements DocRouter { @Override public Boolean routeAcl(int shardCount, int shardInstance, Acl acl) { return true; } DBIDRangeRouter(long startRange, long endRange); void setEndRange(long endRange); void setExpanded(boolean expanded); void setInitialized(boolean initialized); boolean getInitialized(); long getEndRange(); long getStartRange(); boolean getExpanded(); @Override Boolean routeAcl(int shardCount, int shardInstance, Acl acl); @Override Boolean routeNode(int shardCount, int shardInstance, Node node); @Override Map<String, String> getProperties(Optional<QName> shardProperty);  }