blob: 325b790c325a204269096311a51f2e02831a7331 [file] [log] [blame]
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07001/*
2 * Copyright 2014 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 */
tom95329eb2014-10-06 08:40:06 -070016package org.onlab.onos.net.intent.impl;
17
18import org.onlab.onos.net.intent.IntentId;
19
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
tom4e969042014-10-07 00:47:30 -070028 * is true, then all intents in {@link org.onlab.onos.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 */
tom85258ee2014-10-07 00:10:02 -070035 void triggerCompile(Iterable<IntentId> intentIds, boolean compileAllFailed);
tom95329eb2014-10-06 08:40:06 -070036
tom95329eb2014-10-06 08:40:06 -070037}