2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
12 * Generated from: yang module name: netty-event-executor yang module local name: netty-hashed-wheel-timer
13 * Generated by: org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
14 * Generated at: Tue Nov 19 12:49:59 CET 2013
16 * Do not modify this file unless it is present under src/main directory
18 package org.opendaylight.controller.config.yang.netty.timer;
20 import org.opendaylight.controller.config.api.JmxAttributeValidationException;
25 public final class HashedWheelTimerModule extends
26 org.opendaylight.controller.config.yang.netty.timer.AbstractHashedWheelTimerModule {
28 public HashedWheelTimerModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier,
29 org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
30 super(identifier, dependencyResolver);
33 public HashedWheelTimerModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier,
34 org.opendaylight.controller.config.api.DependencyResolver dependencyResolver,
35 HashedWheelTimerModule oldModule, java.lang.AutoCloseable oldInstance) {
36 super(identifier, dependencyResolver, oldModule, oldInstance);
40 public void validate() {
42 if (getTickDuration() != null) {
43 JmxAttributeValidationException.checkCondition(getTickDuration() > 0, "value must be greater than 0",
44 tickDurationJmxAttribute);
46 if (getTicksPerWheel() != null) {
47 JmxAttributeValidationException.checkCondition(getTicksPerWheel() > 0, "value must be greater than 0",
48 ticksPerWheelJmxAttribute);
53 public java.lang.AutoCloseable createInstance() {
54 return HashedWheelTimerCloseable.newInstance(getThreadFactoryDependency(), getTickDuration(), getTicksPerWheel());