@Test public void testCloseServiceInstance_null() throws Exception { final ListenableFuture<Void> future = instance.closeServiceInstance(); Assert.assertTrue(future.isDone()); Assert.assertNull(future.get()); }
@Override public ListenableFuture<Void> closeServiceInstance() { LOG.info("Instance {} closed", this.getClass().getSimpleName()); try { iseAdapterProvider.close(); } catch (Exception e) { LOG.warn("iseAdapterProvider closing failed: {}", e.getMessage()); } return Futures.immediateFuture(null); }
SxpIseAdapterProviderInstance implements ClusterSingletonService, AutoCloseable { @Override public ListenableFuture<Void> closeServiceInstance() { LOG.info("Instance {} closed", this.getClass().getSimpleName()); try { iseAdapterProvider.close(); } catch (Exception e) { LOG.warn("iseAdapterProvider closing failed: {}", e.getMessage()); } return Futures.immediateFuture(null); } }
SxpIseAdapterProviderInstance implements ClusterSingletonService, AutoCloseable { @Override public ListenableFuture<Void> closeServiceInstance() { LOG.info("Instance {} closed", this.getClass().getSimpleName()); try { iseAdapterProvider.close(); } catch (Exception e) { LOG.warn("iseAdapterProvider closing failed: {}", e.getMessage()); } return Futures.immediateFuture(null); } SxpIseAdapterProviderInstance(final DataBroker dataBroker,
                                         final BindingAwareBroker bindingAwareBroker,
                                         final ClusterSingletonServiceProvider clusterSingletonService,
                                         final SxpEpProviderProvider sxpEpProvider); }
SxpIseAdapterProviderInstance implements ClusterSingletonService, AutoCloseable { @Override public ListenableFuture<Void> closeServiceInstance() { LOG.info("Instance {} closed", this.getClass().getSimpleName()); try { iseAdapterProvider.close(); } catch (Exception e) { LOG.warn("iseAdapterProvider closing failed: {}", e.getMessage()); } return Futures.immediateFuture(null); } SxpIseAdapterProviderInstance(final DataBroker dataBroker,
                                         final BindingAwareBroker bindingAwareBroker,
                                         final ClusterSingletonServiceProvider clusterSingletonService,
                                         final SxpEpProviderProvider sxpEpProvider); void initialize(); @Override void instantiateServiceInstance(); @Override ListenableFuture<Void> closeServiceInstance(); @Override void close(); @Override ServiceGroupIdentifier getIdentifier(); }
SxpIseAdapterProviderInstance implements ClusterSingletonService, AutoCloseable { @Override public ListenableFuture<Void> closeServiceInstance() { LOG.info("Instance {} closed", this.getClass().getSimpleName()); try { iseAdapterProvider.close(); } catch (Exception e) { LOG.warn("iseAdapterProvider closing failed: {}", e.getMessage()); } return Futures.immediateFuture(null); } SxpIseAdapterProviderInstance(final DataBroker dataBroker,
                                         final BindingAwareBroker bindingAwareBroker,
                                         final ClusterSingletonServiceProvider clusterSingletonService,
                                         final SxpEpProviderProvider sxpEpProvider); void initialize(); @Override void instantiateServiceInstance(); @Override ListenableFuture<Void> closeServiceInstance(); @Override void close(); @Override ServiceGroupIdentifier getIdentifier();  }