blob: 1836347379ee5d731d4ec9a3a6f01306155804bc [file] [log] [blame]
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2014-present 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 */
Yi Tseng24d9be72017-05-12 11:28:13 -070016package org.onosproject.net.intent;
tom95329eb2014-10-06 08:40:06 -070017
18/**
19 * Auxiliary delegate for integration of intent manager and flow trackerService.
20 */
21public interface TopologyChangeDelegate {
22
23 /**
24 * Notifies that topology has changed in such a way that the specified
tom85258ee2014-10-07 00:10:02 -070025 * intents should be recompiled. If the {@code compileAllFailed} parameter
Brian O'Connorabafb502014-12-02 22:26:20 -080026 * is true, then all intents in {@link org.onosproject.net.intent.IntentState#FAILED}
tom85258ee2014-10-07 00:10:02 -070027 * state should be compiled as well.
tom95329eb2014-10-06 08:40:06 -070028 *
29 * @param intentIds intents that should be recompiled
tom4e969042014-10-07 00:47:30 -070030 * @param compileAllFailed true implies full compile of all failed intents
31 * is required; false for selective recompile only
tom95329eb2014-10-06 08:40:06 -070032 */
Ray Milkeyf9af43c2015-02-09 16:45:48 -080033 void triggerCompile(Iterable<Key> intentIds, boolean compileAllFailed);
tom95329eb2014-10-06 08:40:06 -070034
tom95329eb2014-10-06 08:40:06 -070035}