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
* new components
*/
protected void init() {
initStorageSource();
topology = new TopologyImpl();
deviceManager = new DeviceManagerImpl();
storageSource = new MemoryStorageSource();
counterStore = new CounterStore();
pktinProcTime = new PktinProcessingTime();
routingEngine = new RoutingImpl();
topology.setFloodlightProvider(this);
topology.setStorageSource(storageSource);
......@@ -1408,7 +1409,6 @@ public class Controller
initMessageFilterManager();
initStaticFlowPusher();
routingEngine = new RoutingImpl();
initForwarding();
// call this explicitly because it does setup
......@@ -1430,6 +1430,10 @@ public class Controller
JacksonCustomConverter.replaceConverter();
}
protected void initStorageSource() {
storageSource = new MemoryStorageSource();
}
protected void initMessageFilterManager() {
messageFilterManager = new OFMessageFilterManager();
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