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

initial FC re-work

parent 599fe8dd
No related branches found
No related tags found
No related merge requests found
......@@ -17,14 +17,11 @@
package net.floodlightcontroller.core;
/**
* Interface for implementing an event listener with support for ordering
* based on prerequisites and postrequisites.
* @author readams
*
* @param <T> The event type
*/
public interface IListener<T> {
public enum Command {
CONTINUE, STOP
}
/**
* The name assigned to this listener
* @return
......
......@@ -26,10 +26,6 @@ import org.openflow.protocol.OFType;
* @author David Erickson (daviderickson@cs.stanford.edu)
*/
public interface IOFMessageListener extends IListener<OFType> {
public enum Command {
CONTINUE, STOP
}
/**
* This is the method Floodlight uses to call listeners with OpenFlow messages
* @param sw the OpenFlow switch that sent this message
......
......@@ -51,7 +51,7 @@ import net.floodlightcontroller.core.IFloodlightProviderService;
import net.floodlightcontroller.core.IHAListener;
import net.floodlightcontroller.core.IInfoProvider;
import net.floodlightcontroller.core.IOFMessageListener;
import net.floodlightcontroller.core.IOFMessageListener.Command;
import net.floodlightcontroller.core.IListener.Command;
import net.floodlightcontroller.core.IOFSwitch;
import net.floodlightcontroller.core.IOFSwitchFilter;
import net.floodlightcontroller.core.IOFSwitchListener;
......
......@@ -38,7 +38,7 @@ import net.floodlightcontroller.core.IHAListener;
import net.floodlightcontroller.core.IFloodlightProviderService.Role;
import net.floodlightcontroller.core.IOFMessageFilterManagerService;
import net.floodlightcontroller.core.IOFMessageListener;
import net.floodlightcontroller.core.IOFMessageListener.Command;
import net.floodlightcontroller.core.IListener.Command;
import net.floodlightcontroller.core.IOFSwitch;
import net.floodlightcontroller.core.IOFSwitchListener;
import net.floodlightcontroller.core.OFMessageFilterManager;
......
......@@ -33,7 +33,7 @@ import net.floodlightcontroller.core.IOFMessageListener;
import net.floodlightcontroller.core.IOFSwitch;
import net.floodlightcontroller.core.IOFSwitchFilter;
import net.floodlightcontroller.core.IOFSwitchListener;
import net.floodlightcontroller.core.IOFMessageListener.Command;
import net.floodlightcontroller.core.IListener.Command;
import net.floodlightcontroller.core.module.FloodlightModuleContext;
import net.floodlightcontroller.core.module.FloodlightModuleException;
import net.floodlightcontroller.core.module.IFloodlightModule;
......
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