Thomas Vachuska | 4f1a60c | 2014-10-28 13:39:07 -0700 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2014-present Open Networking Foundation |
Thomas Vachuska | 4f1a60c | 2014-10-28 13:39:07 -0700 | [diff] [blame] | 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 | */ |
Yi Tseng | 24d9be7 | 2017-05-12 11:28:13 -0700 | [diff] [blame] | 16 | package org.onosproject.net.intent; |
tom | 95329eb | 2014-10-06 08:40:06 -0700 | [diff] [blame] | 17 | |
| 18 | /** |
| 19 | * Auxiliary delegate for integration of intent manager and flow trackerService. |
| 20 | */ |
| 21 | public interface TopologyChangeDelegate { |
| 22 | |
| 23 | /** |
| 24 | * Notifies that topology has changed in such a way that the specified |
tom | 85258ee | 2014-10-07 00:10:02 -0700 | [diff] [blame] | 25 | * intents should be recompiled. If the {@code compileAllFailed} parameter |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 26 | * is true, then all intents in {@link org.onosproject.net.intent.IntentState#FAILED} |
tom | 85258ee | 2014-10-07 00:10:02 -0700 | [diff] [blame] | 27 | * state should be compiled as well. |
tom | 95329eb | 2014-10-06 08:40:06 -0700 | [diff] [blame] | 28 | * |
| 29 | * @param intentIds intents that should be recompiled |
tom | 4e96904 | 2014-10-07 00:47:30 -0700 | [diff] [blame] | 30 | * @param compileAllFailed true implies full compile of all failed intents |
| 31 | * is required; false for selective recompile only |
tom | 95329eb | 2014-10-06 08:40:06 -0700 | [diff] [blame] | 32 | */ |
Ray Milkey | f9af43c | 2015-02-09 16:45:48 -0800 | [diff] [blame] | 33 | void triggerCompile(Iterable<Key> intentIds, boolean compileAllFailed); |
tom | 95329eb | 2014-10-06 08:40:06 -0700 | [diff] [blame] | 34 | |
tom | 95329eb | 2014-10-06 08:40:06 -0700 | [diff] [blame] | 35 | } |