blob: 73d03215c713064ccd8da20e39838ce6b7bb495e [file] [log] [blame]
Bri Prebilic Cole09e464b2015-01-07 17:13:54 -08001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
Bri Prebilic Cole09e464b2015-01-07 17:13:54 -08003 *
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.intent;
18
19import java.util.List;
20
21/**
22 * Test adapter for intent service.
23 */
24public class IntentServiceAdapter implements IntentService {
25 @Override
26 public void submit(Intent intent) {
27
28 }
29
30 @Override
31 public void withdraw(Intent intent) {
32
33 }
34
35 @Override
Ray Milkey8c6d00e2015-03-13 14:14:34 -070036 public void purge(Intent intent) {
37
38 }
39
40 @Override
Bri Prebilic Cole09e464b2015-01-07 17:13:54 -080041 public Iterable<Intent> getIntents() {
42 return null;
43 }
44
45 @Override
Thomas Vachuskac46af202015-06-03 16:43:27 -070046 public Iterable<IntentData> getIntentData() {
47 return null;
48 }
49
50 @Override
Bri Prebilic Cole09e464b2015-01-07 17:13:54 -080051 public long getIntentCount() {
52 return 0;
53 }
54
55 @Override
Ray Milkeyf9af43c2015-02-09 16:45:48 -080056 public Intent getIntent(Key intentKey) {
Bri Prebilic Cole09e464b2015-01-07 17:13:54 -080057 return null;
58 }
59
60 @Override
Ray Milkeyf9af43c2015-02-09 16:45:48 -080061 public IntentState getIntentState(Key intentKey) {
Ray Milkey1534f8d2015-05-13 15:42:50 -070062 return IntentState.INSTALLED;
Bri Prebilic Cole09e464b2015-01-07 17:13:54 -080063 }
64
65 @Override
Ray Milkeyf9af43c2015-02-09 16:45:48 -080066 public List<Intent> getInstallableIntents(Key intentKey) {
Bri Prebilic Cole09e464b2015-01-07 17:13:54 -080067 return null;
68 }
69
70 @Override
Jonathan Hart13d3dd92015-02-25 16:09:42 -080071 public boolean isLocal(Key intentKey) {
72 return false;
73 }
74
75 @Override
76 public Iterable<Intent> getPending() {
77 return null;
78 }
79
80 @Override
Bri Prebilic Cole09e464b2015-01-07 17:13:54 -080081 public void addListener(IntentListener listener) {
82
83 }
84
85 @Override
86 public void removeListener(IntentListener listener) {
87
88 }
Bri Prebilic Cole09e464b2015-01-07 17:13:54 -080089}