blob: a320449edeae0f49763bc4ad26eb22dcffff6868 [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
Jian Li2dc9f002017-03-03 04:26:31 +090041
42 @Override
43 public Iterable<MappingEntry> getMappingEntries(Type type, DeviceId deviceId) {
44 return null;
45 }
46
47 @Override
Jian Li9552f172017-04-20 00:19:56 +090048 public Iterable<MappingEntry> getMappingEntriesByAppId(Type type, ApplicationId appId) {
Jian Li2dc9f002017-03-03 04:26:31 +090049 return null;
50 }
Jian Li95edb592017-01-29 08:42:07 +090051}