void RegistryPluginI::initialize() { IceGrid::RegistryPluginFacadePtr facade = IceGrid::getRegistryPluginFacade(); assert(facade); ReplicaGroupFilterPtr f = new ReplicaGroupFilterI(facade); facade->addReplicaGroupFilter("filterByServer", f); test(facade->removeReplicaGroupFilter("filterByServer", f)); test(!facade->removeReplicaGroupFilter("filterByServer", f)); facade->addReplicaGroupFilter("filterByServer", f); facade->addReplicaGroupFilter("excludeServer", new ExcludeReplicaGroupFilterI(facade, "Server2")); facade->addReplicaGroupFilter("excludeServer", new ExcludeReplicaGroupFilterI(facade, "Server3")); facade->addTypeFilter("::Test::TestIntf2", new TypeFilterI(facade)); }
void RegistryPluginI::initialize() { IceGrid::RegistryPluginFacadePtr facade = IceGrid::getRegistryPluginFacade(); if(facade) { facade->addReplicaGroupFilter("filterByCurrency", new ReplicaGroupFilterI(facade)); } }