4 * Generated from: yang module name: netty-event-executor yang module local name: netty-global-event-executor
5 * Generated by: org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
6 * Generated at: Tue Nov 12 10:44:21 CET 2013
8 * Do not modify this file unless it is present under src/main directory
10 package org.opendaylight.controller.config.yang.netty.eventexecutor;
12 import io.netty.util.concurrent.AbstractEventExecutor;
13 import io.netty.util.concurrent.EventExecutor;
14 import io.netty.util.concurrent.EventExecutorGroup;
15 import io.netty.util.concurrent.Future;
16 import io.netty.util.concurrent.GlobalEventExecutor;
18 import java.util.concurrent.TimeUnit;
23 public final class GlobalEventExecutorModule extends
24 org.opendaylight.controller.config.yang.netty.eventexecutor.AbstractGlobalEventExecutorModule {
26 public GlobalEventExecutorModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier,
27 org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
28 super(identifier, dependencyResolver);
31 public GlobalEventExecutorModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier,
32 org.opendaylight.controller.config.api.DependencyResolver dependencyResolver,
33 GlobalEventExecutorModule oldModule, java.lang.AutoCloseable oldInstance) {
34 super(identifier, dependencyResolver, oldModule, oldInstance);
38 public void validate() {
43 public java.lang.AutoCloseable createInstance() {
44 return new GlobalEventExecutorCloseable(GlobalEventExecutor.INSTANCE);
47 static final private class GlobalEventExecutorCloseable extends AbstractEventExecutor implements AutoCloseable {
49 private EventExecutor executor;
51 public GlobalEventExecutorCloseable(EventExecutor executor) {
52 this.executor = executor;
56 public EventExecutorGroup parent() {
57 return this.executor.parent();
61 public boolean inEventLoop(Thread thread) {
62 return this.executor.inEventLoop(thread);
66 public boolean isShuttingDown() {
67 return this.executor.isShuttingDown();
71 public Future<?> shutdownGracefully(long quietPeriod, long timeout, TimeUnit unit) {
72 return this.executor.shutdownGracefully(quietPeriod, timeout, unit);
76 public Future<?> terminationFuture() {
77 return this.executor.terminationFuture();
81 public boolean isShutdown() {
82 return this.executor.isShutdown();
86 public boolean isTerminated() {
87 return this.executor.isTerminated();
91 public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException {
92 return this.executor.awaitTermination(timeout, unit);
96 public void execute(Runnable command) {
97 this.executor.execute(command);
101 public void close() throws Exception {
102 shutdownGracefully();
105 @SuppressWarnings("deprecation")
107 public void shutdown() {
108 this.executor.shutdown();