Jonathan Hart | aa38097 | 2014-04-03 10:24:46 -0700 | [diff] [blame] | 1 | package net.onrc.onos.core.intent.runtime; |
Toshio Koide | 27ffd41 | 2014-02-18 19:15:27 -0800 | [diff] [blame] | 2 | |
Pavlin Radoslavov | e2238bc | 2014-06-09 18:05:23 -0700 | [diff] [blame^] | 3 | import java.util.Collection; |
| 4 | |
Toshio Koide | 27ffd41 | 2014-02-18 19:15:27 -0800 | [diff] [blame] | 5 | import net.floodlightcontroller.core.module.IFloodlightService; |
Pavlin Radoslavov | e2238bc | 2014-06-09 18:05:23 -0700 | [diff] [blame^] | 6 | import net.onrc.onos.api.intent.ApplicationIntent; |
Jonathan Hart | aa38097 | 2014-04-03 10:24:46 -0700 | [diff] [blame] | 7 | import net.onrc.onos.core.intent.IntentMap; |
| 8 | import net.onrc.onos.core.intent.IntentOperationList; |
Toshio Koide | 27ffd41 | 2014-02-18 19:15:27 -0800 | [diff] [blame] | 9 | |
Toshio Koide | d9fa2a8 | 2014-02-19 17:35:18 -0800 | [diff] [blame] | 10 | /** |
| 11 | * @author Toshio Koide (t-koide@onlab.us) |
| 12 | */ |
Toshio Koide | 27ffd41 | 2014-02-18 19:15:27 -0800 | [diff] [blame] | 13 | public interface IPathCalcRuntimeService extends IFloodlightService { |
Pavlin Radoslavov | e2238bc | 2014-06-09 18:05:23 -0700 | [diff] [blame^] | 14 | /** |
| 15 | * Add Application Intents. |
| 16 | * |
| 17 | * @param appId the Application ID to use. |
| 18 | * @param appIntents the Application Intents to add. |
| 19 | * @return true on success, otherwise false. |
| 20 | */ |
| 21 | public boolean addApplicationIntents( |
| 22 | final String appId, |
| 23 | Collection<ApplicationIntent> appIntents); |
| 24 | |
| 25 | /** |
| 26 | * Remove Application Intents. |
| 27 | * |
| 28 | * @param appId the Application ID to use. |
| 29 | * @param intentIds the Application Intent IDs to remove. |
| 30 | * @return true on success, otherwise false. |
| 31 | */ |
| 32 | public boolean removeApplicationIntents(final String appId, |
| 33 | Collection<String> intentIds); |
| 34 | |
| 35 | /** |
| 36 | * Remove all Application Intents. |
| 37 | * |
| 38 | * @param appId the Application ID to use. |
| 39 | * @return true on success, otherwise false. |
| 40 | */ |
| 41 | public boolean removeAllApplicationIntents(final String appId); |
| 42 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 43 | public IntentOperationList executeIntentOperations(IntentOperationList list); |
| 44 | |
| 45 | public IntentMap getHighLevelIntents(); |
| 46 | |
| 47 | public IntentMap getPathIntents(); |
| 48 | |
| 49 | public void purgeIntents(); |
Toshio Koide | 27ffd41 | 2014-02-18 19:15:27 -0800 | [diff] [blame] | 50 | } |