blob: 49b114d55e417e900ac703969adb10c73da80fc4 [file] [log] [blame]
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07001/*
Ray Milkey34c95902015-04-15 09:47:53 -07002 * Copyright 2014-2015 Open Networking Laboratory
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -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 */
Brian O'Connorabafb502014-12-02 22:26:20 -080016package org.onosproject.net.intent.impl;
tom95329eb2014-10-06 08:40:06 -070017
Ray Milkeyf9af43c2015-02-09 16:45:48 -080018import org.onosproject.net.intent.Key;
tom95329eb2014-10-06 08:40:06 -070019
20/**
21 * Auxiliary delegate for integration of intent manager and flow trackerService.
22 */
23public interface TopologyChangeDelegate {
24
25 /**
26 * Notifies that topology has changed in such a way that the specified
tom85258ee2014-10-07 00:10:02 -070027 * intents should be recompiled. If the {@code compileAllFailed} parameter
Brian O'Connorabafb502014-12-02 22:26:20 -080028 * is true, then all intents in {@link org.onosproject.net.intent.IntentState#FAILED}
tom85258ee2014-10-07 00:10:02 -070029 * state should be compiled as well.
tom95329eb2014-10-06 08:40:06 -070030 *
31 * @param intentIds intents that should be recompiled
tom4e969042014-10-07 00:47:30 -070032 * @param compileAllFailed true implies full compile of all failed intents
33 * is required; false for selective recompile only
tom95329eb2014-10-06 08:40:06 -070034 */
Ray Milkeyf9af43c2015-02-09 16:45:48 -080035 void triggerCompile(Iterable<Key> intentIds, boolean compileAllFailed);
tom95329eb2014-10-06 08:40:06 -070036
tom95329eb2014-10-06 08:40:06 -070037}