blob: 393f3cf1cf7952ce8a5986d25cb69d2b0eaf1e10 [file] [log] [blame]
Bri Prebilic Cole09e464b2015-01-07 17:13:54 -08001/*
2 * Copyright 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 */
16
17package org.onosproject.net.flow;
18
19import org.onosproject.core.ApplicationId;
20import org.onosproject.net.DeviceId;
21
22import java.util.concurrent.Future;
23
24/**
25 * Test adapter for flow rule service.
26 */
27public class FlowRuleServiceAdapter implements FlowRuleService {
28 @Override
29 public int getFlowRuleCount() {
30 return 0;
31 }
32
33 @Override
34 public Iterable<FlowEntry> getFlowEntries(DeviceId deviceId) {
35 return null;
36 }
37
38 @Override
39 public void applyFlowRules(FlowRule... flowRules) {
40
41 }
42
43 @Override
44 public void removeFlowRules(FlowRule... flowRules) {
45
46 }
47
48 @Override
49 public void removeFlowRulesById(ApplicationId appId) {
50
51 }
52
53 @Override
54 public Iterable<FlowRule> getFlowRulesById(ApplicationId id) {
55 return null;
56 }
57
58 @Override
59 public Iterable<FlowRule> getFlowRulesByGroupId(ApplicationId appId, short groupId) {
60 return null;
61 }
62
63 @Override
64 public Future<CompletedBatchOperation> applyBatch(FlowRuleBatchOperation batch) {
65 return null;
66 }
67
68 @Override
Brian O'Connor72cb19a2015-01-16 16:14:41 -080069 public void apply(FlowRuleOperations ops) {
70
71 }
72
73 @Override
Bri Prebilic Cole09e464b2015-01-07 17:13:54 -080074 public void addListener(FlowRuleListener listener) {
75
76 }
77
78 @Override
79 public void removeListener(FlowRuleListener listener) {
80
81 }
82}