blob: 4dafcba39ed671e19b724df3b8eee7860d8dea9b [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
Thomas Vachuskab97cf282014-10-20 23:31:12 -070018import org.onlab.onos.net.NetworkResource;
tom95329eb2014-10-06 08:40:06 -070019import org.onlab.onos.net.intent.IntentId;
20
21import java.util.Collection;
22
23/**
24 * Auxiliary service for tracking intent path flows and for notifying the
25 * intent service of environment changes via topology change delegate.
26 */
tom85258ee2014-10-07 00:10:02 -070027public interface ObjectiveTrackerService {
tom95329eb2014-10-06 08:40:06 -070028
29 /**
30 * Sets a topology change delegate.
31 *
32 * @param delegate topology change delegate
33 */
34 void setDelegate(TopologyChangeDelegate delegate);
35
36 /**
37 * Unsets topology change delegate.
38 *
39 * @param delegate topology change delegate
40 */
41 void unsetDelegate(TopologyChangeDelegate delegate);
42
43 /**
44 * Adds a path flow to be tracked.
45 *
Thomas Vachuskab97cf282014-10-20 23:31:12 -070046 * @param intentId intent identity on whose behalf the path is being tracked
tom95329eb2014-10-06 08:40:06 -070047 * @param resources resources to track
48 */
Thomas Vachuskab97cf282014-10-20 23:31:12 -070049 public void addTrackedResources(IntentId intentId,
50 Collection<NetworkResource> resources);
tom95329eb2014-10-06 08:40:06 -070051
52 /**
53 * Removes a path flow to be tracked.
54 *
Thomas Vachuskab97cf282014-10-20 23:31:12 -070055 * @param intentId intent identity on whose behalf the path is being tracked
tom95329eb2014-10-06 08:40:06 -070056 * @param resources resources to stop tracking
57 */
Thomas Vachuskab97cf282014-10-20 23:31:12 -070058 public void removeTrackedResources(IntentId intentId,
59 Collection<NetworkResource> resources);
tom95329eb2014-10-06 08:40:06 -070060
61}