Skip to content
Snippets Groups Projects
Commit 31dc0d79 authored by Kanzhe Jiang's avatar Kanzhe Jiang
Browse files

add flowCache stub class

parent 9cabebe9
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,7 @@ public class FloodlightProvider implements IFloodlightModule {
context.getServiceImpl(IPktInProcessingTimeService.class));
controller.setCounterStore(
context.getServiceImpl(ICounterStoreService.class));
controller.setBigFlowCacheMgr(
controller.setFlowCacheMgr(
context.getServiceImpl(IFlowCacheService.class));
controller.setRestApiService(
context.getServiceImpl(IRestApiService.class));
......
......@@ -335,7 +335,7 @@ public class Controller implements IFloodlightProviderService,
this.counterStore = counterStore;
}
public void setBigFlowCacheMgr(IFlowCacheService flowCacheMgr) {
public void setFlowCacheMgr(IFlowCacheService flowCacheMgr) {
this.bigFlowCacheMgr = flowCacheMgr;
}
......
package net.floodlightcontroller.flowcache;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import org.openflow.protocol.OFMatchWithSwDpid;
import net.floodlightcontroller.core.FloodlightContext;
import net.floodlightcontroller.core.IOFSwitch;
import net.floodlightcontroller.devicemanager.SwitchPort;
import net.floodlightcontroller.core.module.FloodlightModuleContext;
import net.floodlightcontroller.core.module.FloodlightModuleException;
import net.floodlightcontroller.core.module.IFloodlightModule;
import net.floodlightcontroller.core.module.IFloodlightService;
public class FlowCache implements IFloodlightModule, IFlowCacheService {
@Override
public void submitFlowCacheQuery(FCQueryObj query) {}
@Override
public void deleteFlowCacheBySwitch(long switchDpid) {}
@Override
public void updateFlush() {}
@Override
public boolean addFlow(String appInstName, OFMatchWithSwDpid ofm,
Long cookie, long srcSwDpid,
short inPort, short priority, byte action) {
return true;
}
@Override
public boolean addFlow(FloodlightContext cntx, OFMatchWithSwDpid ofm,
Long cookie, SwitchPort swPort,
short priority, byte action) {
return true;
}
@Override
public boolean moveFlowToDifferentApplInstName(OFMatchReconcile ofMRc) {
return true;
}
@Override
public void deleteAllFlowsAtASourceSwitch(IOFSwitch sw) {}
@Override
public void querySwitchFlowTable(long swDpid) {}
// IFloodlightModule
@Override
public Collection<Class<? extends IFloodlightService>> getModuleServices() {
Collection<Class<? extends IFloodlightService>> l =
new ArrayList<Class<? extends IFloodlightService>>();
l.add(IFlowCacheService.class);
return l;
}
@Override
public Map<Class<? extends IFloodlightService>, IFloodlightService>
getServiceImpls() {
Map<Class<? extends IFloodlightService>,
IFloodlightService> m =
new HashMap<Class<? extends IFloodlightService>,
IFloodlightService>();
m.put(IFlowCacheService.class, this);
return m;
}
@Override
public Collection<Class<? extends IFloodlightService>>
getModuleDependencies() {
return null;
}
@Override
public void init(FloodlightModuleContext context)
throws FloodlightModuleException {}
@Override
public void startUp(FloodlightModuleContext context) {}
}
......@@ -4,6 +4,7 @@ net.floodlightcontroller.devicemanager.internal.DeviceManagerImpl
net.floodlightcontroller.linkdiscovery.internal.LinkDiscoveryManager
net.floodlightcontroller.topology.TopologyManager
net.floodlightcontroller.forwarding.Forwarding
net.floodlightcontroller.flowcache.FlowCache
net.floodlightcontroller.flowcache.FlowReconcileManager
net.floodlightcontroller.core.OFMessageFilterManager
net.floodlightcontroller.staticflowentry.StaticFlowEntryPusher
......
......@@ -8,6 +8,7 @@ net.floodlightcontroller.firewall.Firewall,\
net.floodlightcontroller.forwarding.Forwarding,\
net.floodlightcontroller.linkdiscovery.internal.LinkDiscoveryManager, \
net.floodlightcontroller.topology.TopologyManager, \
net.floodlightcontroller.flowcache.FlowCache, \
net.floodlightcontroller.flowcache.FlowReconcileManager, \
net.floodlightcontroller.jython.JythonDebugInterface,\
net.floodlightcontroller.counter.CounterStore,\
......
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