Committed by
Gerrit Code Review
Remove unreferenced interface
Change-Id: I7b0f78ca83b1d9ea69fdf02dfb8e103b737d6f52
Showing
1 changed file
with
0 additions
and
56 deletions
1 | -/* | ||
2 | - * Copyright 2014-2015 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 | - */ | ||
16 | -package org.onosproject.net.intent; | ||
17 | - | ||
18 | -import org.onosproject.net.flow.FlowRuleOperation; | ||
19 | - | ||
20 | -import java.util.Collection; | ||
21 | -import java.util.List; | ||
22 | - | ||
23 | -/** | ||
24 | - * Abstraction of entity capable of installing intents to the environment. | ||
25 | - */ | ||
26 | -//TODO consider refactoring this API | ||
27 | -public interface IntentInstaller<T extends Intent> { | ||
28 | - /** | ||
29 | - * Installs the specified intent to the environment. | ||
30 | - * | ||
31 | - * @param intent intent to be installed | ||
32 | - * @return flow rule operations to complete install | ||
33 | - * @throws IntentException if issues are encountered while installing the intent | ||
34 | - */ | ||
35 | - List<Collection<FlowRuleOperation>> install(T intent); | ||
36 | - | ||
37 | - /** | ||
38 | - * Uninstalls the specified intent from the environment. | ||
39 | - * | ||
40 | - * @param intent intent to be uninstalled | ||
41 | - * @return flow rule operations to complete uninstall | ||
42 | - * @throws IntentException if issues are encountered while uninstalling the intent | ||
43 | - */ | ||
44 | - List<Collection<FlowRuleOperation>> uninstall(T intent); | ||
45 | - | ||
46 | - /** | ||
47 | - * Replaces the specified intent with a new one in the environment. | ||
48 | - * | ||
49 | - * @param oldIntent intent to be removed | ||
50 | - * @param newIntent intent to be installed | ||
51 | - * @return flow rule operations to complete the replace | ||
52 | - * @throws IntentException if issues are encountered while uninstalling the intent | ||
53 | - */ | ||
54 | - List<Collection<FlowRuleOperation>> replace(T oldIntent, T newIntent); | ||
55 | - | ||
56 | -} |
-
Please register or login to post a comment