@Test public void testGetBindings() { final SxpBindingFields localBinding = getBinding("1.1.1.1/32", 10); final SxpBindingFields networkBinding = getNetworkBinding("2.2.2.2/32", 20); assertBindings(database.addBindings(mergeBindings(localBinding, networkBinding)), mergeBindings(localBinding, networkBinding)); assertBindings(database.getBindings(), mergeBindings(localBinding, networkBinding)); assertBindings(database.getBindings(BindingOriginsConfig.LOCAL_ORIGIN), Collections.singletonList(localBinding)); assertBindings(database.getBindings(BindingOriginsConfig.NETWORK_ORIGIN), Collections.singletonList(networkBinding)); }
@Override public synchronized List<MasterDatabaseBinding> getBindings() { return new ArrayList<>(bindingMap.values()); }
MasterDatabaseImpl extends MasterDatabase { @Override public synchronized List<MasterDatabaseBinding> getBindings() { return new ArrayList<>(bindingMap.values()); } }
MasterDatabaseImpl extends MasterDatabase { @Override public synchronized List<MasterDatabaseBinding> getBindings() { return new ArrayList<>(bindingMap.values()); }  }
MasterDatabaseImpl extends MasterDatabase { @Override public synchronized List<MasterDatabaseBinding> getBindings() { return new ArrayList<>(bindingMap.values()); }  @Override void initDBPropagatingListener(BindingDispatcher dispatcher, SxpDomain domain); @Override synchronized List<MasterDatabaseBinding> addBindings(List<T> bindings); @Override synchronized List<MasterDatabaseBinding> getBindings(); @Override synchronized List<MasterDatabaseBinding> getBindings(OriginType origin); @Override synchronized List<MasterDatabaseBinding> deleteBindings(List<T> bindings); @Override void close(); }
MasterDatabaseImpl extends MasterDatabase { @Override public synchronized List<MasterDatabaseBinding> getBindings() { return new ArrayList<>(bindingMap.values()); }  @Override void initDBPropagatingListener(BindingDispatcher dispatcher, SxpDomain domain); @Override synchronized List<MasterDatabaseBinding> addBindings(List<T> bindings); @Override synchronized List<MasterDatabaseBinding> getBindings(); @Override synchronized List<MasterDatabaseBinding> getBindings(OriginType origin); @Override synchronized List<MasterDatabaseBinding> deleteBindings(List<T> bindings); @Override void close();  }