Define APIs to determine how to install/remove an intent
It's a part of ONOS-1654.
- IntentInstaller handles installation/removal of an intent
- IIntentRuntime supports register/unregister IntentInstaller
Change-Id: I7dae171b445eac6254131a9f4144f0447a2321f2
diff --git a/src/main/java/net/onrc/onos/core/newintent/IntentRuntimeModule.java b/src/main/java/net/onrc/onos/core/newintent/IntentRuntimeModule.java
index 8da30e8..2521e56 100644
--- a/src/main/java/net/onrc/onos/core/newintent/IntentRuntimeModule.java
+++ b/src/main/java/net/onrc/onos/core/newintent/IntentRuntimeModule.java
@@ -9,6 +9,7 @@
import net.onrc.onos.api.intent.IIntentRuntimeService;
import net.onrc.onos.api.intent.Intent;
import net.onrc.onos.api.intent.IntentId;
+import net.onrc.onos.api.intent.IntentInstaller;
import net.onrc.onos.api.intent.IntentResolver;
/**
@@ -75,6 +76,18 @@
}
@Override
+ public <T extends Intent> boolean addInstaller(Class<T> type, IntentInstaller<T> installer) {
+ // TODO: implement this method
+ return false;
+ }
+
+ @Override
+ public <T extends Intent> boolean removeInstaller(Class<T> type) {
+ // TODO: impelment this method
+ return false;
+ }
+
+ @Override
public Collection<IFlow> getFlows(String intentId) {
// TODO Auto-generated method stub
return null;