Merge "Added DELETE support for Bridge and Port resources"
[controller.git] / opendaylight / config / threadpool-config-impl / src / main / java / org / opendaylight / controller / config / yang / threadpool / impl / ScheduledThreadPoolModule.java
1 /**
2  * Generated file
3
4  * Generated from: yang module name: threadpool-impl  yang module local name: threadpool-scheduled
5  * Generated by: org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
6  * Generated at: Wed Nov 06 16:19:33 CET 2013
7  *
8  * Do not modify this file unless it is present under src/main directory
9  */
10 package org.opendaylight.controller.config.yang.threadpool.impl;
11
12 import org.opendaylight.controller.config.api.JmxAttributeValidationException;
13 import org.opendaylight.controller.config.threadpool.util.ScheduledThreadPoolWrapper;
14
15 /**
16 *
17 */
18 public final class ScheduledThreadPoolModule extends
19         org.opendaylight.controller.config.yang.threadpool.impl.AbstractScheduledThreadPoolModule {
20
21     public ScheduledThreadPoolModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier,
22             org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
23         super(identifier, dependencyResolver);
24     }
25
26     public ScheduledThreadPoolModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier,
27             org.opendaylight.controller.config.api.DependencyResolver dependencyResolver,
28             ScheduledThreadPoolModule oldModule, java.lang.AutoCloseable oldInstance) {
29         super(identifier, dependencyResolver, oldModule, oldInstance);
30     }
31
32     @Override
33     public void validate() {
34         super.validate();
35         JmxAttributeValidationException.checkNotNull(getMaxThreadCount(), maxThreadCountJmxAttribute);
36         JmxAttributeValidationException.checkCondition(getMaxThreadCount() > 0, "must be greater than zero",
37                 maxThreadCountJmxAttribute);
38     }
39
40     @Override
41     public java.lang.AutoCloseable createInstance() {
42         return new ScheduledThreadPoolWrapper(getMaxThreadCount(), getThreadFactoryDependency());
43     }
44 }