4 * Generated from: yang module name: threadpool-impl-scheduled yang module local name: threadpool-scheduled
5 * Generated by: org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
6 * Generated at: Sun Dec 01 17:13:32 CET 2013
8 * Do not modify this file unless it is present under src/main directory
10 package org.opendaylight.controller.config.yang.threadpool.impl.scheduled;
12 import org.opendaylight.controller.config.api.JmxAttributeValidationException;
13 import org.opendaylight.controller.config.threadpool.util.ScheduledThreadPoolWrapper;
18 public final class ScheduledThreadPoolModule extends org.opendaylight.controller.config.yang.threadpool.impl.scheduled.AbstractScheduledThreadPoolModule
21 public ScheduledThreadPoolModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
22 super(identifier, dependencyResolver);
25 public ScheduledThreadPoolModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, ScheduledThreadPoolModule oldModule, java.lang.AutoCloseable oldInstance) {
26 super(identifier, dependencyResolver, oldModule, oldInstance);
30 public void validate(){
32 JmxAttributeValidationException.checkNotNull(getMaxThreadCount(), maxThreadCountJmxAttribute);
33 JmxAttributeValidationException.checkCondition(getMaxThreadCount() > 0, "must be greater than zero",
34 maxThreadCountJmxAttribute);
38 public java.lang.AutoCloseable createInstance() {
39 return new ScheduledThreadPoolWrapper(getMaxThreadCount(), getThreadFactoryDependency());