X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fconfig%2Fconfig-persister-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fpersist%2Fimpl%2Fosgi%2FConfigPersisterActivator.java;h=412309bdf68b382caf0c322033acc6d7c5830638;hp=c67522e97f4c502002cff0a3735ad34b54ed45c9;hb=dfc4bf9604f126da4ab2adbd3f782371ef18430f;hpb=f37b6184effa1d421c602da425903ab8d4b02ba7 diff --git a/opendaylight/config/config-persister-impl/src/main/java/org/opendaylight/controller/config/persist/impl/osgi/ConfigPersisterActivator.java b/opendaylight/config/config-persister-impl/src/main/java/org/opendaylight/controller/config/persist/impl/osgi/ConfigPersisterActivator.java index c67522e97f..412309bdf6 100644 --- a/opendaylight/config/config-persister-impl/src/main/java/org/opendaylight/controller/config/persist/impl/osgi/ConfigPersisterActivator.java +++ b/opendaylight/config/config-persister-impl/src/main/java/org/opendaylight/controller/config/persist/impl/osgi/ConfigPersisterActivator.java @@ -65,7 +65,7 @@ public class ConfigPersisterActivator implements BundleActivator { ServiceTrackerCustomizer schemaServiceTrackerCustomizer = new ServiceTrackerCustomizer() { @Override - public ConfigSubsystemFacadeFactory addingService(ServiceReference reference) { + public ConfigSubsystemFacadeFactory addingService(final ServiceReference reference) { LOG.debug("Got addingService(SchemaContextProvider) event"); // Yang store service should not be registered multiple times ConfigSubsystemFacadeFactory configSubsystemFacadeFactory = reference.getBundle().getBundleContext().getService(reference); @@ -74,12 +74,12 @@ public class ConfigPersisterActivator implements BundleActivator { } @Override - public void modifiedService(ServiceReference reference, ConfigSubsystemFacadeFactory service) { + public void modifiedService(final ServiceReference reference, final ConfigSubsystemFacadeFactory service) { LOG.warn("Config manager facade was modified unexpectedly"); } @Override - public void removedService(ServiceReference reference, ConfigSubsystemFacadeFactory service) { + public void removedService(final ServiceReference reference, final ConfigSubsystemFacadeFactory service) { LOG.warn("Config manager facade was removed unexpectedly"); } }; @@ -89,18 +89,18 @@ public class ConfigPersisterActivator implements BundleActivator { schemaContextProviderServiceTracker.open(); } - private long getConflictingVersionTimeoutMillis(PropertiesProviderBaseImpl propertiesProvider) { + private long getConflictingVersionTimeoutMillis(final PropertiesProviderBaseImpl propertiesProvider) { String timeoutProperty = propertiesProvider.getProperty(CONFLICTING_VERSION_TIMEOUT_MILLIS_PROPERTY); return timeoutProperty == null ? CONFLICTING_VERSION_TIMEOUT_MILLIS_DEFAULT : Long.valueOf(timeoutProperty); } - private long getMaxWaitForCapabilitiesMillis(PropertiesProviderBaseImpl propertiesProvider) { + private long getMaxWaitForCapabilitiesMillis(final PropertiesProviderBaseImpl propertiesProvider) { String timeoutProperty = propertiesProvider.getProperty(MAX_WAIT_FOR_CAPABILITIES_MILLIS_PROPERTY); return timeoutProperty == null ? MAX_WAIT_FOR_CAPABILITIES_MILLIS_DEFAULT : Long.valueOf(timeoutProperty); } @Override - public void stop(BundleContext context) throws Exception { + public void stop(final BundleContext context) throws Exception { synchronized(autoCloseables) { CloseableUtil.closeAll(autoCloseables); autoCloseables.clear(); @@ -132,7 +132,7 @@ public class ConfigPersisterActivator implements BundleActivator { } else { LOG.warn("Unable to process configs as BundleContext is null"); } - } catch (InterruptedException e) { + } catch (final InterruptedException e) { LOG.info("ConfigPusher thread stopped"); } LOG.info("Configuration Persister initialization completed.");