9a9c7def003234868740b2415e6f38be2b2e9911
[hc2vpp.git] /
1 package org.opendaylight.yang.gen.v1.urn.honeycomb.params.xml.ns.yang.notification.impl.rev160601;
2
3 import org.opendaylight.controller.config.api.JmxAttributeValidationException;
4 import org.opendaylight.controller.md.sal.dom.broker.impl.DOMNotificationRouter;
5
6 public class HoneycombDomNotificationServiceModule extends org.opendaylight.yang.gen.v1.urn.honeycomb.params.xml.ns.yang.notification.impl.rev160601.AbstractHoneycombDomNotificationServiceModule {
7     public HoneycombDomNotificationServiceModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
8         super(identifier, dependencyResolver);
9     }
10
11     public HoneycombDomNotificationServiceModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, org.opendaylight.yang.gen.v1.urn.honeycomb.params.xml.ns.yang.notification.impl.rev160601.HoneycombDomNotificationServiceModule oldModule, java.lang.AutoCloseable oldInstance) {
12         super(identifier, dependencyResolver, oldModule, oldInstance);
13     }
14
15     @Override
16     public void customValidation() {
17         JmxAttributeValidationException.checkCondition(getQueueDepth() > 0, "Queue depth must be > 0", queueDepthJmxAttribute);
18     }
19
20     @Override
21     public java.lang.AutoCloseable createInstance() {
22         // Create DOMNotificationRouter to do the heavy lifting for HoneycombNotificationCollector
23         // It creates executor internally
24         return DOMNotificationRouter.create(getQueueDepth());
25     }
26
27 }