@Test public void testRegister() throws Exception { WriteTransaction wt = newWriteTransactionMock(); endpointRpcRegistry.register(epRendererAugmentation); Assert.assertEquals(1, EndpointRpcRegistry.registeredRenderers.size()); endpointRpcRegistry.unregister(epRendererAugmentation); Assert.assertEquals(0, EndpointRpcRegistry.registeredRenderers.size()); }
@Override public void register(EpRendererAugmentation epRendererAugmentation) { if (epRendererAugmentation != null) { registeredRenderers.putIfAbsent(epRendererAugmentation.getClass().getName(), epRendererAugmentation); LOG.info("Registered {}", epRendererAugmentation.getClass().getName()); } }
EndpointRpcRegistry implements EndpointService, EpRendererAugmentationRegistry, AutoCloseable { @Override public void register(EpRendererAugmentation epRendererAugmentation) { if (epRendererAugmentation != null) { registeredRenderers.putIfAbsent(epRendererAugmentation.getClass().getName(), epRendererAugmentation); LOG.info("Registered {}", epRendererAugmentation.getClass().getName()); } } }
EndpointRpcRegistry implements EndpointService, EpRendererAugmentationRegistry, AutoCloseable { @Override public void register(EpRendererAugmentation epRendererAugmentation) { if (epRendererAugmentation != null) { registeredRenderers.putIfAbsent(epRendererAugmentation.getClass().getName(), epRendererAugmentation); LOG.info("Registered {}", epRendererAugmentation.getClass().getName()); } } EndpointRpcRegistry(DataBroker dataProvider); }
EndpointRpcRegistry implements EndpointService, EpRendererAugmentationRegistry, AutoCloseable { @Override public void register(EpRendererAugmentation epRendererAugmentation) { if (epRendererAugmentation != null) { registeredRenderers.putIfAbsent(epRendererAugmentation.getClass().getName(), epRendererAugmentation); LOG.info("Registered {}", epRendererAugmentation.getClass().getName()); } } EndpointRpcRegistry(DataBroker dataProvider); @Override void register(EpRendererAugmentation epRendererAugmentation); @Override void unregister(EpRendererAugmentation regImp); @Override void close(); @Override Future<RpcResult<Void>> registerEndpoint(RegisterEndpointInput input); @Override Future<RpcResult<Void>> registerL3PrefixEndpoint(RegisterL3PrefixEndpointInput input); @Override Future<RpcResult<Void>> unregisterEndpoint(UnregisterEndpointInput input); @Override Future<RpcResult<Void>> setEndpointGroupConditions(SetEndpointGroupConditionsInput input); @Override Future<RpcResult<Void>> unsetEndpointGroupConditions(UnsetEndpointGroupConditionsInput input); }
EndpointRpcRegistry implements EndpointService, EpRendererAugmentationRegistry, AutoCloseable { @Override public void register(EpRendererAugmentation epRendererAugmentation) { if (epRendererAugmentation != null) { registeredRenderers.putIfAbsent(epRendererAugmentation.getClass().getName(), epRendererAugmentation); LOG.info("Registered {}", epRendererAugmentation.getClass().getName()); } } EndpointRpcRegistry(DataBroker dataProvider); @Override void register(EpRendererAugmentation epRendererAugmentation); @Override void unregister(EpRendererAugmentation regImp); @Override void close(); @Override Future<RpcResult<Void>> registerEndpoint(RegisterEndpointInput input); @Override Future<RpcResult<Void>> registerL3PrefixEndpoint(RegisterL3PrefixEndpointInput input); @Override Future<RpcResult<Void>> unregisterEndpoint(UnregisterEndpointInput input); @Override Future<RpcResult<Void>> setEndpointGroupConditions(SetEndpointGroupConditionsInput input); @Override Future<RpcResult<Void>> unsetEndpointGroupConditions(UnsetEndpointGroupConditionsInput input);  }