@Test public void testGetProperties() { Predicate<String> all = x -> true; Map<String,String> props = new java.util.HashMap<>(); parent.getProperties(props, all); replay(parent); List<String> children = new java.util.ArrayList<>(); children.add("foo"); children.add("ding"); expect(zc.getChildren( ZooUtil.getRoot(iid) + Constants.ZNAMESPACES + "/" + NSID + Constants.ZNAMESPACE_CONF)) .andReturn(children); expect(zc.get(ZooUtil.getRoot(iid) + Constants.ZNAMESPACES + "/" + NSID + Constants.ZNAMESPACE_CONF + "/" + "foo")).andReturn("bar".getBytes(UTF_8)); expect(zc.get(ZooUtil.getRoot(iid) + Constants.ZNAMESPACES + "/" + NSID + Constants.ZNAMESPACE_CONF + "/" + "ding")).andReturn("dong".getBytes(UTF_8)); replay(zc); c.getProperties(props, all); assertEquals(2, props.size()); assertEquals("bar", props.get("foo")); assertEquals("dong", props.get("ding")); }
@Override public void getProperties(Map<String,String> props, Predicate<String> filter) { Predicate<String> parentFilter = filter; if (getNamespaceId().equals(Namespace.ACCUMULO.id())) parentFilter = key -> isIteratorOrConstraint(key) ? false : filter.test(key); getPropCacheAccessor().getProperties(props, getPath(), filter, parent, parentFilter); }
NamespaceConfiguration extends AccumuloConfiguration { @Override public void getProperties(Map<String,String> props, Predicate<String> filter) { Predicate<String> parentFilter = filter; if (getNamespaceId().equals(Namespace.ACCUMULO.id())) parentFilter = key -> isIteratorOrConstraint(key) ? false : filter.test(key); getPropCacheAccessor().getProperties(props, getPath(), filter, parent, parentFilter); } }
NamespaceConfiguration extends AccumuloConfiguration { @Override public void getProperties(Map<String,String> props, Predicate<String> filter) { Predicate<String> parentFilter = filter; if (getNamespaceId().equals(Namespace.ACCUMULO.id())) parentFilter = key -> isIteratorOrConstraint(key) ? false : filter.test(key); getPropCacheAccessor().getProperties(props, getPath(), filter, parent, parentFilter); } NamespaceConfiguration(NamespaceId namespaceId, ServerContext context,
      AccumuloConfiguration parent); }
NamespaceConfiguration extends AccumuloConfiguration { @Override public void getProperties(Map<String,String> props, Predicate<String> filter) { Predicate<String> parentFilter = filter; if (getNamespaceId().equals(Namespace.ACCUMULO.id())) parentFilter = key -> isIteratorOrConstraint(key) ? false : filter.test(key); getPropCacheAccessor().getProperties(props, getPath(), filter, parent, parentFilter); } NamespaceConfiguration(NamespaceId namespaceId, ServerContext context,
      AccumuloConfiguration parent); AccumuloConfiguration getParentConfiguration(); @Override boolean isPropertySet(Property prop, boolean cacheAndWatch); @Override String get(Property property); @Override void getProperties(Map<String,String> props, Predicate<String> filter); @Override synchronized void invalidateCache(); @Override long getUpdateCount(); }
NamespaceConfiguration extends AccumuloConfiguration { @Override public void getProperties(Map<String,String> props, Predicate<String> filter) { Predicate<String> parentFilter = filter; if (getNamespaceId().equals(Namespace.ACCUMULO.id())) parentFilter = key -> isIteratorOrConstraint(key) ? false : filter.test(key); getPropCacheAccessor().getProperties(props, getPath(), filter, parent, parentFilter); } NamespaceConfiguration(NamespaceId namespaceId, ServerContext context,
      AccumuloConfiguration parent); AccumuloConfiguration getParentConfiguration(); @Override boolean isPropertySet(Property prop, boolean cacheAndWatch); @Override String get(Property property); @Override void getProperties(Map<String,String> props, Predicate<String> filter); @Override synchronized void invalidateCache(); @Override long getUpdateCount();  }