Skip to content
Snippets Groups Projects
Commit 86c6ac50 authored by abat's avatar abat
Browse files

Merge into master from pull request #288:

BSC-2398 Add getServiceImpls() for MemoryStorageService (https://github.com/floodlight/floodlight/pull/288)
parents bd3b4743 81333783
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,8 @@ import net.floodlightcontroller.core.module.FloodlightModuleContext; ...@@ -21,6 +21,8 @@ import net.floodlightcontroller.core.module.FloodlightModuleContext;
import net.floodlightcontroller.perfmon.IPktInProcessingTimeService; import net.floodlightcontroller.perfmon.IPktInProcessingTimeService;
import net.floodlightcontroller.storage.nosql.NoSqlStorageSource; import net.floodlightcontroller.storage.nosql.NoSqlStorageSource;
import net.floodlightcontroller.storage.SynchronousExecutorService; import net.floodlightcontroller.storage.SynchronousExecutorService;
import net.floodlightcontroller.storage.IStorageSourceService;
import net.floodlightcontroller.core.module.IFloodlightService;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection; import java.util.Collection;
...@@ -182,4 +184,15 @@ public class MemoryStorageSource extends NoSqlStorageSource { ...@@ -182,4 +184,15 @@ public class MemoryStorageSource extends NoSqlStorageSource {
super.startUp(context); super.startUp(context);
executorService = new SynchronousExecutorService(); executorService = new SynchronousExecutorService();
} }
@Override
public Map<Class<? extends IFloodlightService>,
IFloodlightService> getServiceImpls() {
Map<Class<? extends IFloodlightService>,
IFloodlightService> m =
new HashMap<Class<? extends IFloodlightService>,
IFloodlightService>();
m.put(IStorageSourceService.class, this);
return m;
}
} }
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