Register Intent-related classes to KryoFactory and fix bugs
Change-Id: I591c8788dda31c658a6d985d394653524d884c5d
diff --git a/src/main/java/net/onrc/onos/intent/runtime/PathCalcRuntimeModule.java b/src/main/java/net/onrc/onos/intent/runtime/PathCalcRuntimeModule.java
index 56758cb..26afe51 100644
--- a/src/main/java/net/onrc/onos/intent/runtime/PathCalcRuntimeModule.java
+++ b/src/main/java/net/onrc/onos/intent/runtime/PathCalcRuntimeModule.java
@@ -31,7 +31,7 @@
@Override
public Collection<Class<? extends IFloodlightService>> getModuleServices() {
Collection<Class<? extends IFloodlightService>> l = new ArrayList<>(1);
- l.add(PathCalcRuntime.class);
+ l.add(IPathCalcRuntimeService.class);
return l;
}
@@ -54,13 +54,13 @@
public void init(FloodlightModuleContext context) throws FloodlightModuleException {
datagridService = context.getServiceImpl(IDatagridService.class);
networkGraphService = context.getServiceImpl(INetworkGraphService.class);
- runtime = new PathCalcRuntime(networkGraphService.getNetworkGraph());
- highLevelIntents = new IntentMap();
- pathIntents = new PathIntentMap(networkGraphService.getNetworkGraph());
}
@Override
public void startUp(FloodlightModuleContext context) {
+ highLevelIntents = new IntentMap();
+ runtime = new PathCalcRuntime(networkGraphService.getNetworkGraph());
+ pathIntents = new PathIntentMap(networkGraphService.getNetworkGraph());
eventChannel = datagridService.createChannel(
EVENT_CHANNEL_NAME,
byte[].class,