diff --git a/src/main/java/net/floodlightcontroller/core/OFSwitch.java b/src/main/java/net/floodlightcontroller/core/OFSwitch.java index a184f8a0d380477b80afe33058e5b661fe310bb5..994e07f37801ca07857ddba680d58d40b79f461d 100644 --- a/src/main/java/net/floodlightcontroller/core/OFSwitch.java +++ b/src/main/java/net/floodlightcontroller/core/OFSwitch.java @@ -41,7 +41,6 @@ import net.floodlightcontroller.core.annotations.LogMessageDoc; import net.floodlightcontroller.core.internal.IOFSwitchManager; import net.floodlightcontroller.core.util.AppCookie; import net.floodlightcontroller.core.util.URIUtil; -import net.floodlightcontroller.debugcounter.IDebugCounterService; import org.projectfloodlight.openflow.protocol.OFActionType; import org.projectfloodlight.openflow.protocol.OFBsnControllerConnection; @@ -123,7 +122,7 @@ public class OFSwitch implements IOFSwitchBackend { } public OFSwitch(IOFConnectionBackend connection, @Nonnull OFFactory factory, @Nonnull IOFSwitchManager switchManager, - @Nonnull DatapathId datapathId, @Nonnull IDebugCounterService debugCounterService) { + @Nonnull DatapathId datapathId) { if(connection == null) throw new NullPointerException("connection must not be null"); if(!connection.getAuxId().equals(OFAuxId.MAIN)) diff --git a/src/main/java/net/floodlightcontroller/core/internal/ISwitchDriverRegistry.java b/src/main/java/net/floodlightcontroller/core/internal/ISwitchDriverRegistry.java index 8e33433b1515e8604eecd4ddf172e8ca57272e1e..edefabdf8654899e81707eaba3fa05ae9bdf674a 100644 --- a/src/main/java/net/floodlightcontroller/core/internal/ISwitchDriverRegistry.java +++ b/src/main/java/net/floodlightcontroller/core/internal/ISwitchDriverRegistry.java @@ -4,7 +4,6 @@ import net.floodlightcontroller.core.IOFConnectionBackend; import net.floodlightcontroller.core.IOFSwitchBackend; import net.floodlightcontroller.core.IOFSwitchDriver; import net.floodlightcontroller.core.SwitchDescription; -import net.floodlightcontroller.debugcounter.IDebugCounterService; import org.projectfloodlight.openflow.protocol.OFFactory; import org.projectfloodlight.openflow.types.DatapathId; @@ -64,5 +63,5 @@ public interface ISwitchDriverRegistry { * @throws NullPointerException If the SwitchDescription or any of its * members is null. */ - IOFSwitchBackend getOFSwitchInstance(IOFConnectionBackend connection, SwitchDescription description, OFFactory factory, DatapathId datapathId, IDebugCounterService debugCounterService); + IOFSwitchBackend getOFSwitchInstance(IOFConnectionBackend connection, SwitchDescription description, OFFactory factory, DatapathId datapathId); } diff --git a/src/main/java/net/floodlightcontroller/core/internal/NaiveSwitchDriverRegistry.java b/src/main/java/net/floodlightcontroller/core/internal/NaiveSwitchDriverRegistry.java index cc68b7b17b9f54fd86159739ed62c6114e17b1b9..b6bb90358f88b8c2fa38c6c478c2e8d9cbec64ac 100644 --- a/src/main/java/net/floodlightcontroller/core/internal/NaiveSwitchDriverRegistry.java +++ b/src/main/java/net/floodlightcontroller/core/internal/NaiveSwitchDriverRegistry.java @@ -13,7 +13,6 @@ import net.floodlightcontroller.core.IOFSwitchBackend; import net.floodlightcontroller.core.IOFSwitchDriver; import net.floodlightcontroller.core.OFSwitch; import net.floodlightcontroller.core.SwitchDescription; -import net.floodlightcontroller.debugcounter.IDebugCounterService; import org.projectfloodlight.openflow.protocol.OFFactory; import org.projectfloodlight.openflow.types.DatapathId; @@ -71,7 +70,7 @@ class NaiveSwitchDriverRegistry implements ISwitchDriverRegistry { // but it's probably not worth it. public synchronized IOFSwitchBackend getOFSwitchInstance(@Nonnull IOFConnectionBackend connection, @Nonnull SwitchDescription description, - @Nonnull OFFactory factory, @Nonnull DatapathId id, @Nonnull IDebugCounterService debugCounterService) { + @Nonnull OFFactory factory, @Nonnull DatapathId id) { Preconditions.checkNotNull(connection, "connection"); Preconditions.checkNotNull(description, "description"); Preconditions.checkNotNull(factory, "factory"); @@ -96,7 +95,7 @@ class NaiveSwitchDriverRegistry implements ISwitchDriverRegistry { } } // no switch found - IOFSwitchBackend sw = new OFSwitch(connection, factory, switchManager, id, debugCounterService); + IOFSwitchBackend sw = new OFSwitch(connection, factory, switchManager, id); sw.setSwitchProperties(description); return sw; } diff --git a/src/main/java/net/floodlightcontroller/core/internal/OFSwitchManager.java b/src/main/java/net/floodlightcontroller/core/internal/OFSwitchManager.java index ead4c4303d2c37a12cec34cefc66f3e172684d0f..dc248c074803969e8c5cb0d409ac700d26e1166d 100644 --- a/src/main/java/net/floodlightcontroller/core/internal/OFSwitchManager.java +++ b/src/main/java/net/floodlightcontroller/core/internal/OFSwitchManager.java @@ -470,7 +470,7 @@ public class OFSwitchManager implements IOFSwitchManager, INewOFConnectionListen public IOFSwitchBackend getOFSwitchInstance(IOFConnectionBackend connection, SwitchDescription description, OFFactory factory, DatapathId datapathId) { - return this.driverRegistry.getOFSwitchInstance(connection, description, factory, datapathId, debugCounterService); + return this.driverRegistry.getOFSwitchInstance(connection, description, factory, datapathId); } @Override