import org.opendaylight.controller.md.sal.dom.api.DOMDataBroker;
/**
+ * Deprecated.
+ *
* @deprecated Replaced by blueprint wiring
*/
@Deprecated
-public class BindingAsyncDataBrokerImplModule extends
- org.opendaylight.controller.config.yang.md.sal.binding.impl.AbstractBindingAsyncDataBrokerImplModule {
+public class BindingAsyncDataBrokerImplModule extends AbstractBindingAsyncDataBrokerImplModule {
public BindingAsyncDataBrokerImplModule(final org.opendaylight.controller.config.api.ModuleIdentifier identifier,
final org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
public BindingAsyncDataBrokerImplModule(
final org.opendaylight.controller.config.api.ModuleIdentifier identifier,
final org.opendaylight.controller.config.api.DependencyResolver dependencyResolver,
- final org.opendaylight.controller.config.yang.md.sal.binding.impl.BindingAsyncDataBrokerImplModule oldModule,
+ final BindingAsyncDataBrokerImplModule oldModule,
final java.lang.AutoCloseable oldInstance) {
super(identifier, dependencyResolver, oldModule, oldInstance);
}
final DOMDataBroker domDataBroker = getDomAsyncBrokerDependency();
return new BindingDOMDataBrokerAdapter(domDataBroker, mappingService);
}
-
}
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
-/*
-* Generated file
-*
-* Generated from: yang module name: opendaylight-sal-binding-broker-impl yang module local name: binding-forwarded-data-broker
-* Generated by: org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
-* Generated at: Fri May 16 17:18:18 CEST 2014
-*
-* Do not modify this file unless it is present under src/main directory
-*/
package org.opendaylight.controller.config.yang.md.sal.binding.impl;
/**
+ * Deprecated.
+ *
* @deprecated Replaced by blueprint wiring
*/
@Deprecated
-public class BindingAsyncDataBrokerImplModuleFactory extends org.opendaylight.controller.config.yang.md.sal.binding.impl.AbstractBindingAsyncDataBrokerImplModuleFactory {
+public class BindingAsyncDataBrokerImplModuleFactory extends AbstractBindingAsyncDataBrokerImplModuleFactory {
}
import org.opendaylight.controller.sal.core.api.Broker.ProviderSession;
/**
+ * Deprecated.
+ *
* @deprecated Replaced by blueprint wiring
*/
@Deprecated
private BindingDOMRpcProviderServiceAdapter createRpcProvider(final BindingToNormalizedNodeCodec codec,
final ProviderSession session) {
final DOMRpcProviderService domService = session.getService(DOMRpcProviderService.class);
- if(domService != null) {
+ if (domService != null) {
return new BindingDOMRpcProviderServiceAdapter(domService, codec);
}
return null;
}
- private BindingDOMRpcServiceAdapter createRpcConsumer(final BindingToNormalizedNodeCodec codec, final ProviderSession session) {
+ private BindingDOMRpcServiceAdapter createRpcConsumer(final BindingToNormalizedNodeCodec codec,
+ final ProviderSession session) {
final DOMRpcService domService = session.getService(DOMRpcService.class);
- if(domService != null) {
+ if (domService != null) {
return new BindingDOMRpcServiceAdapter(domService, codec);
}
return null;
}
- private MountPointService createMountPointAdapter(final BindingToNormalizedNodeCodec codec, final ProviderSession session) {
+ private MountPointService createMountPointAdapter(final BindingToNormalizedNodeCodec codec,
+ final ProviderSession session) {
final DOMMountPointService domService = session.getService(DOMMountPointService.class);
- if(domService != null) {
+ if (domService != null) {
return new BindingDOMMountPointServiceAdapter(domService, codec);
}
return null;
package org.opendaylight.controller.config.yang.md.sal.binding.impl;
/**
+ * Deprecated.
+ *
* @deprecated Replaced by blueprint wiring
*/
@Deprecated
-public class BindingBrokerImplModuleFactory extends org.opendaylight.controller.config.yang.md.sal.binding.impl.AbstractBindingBrokerImplModuleFactory {
+public class BindingBrokerImplModuleFactory extends AbstractBindingBrokerImplModuleFactory {
}
import org.opendaylight.controller.sal.core.api.Broker;
/**
+ * Deprecated.
+ *
* @deprecated Replaced by blueprint wiring
*/
@Deprecated
public class BindingNotificationAdapterModule extends AbstractBindingNotificationAdapterModule {
- public BindingNotificationAdapterModule(final ModuleIdentifier identifier, final DependencyResolver dependencyResolver) {
+ public BindingNotificationAdapterModule(final ModuleIdentifier identifier,
+ final DependencyResolver dependencyResolver) {
super(identifier, dependencyResolver);
}
- public BindingNotificationAdapterModule(final ModuleIdentifier identifier, final DependencyResolver dependencyResolver, final org.opendaylight.controller.config.yang.md.sal.binding.impl.BindingNotificationAdapterModule oldModule, final java.lang.AutoCloseable oldInstance) {
+ public BindingNotificationAdapterModule(final ModuleIdentifier identifier,
+ final DependencyResolver dependencyResolver, final BindingNotificationAdapterModule oldModule,
+ final AutoCloseable oldInstance) {
super(identifier, dependencyResolver, oldModule, oldInstance);
}
package org.opendaylight.controller.config.yang.md.sal.binding.impl;
/**
+ * Deprecated.
+ *
* @deprecated Replaced by blueprint wiring
*/
@Deprecated
-public class BindingNotificationAdapterModuleFactory extends org.opendaylight.controller.config.yang.md.sal.binding.impl.AbstractBindingNotificationAdapterModuleFactory {
+public class BindingNotificationAdapterModuleFactory extends AbstractBindingNotificationAdapterModuleFactory {
}
import org.opendaylight.controller.sal.core.api.Broker;
/**
+ * Deprecated.
+ *
* @deprecated Replaced by blueprint wiring
*/
@Deprecated
public class BindingNotificationPublishAdapterModule extends AbstractBindingNotificationPublishAdapterModule {
- public BindingNotificationPublishAdapterModule(final ModuleIdentifier identifier, final DependencyResolver dependencyResolver) {
+ public BindingNotificationPublishAdapterModule(final ModuleIdentifier identifier,
+ final DependencyResolver dependencyResolver) {
super(identifier, dependencyResolver);
}
- public BindingNotificationPublishAdapterModule(final ModuleIdentifier identifier, final DependencyResolver dependencyResolver, final BindingNotificationPublishAdapterModule oldModule, final java.lang.AutoCloseable oldInstance) {
+ public BindingNotificationPublishAdapterModule(final ModuleIdentifier identifier,
+ final DependencyResolver dependencyResolver, final BindingNotificationPublishAdapterModule oldModule,
+ final AutoCloseable oldInstance) {
super(identifier, dependencyResolver, oldModule, oldInstance);
}
}
@Override
- public java.lang.AutoCloseable createInstance() {
+ public AutoCloseable createInstance() {
final BindingToNormalizedNodeCodec codec = getBindingMappingServiceDependency();
final Broker.ProviderSession session = getDomAsyncBrokerDependency().registerProvider(new DummyDOMProvider());
final DOMNotificationPublishService publishService = session.getService(DOMNotificationPublishService.class);
package org.opendaylight.controller.config.yang.md.sal.binding.impl;
/**
+ * Deprecated.
+ *
* @deprecated Replaced by blueprint wiring
*/
@Deprecated
-public class BindingNotificationPublishAdapterModuleFactory extends org.opendaylight.controller.config.yang.md.sal.binding.impl.AbstractBindingNotificationPublishAdapterModuleFactory {
+public class BindingNotificationPublishAdapterModuleFactory
+ extends AbstractBindingNotificationPublishAdapterModuleFactory {
}
import org.opendaylight.controller.md.sal.dom.spi.DOMNotificationSubscriptionListenerRegistry;
/**
+ * Deprecated.
+ *
* @deprecated Replaced by blueprint wiring
*/
@Deprecated
package org.opendaylight.controller.config.yang.md.sal.binding.impl;
/**
+ * Deprecated.
+ *
* @deprecated Replaced by blueprint wiring
*/
@Deprecated
-public class NotificationBrokerImplModuleFactory extends
- org.opendaylight.controller.config.yang.md.sal.binding.impl.AbstractNotificationBrokerImplModuleFactory {
+public class NotificationBrokerImplModuleFactory extends AbstractNotificationBrokerImplModuleFactory {
}
import org.osgi.framework.BundleContext;
/**
+ * Deprecated.
+ *
* @deprecated Replaced by blueprint wiring
*/
@Deprecated
package org.opendaylight.controller.config.yang.md.sal.binding.impl;
import static com.google.common.base.Preconditions.checkArgument;
+
import org.opendaylight.controller.config.api.DependencyResolver;
import org.osgi.framework.BundleContext;
/**
+ * Deprecated.
+ *
* @deprecated Replaced by blueprint wiring
*/
@Deprecated
public static final String SINGLETON_NAME = "runtime-mapping-singleton";
@Override
- public RuntimeMappingModule instantiateModule(String instanceName, DependencyResolver dependencyResolver, RuntimeMappingModule oldModule, AutoCloseable oldInstance, BundleContext bundleContext) {
- checkArgument(SINGLETON_NAME.equals(instanceName),"Illegal instance name '" + instanceName + "', only allowed name is " + SINGLETON_NAME);
- RuntimeMappingModule module = super.instantiateModule(instanceName, dependencyResolver, oldModule, oldInstance, bundleContext);
+ public RuntimeMappingModule instantiateModule(String instanceName, DependencyResolver dependencyResolver,
+ RuntimeMappingModule oldModule, AutoCloseable oldInstance, BundleContext bundleContext) {
+ checkArgument(SINGLETON_NAME.equals(instanceName),
+ "Illegal instance name '" + instanceName + "', only allowed name is " + SINGLETON_NAME);
+ RuntimeMappingModule module = super.instantiateModule(instanceName, dependencyResolver, oldModule, oldInstance,
+ bundleContext);
// FIXME bundle context should not be passed around
module.setBundleContext(bundleContext);
return module;
}
@Override
- public RuntimeMappingModule instantiateModule(String instanceName, DependencyResolver dependencyResolver, BundleContext bundleContext) {
- checkArgument(SINGLETON_NAME.equals(instanceName),"Illegal instance name '" + instanceName + "', only allowed name is " + SINGLETON_NAME);
+ public RuntimeMappingModule instantiateModule(String instanceName, DependencyResolver dependencyResolver,
+ BundleContext bundleContext) {
+ checkArgument(SINGLETON_NAME.equals(instanceName),
+ "Illegal instance name '" + instanceName + "', only allowed name is " + SINGLETON_NAME);
RuntimeMappingModule module = super.instantiateModule(instanceName, dependencyResolver, bundleContext);
// FIXME bundle context should not be passed around
module.setBundleContext(bundleContext);
import com.google.common.collect.MutableClassToInstanceMap;
import java.util.ArrayList;
import java.util.List;
+import org.opendaylight.controller.config.api.DependencyResolver;
+import org.opendaylight.controller.config.api.ModuleIdentifier;
import org.opendaylight.controller.config.api.osgi.WaitingServiceTracker;
import org.opendaylight.controller.md.sal.dom.api.DOMDataBroker;
import org.opendaylight.controller.md.sal.dom.api.DOMMountPointService;
import org.slf4j.LoggerFactory;
/**
+ * Deprecated.
+ *
* @deprecated Replaced by blueprint wiring
*/
@Deprecated
-public final class DomBrokerImplModule extends org.opendaylight.controller.config.yang.md.sal.dom.impl.AbstractDomBrokerImplModule{
+public final class DomBrokerImplModule extends AbstractDomBrokerImplModule {
private static final Logger LOG = LoggerFactory.getLogger(DomBrokerImplModule.class);
private BundleContext bundleContext;
- public DomBrokerImplModule(final org.opendaylight.controller.config.api.ModuleIdentifier identifier, final org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
+ public DomBrokerImplModule(final ModuleIdentifier identifier, final DependencyResolver dependencyResolver) {
super(identifier, dependencyResolver);
}
- public DomBrokerImplModule(final org.opendaylight.controller.config.api.ModuleIdentifier identifier, final org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, final DomBrokerImplModule oldModule, final java.lang.AutoCloseable oldInstance) {
+ public DomBrokerImplModule(final ModuleIdentifier identifier, final DependencyResolver dependencyResolver,
+ final DomBrokerImplModule oldModule, final AutoCloseable oldInstance) {
super(identifier, dependencyResolver, oldModule, oldInstance);
}
public void validate() {
super.validate();
final long depth = getNotificationQueueDepth().getValue();
- Preconditions.checkArgument(Long.lowestOneBit(depth) == Long.highestOneBit(depth), "Queue depth %s is not power-of-two", depth);
+ Preconditions.checkArgument(Long.lowestOneBit(depth) == Long.highestOneBit(depth),
+ "Queue depth %s is not power-of-two", depth);
}
@Override
- public java.lang.AutoCloseable createInstance() {
+ @SuppressWarnings("checkstyle:IllegalCatch")
+ public AutoCloseable createInstance() {
// The services are provided via blueprint so retrieve then from the OSGi service registry for
// backwards compatibility.
DOMRpcProviderService domRpcProvider = newTracker(
DOMRpcProviderService.class, closeables).waitForService(WaitingServiceTracker.FIVE_MINUTES);
- DOMMountPointService mountService = newTracker(DOMMountPointService.class, closeables).
- waitForService(WaitingServiceTracker.FIVE_MINUTES);
+ DOMMountPointService mountService = newTracker(DOMMountPointService.class, closeables)
+ .waitForService(WaitingServiceTracker.FIVE_MINUTES);
- SchemaService globalSchemaService = newTracker(SchemaService.class, closeables).
- waitForService(WaitingServiceTracker.FIVE_MINUTES);
+ SchemaService globalSchemaService = newTracker(SchemaService.class, closeables)
+ .waitForService(WaitingServiceTracker.FIVE_MINUTES);
final DOMDataBroker dataBroker = getAsyncDataBrokerDependency();
private SchemaService getSchemaServiceImpl(SchemaService globalSchemaService) {
final SchemaService schemaService;
- if(getRootSchemaService() != null) {
+ if (getRootSchemaService() != null) {
schemaService = getRootSchemaServiceDependency();
} else {
schemaService = globalSchemaService;
import org.osgi.framework.BundleContext;
/**
+ * Deprecated.
+ *
* @deprecated Replaced by blueprint wiring
*/
@Deprecated
-public class DomBrokerImplModuleFactory extends
- org.opendaylight.controller.config.yang.md.sal.dom.impl.AbstractDomBrokerImplModuleFactory {
+public class DomBrokerImplModuleFactory extends AbstractDomBrokerImplModuleFactory {
@Override
public Module createModule(String instanceName, DependencyResolver dependencyResolver,
import org.opendaylight.yangtools.util.concurrent.SpecialExecutors;
/**
+ * Deprecated.
+ *
* @deprecated Replaced by the clustered data store.
*/
@Deprecated
public java.lang.AutoCloseable createInstance() {
//Initializing Operational DOM DataStore defaulting to InMemoryDOMDataStore if one is not configured
DOMStore operStore = getOperationalDataStoreDependency();
- if(operStore == null){
- //we will default to InMemoryDOMDataStore creation
- operStore = InMemoryDOMDataStoreFactory.create("DOM-OPER", getSchemaServiceDependency());
+ if (operStore == null) {
+ // we will default to InMemoryDOMDataStore creation
+ operStore = InMemoryDOMDataStoreFactory.create("DOM-OPER", getSchemaServiceDependency());
}
DOMStore configStore = getConfigDataStoreDependency();
- if(configStore == null){
- //we will default to InMemoryDOMDataStore creation
- configStore = InMemoryDOMDataStoreFactory.create("DOM-CFG", getSchemaServiceDependency());
+ if (configStore == null) {
+ // we will default to InMemoryDOMDataStore creation
+ configStore = InMemoryDOMDataStoreFactory.create("DOM-CFG", getSchemaServiceDependency());
}
final Map<LogicalDatastoreType, DOMStore> datastores = new EnumMap<>(LogicalDatastoreType.class);
final AbstractMXBean commitExecutorStatsMXBean =
ThreadExecutorStatsMXBeanImpl.create(commitExecutor, "CommitExecutorStats",
JMX_BEAN_TYPE, null);
- if(commitExecutorStatsMXBean != null) {
+ if (commitExecutorStatsMXBean != null) {
mBeans.add(commitExecutorStatsMXBean);
}
- if(commitStatsTracker != null) {
+ if (commitStatsTracker != null) {
final CommitStatsMXBeanImpl commitStatsMXBean = new CommitStatsMXBeanImpl(
commitStatsTracker, JMX_BEAN_TYPE);
commitStatsMXBean.registerMBean();
final AbstractMXBean commitFutureStatsMXBean =
ThreadExecutorStatsMXBeanImpl.create(listenableFutureExecutor,
"CommitFutureExecutorStats", JMX_BEAN_TYPE, null);
- if(commitFutureStatsMXBean != null) {
+ if (commitFutureStatsMXBean != null) {
mBeans.add(commitFutureStatsMXBean);
}
package org.opendaylight.controller.config.yang.md.sal.dom.impl;
/**
+ * Deprecated.
+ *
* @deprecated Replaced by the clustered data store.
*/
@Deprecated
-public class DomInmemoryDataBrokerModuleFactory extends org.opendaylight.controller.config.yang.md.sal.dom.impl.AbstractDomInmemoryDataBrokerModuleFactory
-{
-
-
+public class DomInmemoryDataBrokerModuleFactory extends AbstractDomInmemoryDataBrokerModuleFactory {
}
import org.slf4j.LoggerFactory;
/**
+ * Deprecated.
+ *
* @deprecated Replaced by blueprint wiring
*/
@Deprecated
-public final class SchemaServiceImplSingletonModule extends
-org.opendaylight.controller.config.yang.md.sal.dom.impl.AbstractSchemaServiceImplSingletonModule {
+public final class SchemaServiceImplSingletonModule extends AbstractSchemaServiceImplSingletonModule {
private static final Logger LOG = LoggerFactory.getLogger(SchemaServiceImplSingletonModule.class);
final WaitingServiceTracker<YangTextSourceProvider> sourceProviderTracker =
WaitingServiceTracker.create(YangTextSourceProvider.class, bundleContext);
- final YangTextSourceProvider sourceProvider = sourceProviderTracker.waitForService(WaitingServiceTracker.FIVE_MINUTES);
+ final YangTextSourceProvider sourceProvider =
+ sourceProviderTracker.waitForService(WaitingServiceTracker.FIVE_MINUTES);
class GlobalSchemaServiceProxy implements AutoCloseable, SchemaService, YangTextSourceProvider {
@Override
}
@Override
- public ListenerRegistration<SchemaContextListener> registerSchemaContextListener(final SchemaContextListener arg0) {
+ public ListenerRegistration<SchemaContextListener> registerSchemaContextListener(
+ final SchemaContextListener arg0) {
return schemaService.registerSchemaContextListener(arg0);
}
package org.opendaylight.controller.config.yang.md.sal.dom.impl;
import static com.google.common.base.Preconditions.checkArgument;
+
import org.opendaylight.controller.config.api.DependencyResolver;
import org.osgi.framework.BundleContext;
/**
+ * Deprecated.
+ *
* @deprecated Replaced by blueprint wiring
*/
@Deprecated
public static final String SINGLETON_NAME = "yang-schema-service";
@Override
- public SchemaServiceImplSingletonModule instantiateModule(String instanceName, DependencyResolver dependencyResolver, SchemaServiceImplSingletonModule oldModule, AutoCloseable oldInstance, BundleContext bundleContext) {
- checkArgument(SINGLETON_NAME.equals(instanceName),"Illegal instance name '" + instanceName + "', only allowed name is " + SINGLETON_NAME);
- SchemaServiceImplSingletonModule module = super.instantiateModule(instanceName, dependencyResolver, oldModule, oldInstance, bundleContext);
+ public SchemaServiceImplSingletonModule instantiateModule(String instanceName,
+ DependencyResolver dependencyResolver, SchemaServiceImplSingletonModule oldModule,
+ AutoCloseable oldInstance, BundleContext bundleContext) {
+ checkArgument(SINGLETON_NAME.equals(instanceName),
+ "Illegal instance name '" + instanceName + "', only allowed name is " + SINGLETON_NAME);
+ SchemaServiceImplSingletonModule module = super.instantiateModule(instanceName, dependencyResolver, oldModule,
+ oldInstance, bundleContext);
// FIXME bundle context should not be passed around
module.setBundleContext(bundleContext);
return module;
}
@Override
- public SchemaServiceImplSingletonModule instantiateModule(String instanceName, DependencyResolver dependencyResolver, BundleContext bundleContext) {
- checkArgument(SINGLETON_NAME.equals(instanceName),"Illegal instance name '" + instanceName + "', only allowed name is " + SINGLETON_NAME);
- SchemaServiceImplSingletonModule module = super.instantiateModule(instanceName, dependencyResolver, bundleContext);
+ public SchemaServiceImplSingletonModule instantiateModule(String instanceName,
+ DependencyResolver dependencyResolver, BundleContext bundleContext) {
+ checkArgument(SINGLETON_NAME.equals(instanceName),
+ "Illegal instance name '" + instanceName + "', only allowed name is " + SINGLETON_NAME);
+ SchemaServiceImplSingletonModule module = super.instantiateModule(instanceName, dependencyResolver,
+ bundleContext);
// FIXME bundle context should not be passed around
module.setBundleContext(bundleContext);
return module;
import org.opendaylight.controller.md.sal.dom.broker.impl.PingPongDataBroker;
/**
+ * Deprecated.
+ *
* @deprecated Replaced by blueprint wiring
*/
@Deprecated
super(identifier, dependencyResolver);
}
- public PingpongDataBrokerModule(final ModuleIdentifier identifier, final DependencyResolver dependencyResolver, final PingpongDataBrokerModule oldModule, final java.lang.AutoCloseable oldInstance) {
+ public PingpongDataBrokerModule(final ModuleIdentifier identifier, final DependencyResolver dependencyResolver,
+ final PingpongDataBrokerModule oldModule, final java.lang.AutoCloseable oldInstance) {
super(identifier, dependencyResolver, oldModule, oldInstance);
}
package org.opendaylight.controller.config.yang.md.sal.dom.pingpong;
/**
+ * Deprecated.
+ *
* @deprecated Replaced by blueprint wiring
*/
@Deprecated