blob: c767c360302789260968a28ff0d297d922cf1915 [file] [log] [blame]
Jian Li95edb592017-01-29 08:42:07 +09001/*
2 * Copyright 2017-present 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.mapping;
17
Jian Li2dc9f002017-03-03 04:26:31 +090018import org.onosproject.core.ApplicationId;
19import org.onosproject.mapping.MappingStore.Type;
20import org.onosproject.net.DeviceId;
21
Jian Li95edb592017-01-29 08:42:07 +090022/**
23 * Adapter for testing against mapping service.
24 */
25public class MappingServiceAdapter implements MappingService {
26 @Override
27 public void addListener(MappingListener listener) {
28
29 }
30
31 @Override
32 public void removeListener(MappingListener listener) {
33
34 }
Jian Li2dc9f002017-03-03 04:26:31 +090035
36 @Override
37 public int getMappingCount(Type type) {
38 return 0;
39 }
40
41 @Override
42 public void storeMappingEntry(Type type, MappingEntry entry) {
43
44 }
45
46 @Override
47 public Iterable<MappingEntry> getMappingEntries(Type type, DeviceId deviceId) {
48 return null;
49 }
50
51 @Override
52 public Iterable<MappingEntry> getMappingEntriesByAddId(Type type, ApplicationId appId) {
53 return null;
54 }
55
56 @Override
57 public void removeMappingEntries(Type type, MappingEntry... mappingEntries) {
58
59 }
60
61 @Override
62 public void removeMappingEntriesByAppId(Type type, ApplicationId appId) {
63
64 }
65
66 @Override
67 public void purgeMappings(Type type, DeviceId deviceId) {
68
69 }
Jian Li95edb592017-01-29 08:42:07 +090070}