4 * Generated from: yang module name: opendaylight-sal-binding-broker-impl yang module local name: binding-notification-broker
5 * Generated by: org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
6 * Generated at: Wed Nov 20 17:33:01 CET 2013
8 * Do not modify this file unless it is present under src/main directory
10 package org.opendaylight.controller.config.yang.md.sal.binding.impl;
12 import java.util.concurrent.ExecutorService;
13 import java.util.concurrent.Executors;
14 import java.util.concurrent.ScheduledExecutorService;
16 import org.opendaylight.controller.sal.binding.impl.NotificationBrokerImpl;
18 import com.google.common.util.concurrent.ListeningExecutorService;
19 import com.google.common.util.concurrent.MoreExecutors;
24 public final class NotificationBrokerImplModule extends
25 org.opendaylight.controller.config.yang.md.sal.binding.impl.AbstractNotificationBrokerImplModule {
27 public NotificationBrokerImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier,
28 org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
29 super(identifier, dependencyResolver);
32 public NotificationBrokerImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier,
33 org.opendaylight.controller.config.api.DependencyResolver dependencyResolver,
34 NotificationBrokerImplModule oldModule, java.lang.AutoCloseable oldInstance) {
35 super(identifier, dependencyResolver, oldModule, oldInstance);
39 public void validate() {
41 // Add custom validation for module attributes here.
45 public java.lang.AutoCloseable createInstance() {
46 ExecutorService executor = Executors.newFixedThreadPool(5);
47 ListeningExecutorService listeningExecutor = MoreExecutors.listeningDecorator(executor);
48 NotificationBrokerImpl broker = new NotificationBrokerImpl(listeningExecutor);