Skip to content
Snippets Groups Projects
Commit d52e5974 authored by Alex Reimers's avatar Alex Reimers
Browse files

Moved storage source setup to it's own function.

parent e8ae4b0c
No related branches found
No related tags found
No related merge requests found
...@@ -1393,11 +1393,12 @@ public class Controller ...@@ -1393,11 +1393,12 @@ public class Controller
* new components * new components
*/ */
protected void init() { protected void init() {
initStorageSource();
topology = new TopologyImpl(); topology = new TopologyImpl();
deviceManager = new DeviceManagerImpl(); deviceManager = new DeviceManagerImpl();
storageSource = new MemoryStorageSource();
counterStore = new CounterStore(); counterStore = new CounterStore();
pktinProcTime = new PktinProcessingTime(); pktinProcTime = new PktinProcessingTime();
routingEngine = new RoutingImpl();
topology.setFloodlightProvider(this); topology.setFloodlightProvider(this);
topology.setStorageSource(storageSource); topology.setStorageSource(storageSource);
...@@ -1408,7 +1409,6 @@ public class Controller ...@@ -1408,7 +1409,6 @@ public class Controller
initMessageFilterManager(); initMessageFilterManager();
initStaticFlowPusher(); initStaticFlowPusher();
routingEngine = new RoutingImpl();
initForwarding(); initForwarding();
// call this explicitly because it does setup // call this explicitly because it does setup
...@@ -1430,6 +1430,10 @@ public class Controller ...@@ -1430,6 +1430,10 @@ public class Controller
JacksonCustomConverter.replaceConverter(); JacksonCustomConverter.replaceConverter();
} }
protected void initStorageSource() {
storageSource = new MemoryStorageSource();
}
protected void initMessageFilterManager() { protected void initMessageFilterManager() {
messageFilterManager = new OFMessageFilterManager(); messageFilterManager = new OFMessageFilterManager();
messageFilterManager.init(this); messageFilterManager.init(this);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment