tom | 95329eb | 2014-10-06 08:40:06 -0700 | [diff] [blame] | 1 | package org.onlab.onos.net.intent.impl; |
| 2 | |
| 3 | import org.onlab.onos.net.intent.IntentId; |
| 4 | |
| 5 | /** |
| 6 | * Auxiliary delegate for integration of intent manager and flow trackerService. |
| 7 | */ |
| 8 | public interface TopologyChangeDelegate { |
| 9 | |
| 10 | /** |
| 11 | * Notifies that topology has changed in such a way that the specified |
tom | 85258ee | 2014-10-07 00:10:02 -0700 | [diff] [blame] | 12 | * intents should be recompiled. If the {@code compileAllFailed} parameter |
tom | 4e96904 | 2014-10-07 00:47:30 -0700 | [diff] [blame] | 13 | * is true, then all intents in {@link org.onlab.onos.net.intent.IntentState#FAILED} |
tom | 85258ee | 2014-10-07 00:10:02 -0700 | [diff] [blame] | 14 | * state should be compiled as well. |
tom | 95329eb | 2014-10-06 08:40:06 -0700 | [diff] [blame] | 15 | * |
| 16 | * @param intentIds intents that should be recompiled |
tom | 4e96904 | 2014-10-07 00:47:30 -0700 | [diff] [blame] | 17 | * @param compileAllFailed true implies full compile of all failed intents |
| 18 | * is required; false for selective recompile only |
tom | 95329eb | 2014-10-06 08:40:06 -0700 | [diff] [blame] | 19 | */ |
tom | 85258ee | 2014-10-07 00:10:02 -0700 | [diff] [blame] | 20 | void triggerCompile(Iterable<IntentId> intentIds, boolean compileAllFailed); |
tom | 95329eb | 2014-10-06 08:40:06 -0700 | [diff] [blame] | 21 | |
tom | 95329eb | 2014-10-06 08:40:06 -0700 | [diff] [blame] | 22 | } |