blob: d1f41c5bb8901de1e2b3727cc6a1e4c00c8141a8 [file] [log] [blame]
Jian Li152b8852015-12-07 14:47:25 -08001/*
2 * Copyright 2014-2015 Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.openflow.controller.driver;
17
18import java.util.Collection;
19import java.util.List;
20import java.util.concurrent.Callable;
21import java.util.concurrent.ExecutionException;
22import java.util.concurrent.ExecutorService;
23import java.util.concurrent.Future;
24import java.util.concurrent.TimeUnit;
25import java.util.concurrent.TimeoutException;
26
27/**
28 * Test harness adapter for the ExecutorService.
29 */
30public class ExecutorServiceAdapter implements ExecutorService {
31 @Override
32 public void shutdown() {
33
34 }
35
36 @Override
37 public List<Runnable> shutdownNow() {
38 return null;
39 }
40
41 @Override
42 public boolean isShutdown() {
43 return false;
44 }
45
46 @Override
47 public boolean isTerminated() {
48 return false;
49 }
50
51 @Override
52 public boolean awaitTermination(long timeout, TimeUnit unit)
53 throws InterruptedException {
54 return false;
55 }
56
57 @Override
58 public <T> Future<T> submit(Callable<T> task) {
59 return null;
60 }
61
62 @Override
63 public <T> Future<T> submit(Runnable task, T result) {
64 return null;
65 }
66
67 @Override
68 public Future<?> submit(Runnable task) {
69 return null;
70 }
71
72 @Override
73 public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks)
74 throws InterruptedException {
75 return null;
76 }
77
78 @Override
79 public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)
80 throws InterruptedException {
81 return null;
82 }
83
84 @Override
85 public <T> T invokeAny(Collection<? extends Callable<T>> tasks) throws InterruptedException, ExecutionException {
86 return null;
87 }
88
89 @Override
90 public <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)
91 throws InterruptedException, ExecutionException, TimeoutException {
92 return null;
93 }
94
95 @Override
96 public void execute(Runnable command) {
97
98 }
99}