blob: 3f24dcbf4fe5143bbf2489f608fc704dc8ed8061 [file] [log] [blame]
Jian Li95edb592017-01-29 08:42:07 +09001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2017-present Open Networking Foundation
Jian Li95edb592017-01-29 08:42:07 +09003 *
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
Jian Lic87b23b2017-04-24 15:28:10 +090041 @Override
42 public Iterable<MappingEntry> getAllMappingEntries(Type type) {
43 return null;
44 }
45
Jian Li2dc9f002017-03-03 04:26:31 +090046
47 @Override
48 public Iterable<MappingEntry> getMappingEntries(Type type, DeviceId deviceId) {
49 return null;
50 }
51
52 @Override
Jian Li9552f172017-04-20 00:19:56 +090053 public Iterable<MappingEntry> getMappingEntriesByAppId(Type type, ApplicationId appId) {
Jian Li2dc9f002017-03-03 04:26:31 +090054 return null;
55 }
Jian Li95edb592017-01-29 08:42:07 +090056}