blob: 1bad3a9decc24ba538fe2f7d828c86a282522984 [file] [log] [blame]
Ray Milkeya4122362015-08-18 15:19:08 -07001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
Ray Milkeya4122362015-08-18 15:19:08 -07003 *
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 */
Ray Milkeya4122362015-08-18 15:19:08 -070016package org.onosproject.net.config;
Sahil Lele3a0cdd52015-07-21 14:16:31 -070017
Thomas Vachuska0a400ea2015-09-04 11:25:03 -070018import com.fasterxml.jackson.databind.JsonNode;
Ray Milkeycd6ab182016-02-03 11:13:09 -080019import com.google.common.collect.ImmutableSet;
Sahil Lele3a0cdd52015-07-21 14:16:31 -070020
21import java.util.Set;
22
23/**
24 * Test adapter for network configuration service.
25 */
26public class NetworkConfigServiceAdapter implements NetworkConfigService {
27 @Override
28 public Set<Class> getSubjectClasses() {
Ray Milkeycd6ab182016-02-03 11:13:09 -080029 return ImmutableSet.of();
Sahil Lele3a0cdd52015-07-21 14:16:31 -070030 }
31
32 @Override
Thomas Vachuskaea5adc62015-10-07 11:52:30 -070033 public SubjectFactory getSubjectFactory(String subjectClassKey) {
Sahil Lele3a0cdd52015-07-21 14:16:31 -070034 return null;
35 }
36
37 @Override
38 public SubjectFactory getSubjectFactory(Class subjectClass) {
39 return null;
40 }
41
42 @Override
Thomas Vachuskaea5adc62015-10-07 11:52:30 -070043 public Class<? extends Config> getConfigClass(String subjectClassKey, String configKey) {
Sahil Lele3a0cdd52015-07-21 14:16:31 -070044 return null;
45 }
46
47 @Override
48 public <S> Set<S> getSubjects(Class<S> subjectClass) {
Ray Milkeycd6ab182016-02-03 11:13:09 -080049 return ImmutableSet.of();
Sahil Lele3a0cdd52015-07-21 14:16:31 -070050 }
51
52 @Override
53 public <S, C extends Config<S>> Set<S> getSubjects(Class<S> subjectClass, Class<C> configClass) {
Ray Milkeycd6ab182016-02-03 11:13:09 -080054 return ImmutableSet.of();
Sahil Lele3a0cdd52015-07-21 14:16:31 -070055 }
56
57 @Override
58 public <S> Set<? extends Config<S>> getConfigs(S subject) {
Ray Milkeycd6ab182016-02-03 11:13:09 -080059 return ImmutableSet.of();
Sahil Lele3a0cdd52015-07-21 14:16:31 -070060 }
61
62 @Override
63 public <S, C extends Config<S>> C getConfig(S subject, Class<C> configClass) {
64 return null;
65 }
66
67 @Override
68 public <S, C extends Config<S>> C addConfig(S subject, Class<C> configClass) {
69 return null;
70 }
71
72 @Override
Thomas Vachuska0a400ea2015-09-04 11:25:03 -070073 public <S, C extends Config<S>> C applyConfig(S subject, Class<C> configClass, JsonNode json) {
Sahil Lele3a0cdd52015-07-21 14:16:31 -070074 return null;
75 }
76
77 @Override
Thomas Vachuska6f350ed2016-01-08 09:53:03 -080078 public <S, C extends Config<S>> C applyConfig(String subjectClassKey, S subject, String configKey, JsonNode json) {
79 return null;
80 }
81
82 @Override
Sahil Lele3a0cdd52015-07-21 14:16:31 -070083 public <S, C extends Config<S>> void removeConfig(S subject, Class<C> configClass) {
84
85 }
86
87 @Override
Thomas Vachuska6f350ed2016-01-08 09:53:03 -080088 public <S> void removeConfig(String subjectClassKey, S subject, String configKey) {
89 }
Sahil Lele3a0cdd52015-07-21 14:16:31 -070090
Thomas Vachuska6f350ed2016-01-08 09:53:03 -080091 @Override
92 public void addListener(NetworkConfigListener listener) {
Sahil Lele3a0cdd52015-07-21 14:16:31 -070093 }
94
95 @Override
96 public void removeListener(NetworkConfigListener listener) {
Sahil Lele3a0cdd52015-07-21 14:16:31 -070097 }
Deepa Vaddireddy0c49b602016-06-02 12:19:07 +053098
99 @Override
100 public <S> void removeConfig(S subject) {
101 }
102
103 @Override
104 public <S> void removeConfig() {
105 }
Sahil Lele3a0cdd52015-07-21 14:16:31 -0700106}