@Test public void testClose_null() throws Exception { instance.close(); }
@Override public void close() throws Exception { LOG.info("Clustering provider closed for {}", this.getClass().getSimpleName()); if (singletonServiceRegistration != null) { try { singletonServiceRegistration.close(); } catch (Exception e) { LOG.warn("{} closed unexpectedly. Cause: {}", e.getMessage()); } singletonServiceRegistration = null; } }
SxpEpProviderProviderInstance implements SxpEpProviderProvider, ClusterSingletonService, AutoCloseable { @Override public void close() throws Exception { LOG.info("Clustering provider closed for {}", this.getClass().getSimpleName()); if (singletonServiceRegistration != null) { try { singletonServiceRegistration.close(); } catch (Exception e) { LOG.warn("{} closed unexpectedly. Cause: {}", e.getMessage()); } singletonServiceRegistration = null; } } }
SxpEpProviderProviderInstance implements SxpEpProviderProvider, ClusterSingletonService, AutoCloseable { @Override public void close() throws Exception { LOG.info("Clustering provider closed for {}", this.getClass().getSimpleName()); if (singletonServiceRegistration != null) { try { singletonServiceRegistration.close(); } catch (Exception e) { LOG.warn("{} closed unexpectedly. Cause: {}", e.getMessage()); } singletonServiceRegistration = null; } } SxpEpProviderProviderInstance(DataBroker dataBroker, BaseEndpointService endpointService,
                                         DomainSpecificRegistry registry,
                                         ClusterSingletonServiceProvider clusterSingletonService,
                                         SgtGeneratorConfig sgtGeneratorConfig); }
SxpEpProviderProviderInstance implements SxpEpProviderProvider, ClusterSingletonService, AutoCloseable { @Override public void close() throws Exception { LOG.info("Clustering provider closed for {}", this.getClass().getSimpleName()); if (singletonServiceRegistration != null) { try { singletonServiceRegistration.close(); } catch (Exception e) { LOG.warn("{} closed unexpectedly. Cause: {}", e.getMessage()); } singletonServiceRegistration = null; } } SxpEpProviderProviderInstance(DataBroker dataBroker, BaseEndpointService endpointService,
                                         DomainSpecificRegistry registry,
                                         ClusterSingletonServiceProvider clusterSingletonService,
                                         SgtGeneratorConfig sgtGeneratorConfig); void initialize(); @Override void instantiateServiceInstance(); @Override ListenableFuture<Void> closeServiceInstance(); @Override void close(); @Override ServiceGroupIdentifier getIdentifier(); @Override EPToSgtMapper getEPToSgtMapper(); @Override EPPolicyTemplateProviderRegistry getEPPolicyTemplateProviderRegistry(); }
SxpEpProviderProviderInstance implements SxpEpProviderProvider, ClusterSingletonService, AutoCloseable { @Override public void close() throws Exception { LOG.info("Clustering provider closed for {}", this.getClass().getSimpleName()); if (singletonServiceRegistration != null) { try { singletonServiceRegistration.close(); } catch (Exception e) { LOG.warn("{} closed unexpectedly. Cause: {}", e.getMessage()); } singletonServiceRegistration = null; } } SxpEpProviderProviderInstance(DataBroker dataBroker, BaseEndpointService endpointService,
                                         DomainSpecificRegistry registry,
                                         ClusterSingletonServiceProvider clusterSingletonService,
                                         SgtGeneratorConfig sgtGeneratorConfig); void initialize(); @Override void instantiateServiceInstance(); @Override ListenableFuture<Void> closeServiceInstance(); @Override void close(); @Override ServiceGroupIdentifier getIdentifier(); @Override EPToSgtMapper getEPToSgtMapper(); @Override EPPolicyTemplateProviderRegistry getEPPolicyTemplateProviderRegistry();  }