Bri Prebilic Cole | 09e464b | 2015-01-07 17:13:54 -0800 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2015-present Open Networking Foundation |
Bri Prebilic Cole | 09e464b | 2015-01-07 17:13:54 -0800 | [diff] [blame] | 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 | |
| 17 | package org.onosproject.net.intent; |
| 18 | |
| 19 | import java.util.List; |
| 20 | |
| 21 | /** |
| 22 | * Test adapter for intent service. |
| 23 | */ |
| 24 | public 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 Milkey | 8c6d00e | 2015-03-13 14:14:34 -0700 | [diff] [blame] | 36 | public void purge(Intent intent) { |
| 37 | |
| 38 | } |
| 39 | |
| 40 | @Override |
Bri Prebilic Cole | 09e464b | 2015-01-07 17:13:54 -0800 | [diff] [blame] | 41 | public Iterable<Intent> getIntents() { |
| 42 | return null; |
| 43 | } |
| 44 | |
| 45 | @Override |
Brian O'Connor | 3822430 | 2016-08-02 22:03:01 -0700 | [diff] [blame] | 46 | public void addPending(IntentData intentData) { |
| 47 | |
| 48 | } |
| 49 | |
| 50 | @Override |
Thomas Vachuska | c46af20 | 2015-06-03 16:43:27 -0700 | [diff] [blame] | 51 | public Iterable<IntentData> getIntentData() { |
| 52 | return null; |
| 53 | } |
| 54 | |
| 55 | @Override |
Bri Prebilic Cole | 09e464b | 2015-01-07 17:13:54 -0800 | [diff] [blame] | 56 | public long getIntentCount() { |
| 57 | return 0; |
| 58 | } |
| 59 | |
| 60 | @Override |
Ray Milkey | f9af43c | 2015-02-09 16:45:48 -0800 | [diff] [blame] | 61 | public Intent getIntent(Key intentKey) { |
Bri Prebilic Cole | 09e464b | 2015-01-07 17:13:54 -0800 | [diff] [blame] | 62 | return null; |
| 63 | } |
| 64 | |
| 65 | @Override |
Ray Milkey | f9af43c | 2015-02-09 16:45:48 -0800 | [diff] [blame] | 66 | public IntentState getIntentState(Key intentKey) { |
Ray Milkey | 1534f8d | 2015-05-13 15:42:50 -0700 | [diff] [blame] | 67 | return IntentState.INSTALLED; |
Bri Prebilic Cole | 09e464b | 2015-01-07 17:13:54 -0800 | [diff] [blame] | 68 | } |
| 69 | |
| 70 | @Override |
Ray Milkey | f9af43c | 2015-02-09 16:45:48 -0800 | [diff] [blame] | 71 | public List<Intent> getInstallableIntents(Key intentKey) { |
Bri Prebilic Cole | 09e464b | 2015-01-07 17:13:54 -0800 | [diff] [blame] | 72 | return null; |
| 73 | } |
| 74 | |
| 75 | @Override |
Jonathan Hart | 13d3dd9 | 2015-02-25 16:09:42 -0800 | [diff] [blame] | 76 | public boolean isLocal(Key intentKey) { |
| 77 | return false; |
| 78 | } |
| 79 | |
| 80 | @Override |
| 81 | public Iterable<Intent> getPending() { |
| 82 | return null; |
| 83 | } |
| 84 | |
| 85 | @Override |
Bri Prebilic Cole | 09e464b | 2015-01-07 17:13:54 -0800 | [diff] [blame] | 86 | public void addListener(IntentListener listener) { |
| 87 | |
| 88 | } |
| 89 | |
| 90 | @Override |
| 91 | public void removeListener(IntentListener listener) { |
| 92 | |
| 93 | } |
Bri Prebilic Cole | 09e464b | 2015-01-07 17:13:54 -0800 | [diff] [blame] | 94 | } |