Support state change notifications
- defined state change event channel name
- added IEventChannelListener implementations to PathCalcRuntimeModule class
- register IntentStateList class to KryoFactory
Change-Id: Ibf09ca0d400954cba27e4dbc3f8c97a91d261435
diff --git a/src/main/java/net/onrc/onos/intent/IntentMap.java b/src/main/java/net/onrc/onos/intent/IntentMap.java
index 53667ad..8e2e125 100644
--- a/src/main/java/net/onrc/onos/intent/IntentMap.java
+++ b/src/main/java/net/onrc/onos/intent/IntentMap.java
@@ -5,10 +5,10 @@
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
-import java.util.Map;
import java.util.Map.Entry;
import net.onrc.onos.intent.Intent.IntentState;
+import net.onrc.onos.intent.runtime.IntentStateList;
/**
* @author Toshio Koide (t-koide@onlab.us)
@@ -88,7 +88,7 @@
notifyEvents();
}
- public void changeStates(Map<String, IntentState> states) {
+ public void changeStates(IntentStateList states) {
for (Entry<String, IntentState> state: states.entrySet()) {
setState(state.getKey(), state.getValue());
}
@@ -167,6 +167,7 @@
case CREATED:
case INST_REQ:
case INST_ACK:
+ case REROUTE_REQ:
setState(targetIntent.getId(), IntentState.INST_NACK);
break;
case DEL_REQ: