Brian O'Connor | b876bf1 | 2014-10-02 14:59:37 -0700 | [diff] [blame] | 1 | package org.onlab.onos.net.intent; |
| 2 | |
Brian O'Connor | f2dbde5 | 2014-10-10 16:20:24 -0700 | [diff] [blame] | 3 | import java.util.List; |
Brian O'Connor | cb900f4 | 2014-10-07 21:55:33 -0700 | [diff] [blame] | 4 | |
Brian O'Connor | f2dbde5 | 2014-10-10 16:20:24 -0700 | [diff] [blame] | 5 | import org.onlab.onos.net.flow.FlowRuleBatchOperation; |
Brian O'Connor | cb900f4 | 2014-10-07 21:55:33 -0700 | [diff] [blame] | 6 | |
Brian O'Connor | b876bf1 | 2014-10-02 14:59:37 -0700 | [diff] [blame] | 7 | /** |
| 8 | * Abstraction of entity capable of installing intents to the environment. |
| 9 | */ |
Thomas Vachuska | c96058a | 2014-10-20 23:00:16 -0700 | [diff] [blame] | 10 | public interface IntentInstaller<T extends Intent> { |
Brian O'Connor | b876bf1 | 2014-10-02 14:59:37 -0700 | [diff] [blame] | 11 | /** |
| 12 | * Installs the specified intent to the environment. |
| 13 | * |
| 14 | * @param intent intent to be installed |
| 15 | * @throws IntentException if issues are encountered while installing the intent |
| 16 | */ |
Brian O'Connor | f2dbde5 | 2014-10-10 16:20:24 -0700 | [diff] [blame] | 17 | List<FlowRuleBatchOperation> install(T intent); |
Brian O'Connor | b876bf1 | 2014-10-02 14:59:37 -0700 | [diff] [blame] | 18 | |
| 19 | /** |
| 20 | * Uninstalls the specified intent from the environment. |
| 21 | * |
| 22 | * @param intent intent to be uninstalled |
| 23 | * @throws IntentException if issues are encountered while uninstalling the intent |
| 24 | */ |
Brian O'Connor | f2dbde5 | 2014-10-10 16:20:24 -0700 | [diff] [blame] | 25 | List<FlowRuleBatchOperation> uninstall(T intent); |
Brian O'Connor | b876bf1 | 2014-10-02 14:59:37 -0700 | [diff] [blame] | 26 | } |