tom

Refactored the OpenFlow controller package name-space and fixed a number of Javadoc warnings.

Showing 78 changed files with 168 additions and 165 deletions
......@@ -25,9 +25,9 @@ import java.util.Map;
import java.util.Set;
import java.util.concurrent.Future;
import net.onrc.onos.of.ctl.debugcounter.IDebugCounterService;
import net.onrc.onos.of.ctl.debugcounter.IDebugCounterService.CounterException;
import net.onrc.onos.of.ctl.util.OrderedCollection;
import org.onlab.onos.of.controller.impl.debugcounter.IDebugCounterService;
import org.onlab.onos.of.controller.impl.debugcounter.IDebugCounterService.CounterException;
import org.onlab.onos.of.controller.impl.util.OrderedCollection;
import org.jboss.netty.channel.Channel;
import org.projectfloodlight.openflow.protocol.OFActionType;
......
......@@ -2,7 +2,7 @@ package net.onrc.onos.of.ctl;
import org.projectfloodlight.openflow.protocol.OFVersion;
import net.onrc.onos.of.ctl.registry.IControllerRegistry;
import org.onlab.onos.of.controller.impl.registry.IControllerRegistry;
/**
* Interface to passed to controller class in order to allow
......
......@@ -15,7 +15,7 @@
* under the License.
**/
package net.onrc.onos.of.ctl.annotations;
package org.onlab.onos.of.controller.impl.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
......
......@@ -15,7 +15,7 @@
* under the License.
**/
package net.onrc.onos.of.ctl.annotations;
package org.onlab.onos.of.controller.impl.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
......
......@@ -15,7 +15,7 @@
* under the License.
**/
package net.onrc.onos.of.ctl.annotations;
package org.onlab.onos.of.controller.impl.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
......
package net.onrc.onos.of.ctl.debugcounter;
package org.onlab.onos.of.controller.impl.debugcounter;
import java.util.ArrayList;
import java.util.Arrays;
......
package net.onrc.onos.of.ctl.debugcounter;
package org.onlab.onos.of.controller.impl.debugcounter;
public interface IDebugCounter {
/**
......
package net.onrc.onos.of.ctl.debugcounter;
package org.onlab.onos.of.controller.impl.debugcounter;
import java.util.List;
import net.onrc.onos.of.ctl.debugcounter.DebugCounter.DebugCounterInfo;
import org.onlab.onos.of.controller.impl.debugcounter.DebugCounter.DebugCounterInfo;
public interface IDebugCounterService {
......
package net.onrc.onos.of.ctl.debugcounter;
package org.onlab.onos.of.controller.impl.debugcounter;
import java.util.Collections;
import java.util.List;
import net.onrc.onos.of.ctl.debugcounter.DebugCounter.DebugCounterInfo;
import org.onlab.onos.of.controller.impl.debugcounter.DebugCounter.DebugCounterInfo;
public class NullDebugCounter implements IDebugCounterService {
......
......@@ -15,7 +15,7 @@
* under the License.
**/
package net.onrc.onos.of.ctl.internal;
package org.onlab.onos.of.controller.impl.internal;
import java.lang.management.ManagementFactory;
import java.lang.management.RuntimeMXBean;
......@@ -31,20 +31,20 @@ import java.util.concurrent.Executors;
import net.onrc.onos.of.ctl.IOFSwitchManager;
import net.onrc.onos.of.ctl.Role;
import net.onrc.onos.of.ctl.annotations.LogMessageDoc;
import net.onrc.onos.of.ctl.annotations.LogMessageDocs;
import net.onrc.onos.of.ctl.debugcounter.DebugCounter;
import net.onrc.onos.of.ctl.debugcounter.IDebugCounter;
import net.onrc.onos.of.ctl.debugcounter.IDebugCounterService;
import net.onrc.onos.of.ctl.debugcounter.IDebugCounterService.CounterException;
import net.onrc.onos.of.ctl.debugcounter.IDebugCounterService.CounterType;
import net.onrc.onos.of.ctl.internal.OFChannelHandler.RoleRecvStatus;
import net.onrc.onos.of.ctl.registry.IControllerRegistry;
import net.onrc.onos.of.ctl.registry.RegistryException;
import net.onrc.onos.of.ctl.registry.IControllerRegistry.ControlChangeCallback;
import net.onrc.onos.of.ctl.util.Dpid;
import net.onrc.onos.of.ctl.util.DummySwitchForTesting;
import net.onrc.onos.of.ctl.util.InstanceId;
import org.onlab.onos.of.controller.impl.annotations.LogMessageDoc;
import org.onlab.onos.of.controller.impl.annotations.LogMessageDocs;
import org.onlab.onos.of.controller.impl.debugcounter.DebugCounter;
import org.onlab.onos.of.controller.impl.debugcounter.IDebugCounter;
import org.onlab.onos.of.controller.impl.debugcounter.IDebugCounterService;
import org.onlab.onos.of.controller.impl.debugcounter.IDebugCounterService.CounterException;
import org.onlab.onos.of.controller.impl.debugcounter.IDebugCounterService.CounterType;
import org.onlab.onos.of.controller.impl.internal.OFChannelHandler.RoleRecvStatus;
import org.onlab.onos.of.controller.impl.registry.IControllerRegistry;
import org.onlab.onos.of.controller.impl.registry.RegistryException;
import org.onlab.onos.of.controller.impl.registry.IControllerRegistry.ControlChangeCallback;
import org.onlab.onos.of.controller.impl.util.Dpid;
import org.onlab.onos.of.controller.impl.util.DummySwitchForTesting;
import org.onlab.onos.of.controller.impl.util.InstanceId;
import net.onrc.onos.of.ctl.IOFSwitch;
import net.onrc.onos.of.ctl.IOFSwitch.PortChangeType;
......
......@@ -15,7 +15,7 @@
* under the License.
**/
package net.onrc.onos.of.ctl.internal;
package org.onlab.onos.of.controller.impl.internal;
/**
* Exception is thrown when the handshake fails to complete.
......
......@@ -15,7 +15,7 @@
* under the License.
**/
package net.onrc.onos.of.ctl.internal;
package org.onlab.onos.of.controller.impl.internal;
import java.util.concurrent.TimeUnit;
......
package net.onrc.onos.of.ctl.internal;
package org.onlab.onos.of.controller.impl.internal;
import java.io.IOException;
import java.nio.channels.ClosedChannelException;
......@@ -12,11 +12,11 @@ import java.util.concurrent.RejectedExecutionException;
import net.onrc.onos.of.ctl.IOFSwitch;
import net.onrc.onos.of.ctl.IOFSwitch.PortChangeEvent;
import net.onrc.onos.of.ctl.Role;
import net.onrc.onos.of.ctl.annotations.LogMessageDoc;
import net.onrc.onos.of.ctl.annotations.LogMessageDocs;
import net.onrc.onos.of.ctl.debugcounter.IDebugCounterService.CounterException;
import net.onrc.onos.of.ctl.internal.Controller.Counters;
import net.onrc.onos.of.ctl.internal.OFChannelHandler.ChannelState.RoleReplyInfo;
import org.onlab.onos.of.controller.impl.annotations.LogMessageDoc;
import org.onlab.onos.of.controller.impl.annotations.LogMessageDocs;
import org.onlab.onos.of.controller.impl.debugcounter.IDebugCounterService.CounterException;
import org.onlab.onos.of.controller.impl.internal.Controller.Counters;
import org.onlab.onos.of.controller.impl.internal.OFChannelHandler.ChannelState.RoleReplyInfo;
import org.jboss.netty.channel.Channel;
import org.jboss.netty.channel.ChannelHandlerContext;
......
......@@ -15,7 +15,7 @@
* under the License.
**/
package net.onrc.onos.of.ctl.internal;
package org.onlab.onos.of.controller.impl.internal;
import org.jboss.netty.buffer.ChannelBuffer;
......
......@@ -15,7 +15,7 @@
* under the License.
**/
package net.onrc.onos.of.ctl.internal;
package org.onlab.onos.of.controller.impl.internal;
import java.util.List;
......
......@@ -15,7 +15,7 @@
* under the License.
**/
package net.onrc.onos.of.ctl.internal;
package org.onlab.onos.of.controller.impl.internal;
import java.util.concurrent.ThreadPoolExecutor;
......
package net.onrc.onos.of.ctl.internal;
package org.onlab.onos.of.controller.impl.internal;
/**
* Thrown when IOFSwitch.startDriverHandshake() is called more than once.
......
package net.onrc.onos.of.ctl.internal;
package org.onlab.onos.of.controller.impl.internal;
import org.projectfloodlight.openflow.protocol.OFMessage;
......
package net.onrc.onos.of.ctl.internal;
package org.onlab.onos.of.controller.impl.internal;
/**
* Base class for exception thrown by switch driver sub-handshake processing.
......
package net.onrc.onos.of.ctl.internal;
package org.onlab.onos.of.controller.impl.internal;
/**
* Thrown when a switch driver's sub-handshake has not been started but an
......
package net.onrc.onos.of.ctl.internal;
package org.onlab.onos.of.controller.impl.internal;
/**
* Thrown when a switch driver's sub-handshake state-machine receives an
......
......@@ -15,7 +15,7 @@
* under the License.
**/
package net.onrc.onos.of.ctl.internal;
package org.onlab.onos.of.controller.impl.internal;
/**
* This exception indicates an error or unexpected message during
......
package net.onrc.onos.of.ctl.registry;
package org.onlab.onos.of.controller.impl.registry;
......
package net.onrc.onos.of.ctl.registry;
package org.onlab.onos.of.controller.impl.registry;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import net.onrc.onos.of.ctl.util.InstanceId;
import org.onlab.onos.of.controller.impl.util.InstanceId;
/**
* A registry service that allows ONOS to register controllers and switches in a
......
package net.onrc.onos.of.ctl.registry;
package org.onlab.onos.of.controller.impl.registry;
public class IdBlock {
private final long start;
......
package net.onrc.onos.of.ctl.registry;
package org.onlab.onos.of.controller.impl.registry;
public class RegistryException extends Exception {
......
package net.onrc.onos.of.ctl.util;
package org.onlab.onos.of.controller.impl.util;
import org.projectfloodlight.openflow.util.HexString;
......
package net.onrc.onos.of.ctl.util;
package org.onlab.onos.of.controller.impl.util;
import java.io.IOException;
import java.util.Collection;
......@@ -27,8 +27,8 @@ import org.slf4j.LoggerFactory;
import net.onrc.onos.of.ctl.IOFSwitch;
import net.onrc.onos.of.ctl.Role;
import net.onrc.onos.of.ctl.debugcounter.IDebugCounterService;
import net.onrc.onos.of.ctl.debugcounter.IDebugCounterService.CounterException;
import org.onlab.onos.of.controller.impl.debugcounter.IDebugCounterService;
import org.onlab.onos.of.controller.impl.debugcounter.IDebugCounterService.CounterException;
public class DummySwitchForTesting implements IOFSwitch {
......
package net.onrc.onos.of.ctl.util;
package org.onlab.onos.of.controller.impl.util;
import java.util.EnumSet;
import java.util.Set;
......
......@@ -15,7 +15,7 @@
* under the License.
**/
package net.onrc.onos.of.ctl.util;
package org.onlab.onos.of.controller.impl.util;
import java.util.Iterator;
import java.util.NoSuchElementException;
......
package net.onrc.onos.of.ctl.util;
package org.onlab.onos.of.controller.impl.util;
import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.base.Preconditions.checkArgument;
......
......@@ -15,7 +15,7 @@
* under the License.
**/
package net.onrc.onos.of.ctl.util;
package org.onlab.onos.of.controller.impl.util;
import java.util.Iterator;
import java.util.NoSuchElementException;
......
......@@ -15,7 +15,7 @@
* under the License.
**/
package net.onrc.onos.of.ctl.util;
package org.onlab.onos.of.controller.impl.util;
import java.util.LinkedHashMap;
import java.util.Map;
......
package net.onrc.onos.of.ctl.util;
package org.onlab.onos.of.controller.impl.util;
import java.util.Collection;
import java.util.LinkedHashSet;
......
......@@ -15,7 +15,7 @@
* under the License.
**/
package net.onrc.onos.of.ctl.util;
package org.onlab.onos.of.controller.impl.util;
import java.util.Iterator;
import java.util.NoSuchElementException;
......
package net.onrc.onos.of.ctl.util;
package org.onlab.onos.of.controller.impl.util;
import java.util.Collection;
......
......@@ -15,7 +15,7 @@
* under the License.
**/
package net.onrc.onos.of.ctl.internal;
package org.onlab.onos.of.controller.impl.internal;
import junit.framework.TestCase;
import net.onrc.onos.of.ctl.IOFSwitch;
......
package net.onrc.onos.of.ctl.internal;
package org.onlab.onos.of.controller.impl.internal;
import static org.easymock.EasyMock.capture;
import static org.easymock.EasyMock.createMock;
......@@ -20,9 +20,9 @@ import java.util.Set;
import net.onrc.onos.of.ctl.IOFSwitch;
import net.onrc.onos.of.ctl.Role;
import net.onrc.onos.of.ctl.debugcounter.DebugCounter;
import net.onrc.onos.of.ctl.debugcounter.IDebugCounterService;
import net.onrc.onos.of.ctl.internal.OFChannelHandler.RoleRecvStatus;
import org.onlab.onos.of.controller.impl.debugcounter.DebugCounter;
import org.onlab.onos.of.controller.impl.debugcounter.IDebugCounterService;
import org.onlab.onos.of.controller.impl.internal.OFChannelHandler.RoleRecvStatus;
import org.easymock.Capture;
import org.easymock.CaptureType;
......
......@@ -15,7 +15,7 @@
* under the License.
**/
package net.onrc.onos.of.ctl;
package org.onlab.onos.of.controller.impl;
import java.io.IOException;
import java.util.Collection;
......@@ -25,9 +25,9 @@ import java.util.Map;
import java.util.Set;
import java.util.concurrent.Future;
import net.onrc.onos.of.ctl.debugcounter.IDebugCounterService;
import net.onrc.onos.of.ctl.debugcounter.IDebugCounterService.CounterException;
import net.onrc.onos.of.ctl.util.OrderedCollection;
import org.onlab.onos.of.controller.impl.debugcounter.IDebugCounterService;
import org.onlab.onos.of.controller.impl.debugcounter.IDebugCounterService.CounterException;
import org.onlab.onos.of.controller.impl.util.OrderedCollection;
import org.jboss.netty.channel.Channel;
import org.projectfloodlight.openflow.protocol.OFActionType;
......@@ -71,7 +71,6 @@ public interface IOFSwitch {
* Writes to the OFMessage to the output stream.
*
* @param m
* @param bc
* @throws IOException
*/
public void write(OFMessage m) throws IOException;
......@@ -80,7 +79,6 @@ public interface IOFSwitch {
* Writes the list of messages to the output stream.
*
* @param msglist
* @param bc
* @throws IOException
*/
public void write(List<OFMessage> msglist) throws IOException;
......@@ -366,7 +364,7 @@ public interface IOFSwitch {
public boolean portEnabled(int portName);
/**
* @param portNumber
* @param portName
* @return Whether a port is enabled per latest port status message
* (not configured down nor link down nor in spanning tree blocking state)
*/
......@@ -508,7 +506,7 @@ public interface IOFSwitch {
/**
* Set debug counter service for per-switch counters.
* Called immediately after instantiation.
* @param debugCounters
* @param debugCounter
* @throws CounterException
*/
public void setDebugCounterService(IDebugCounterService debugCounter)
......@@ -520,7 +518,8 @@ public interface IOFSwitch {
* ready.
* This method must only be called from the I/O thread
* @throws IOException
* @throws SwitchDriverSubHandshakeAlreadyStarted if the sub-handshake has
* @throws org.onlab.onos.of.controller.impl.internal.SwitchDriverSubHandshakeAlreadyStarted
* if the sub-handshake has
* already been started
*/
public void startDriverHandshake() throws IOException;
......@@ -531,7 +530,8 @@ public interface IOFSwitch {
*
* This methods must only be called from the I/O thread
* @return true if the sub-handshake has been completed. False otherwise
* @throws SwitchDriverSubHandshakeNotStarted if startDriverHandshake() has
* @throws org.onlab.onos.of.controller.impl.internal.SwitchDriverSubHandshakeNotStarted
* if startDriverHandshake() has
* not been called yet.
*/
public boolean isDriverHandshakeComplete();
......@@ -541,9 +541,11 @@ public interface IOFSwitch {
* sub-handshake. Must not be called after the handshake has been completed
* This methods must only be called from the I/O thread
* @param m The message that the driver should process
* @throws SwitchDriverSubHandshakeCompleted if isDriverHandshake() returns
* @throws org.onlab.onos.of.controller.impl.internal.SwitchDriverSubHandshakeCompleted
* if isDriverHandshake() returns
* false before this method call
* @throws SwitchDriverSubHandshakeNotStarted if startDriverHandshake() has
* @throws org.onlab.onos.of.controller.impl.internal.SwitchDriverSubHandshakeNotStarted
* if startDriverHandshake() has
* not been called yet.
*/
public void processDriverHandshakeMessage(OFMessage m);
......
package net.onrc.onos.of.ctl;
package org.onlab.onos.of.controller.impl;
import org.projectfloodlight.openflow.protocol.OFVersion;
import net.onrc.onos.of.ctl.registry.IControllerRegistry;
import org.onlab.onos.of.controller.impl.registry.IControllerRegistry;
/**
* Interface to passed to controller class in order to allow
......
package net.onrc.onos.of.ctl;
package org.onlab.onos.of.controller.impl;
import org.projectfloodlight.openflow.protocol.OFControllerRole;
......
......@@ -15,7 +15,7 @@
* under the License.
**/
package net.onrc.onos.of.ctl.annotations;
package org.onlab.onos.of.controller.impl.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
......@@ -30,7 +30,7 @@ public @interface LogMessageCategory {
/**
* The category for the log messages for this class.
*
* @return
* @return category
*/
String value() default "Core";
}
......
......@@ -15,7 +15,7 @@
* under the License.
**/
package net.onrc.onos.of.ctl.annotations;
package org.onlab.onos.of.controller.impl.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
......
......@@ -15,7 +15,7 @@
* under the License.
**/
package net.onrc.onos.of.ctl.annotations;
package org.onlab.onos.of.controller.impl.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
......
package net.onrc.onos.of.ctl.debugcounter;
package org.onlab.onos.of.controller.impl.debugcounter;
import java.util.ArrayList;
import java.util.Arrays;
......
package net.onrc.onos.of.ctl.debugcounter;
package org.onlab.onos.of.controller.impl.debugcounter;
public interface IDebugCounter {
/**
......
package net.onrc.onos.of.ctl.debugcounter;
package org.onlab.onos.of.controller.impl.debugcounter;
import java.util.List;
import net.onrc.onos.of.ctl.debugcounter.DebugCounter.DebugCounterInfo;
import org.onlab.onos.of.controller.impl.debugcounter.DebugCounter.DebugCounterInfo;
//CHECKSTYLE:OFF
public interface IDebugCounterService {
......@@ -228,7 +228,8 @@ public interface IDebugCounterService {
* may not be enabled for counting, but if it is registered the method will
* return true.
*
* @param param
* @param moduleName
* @param counterHierarchy
* @return false if moduleCounterHierarchy is not a registered counter
*/
public boolean containsModuleCounterHierarchy(String moduleName,
......@@ -240,7 +241,7 @@ public interface IDebugCounterService {
* a counter enabled for counting, but if it is registered the method will
* return true.
*
* @param param
* @param moduleName
* @return false if moduleName is not a registered counter
*/
public boolean containsModuleName(String moduleName);
......
package net.onrc.onos.of.ctl.debugcounter;
package org.onlab.onos.of.controller.impl.debugcounter;
import java.util.Collections;
import java.util.List;
import net.onrc.onos.of.ctl.debugcounter.DebugCounter.DebugCounterInfo;
import org.onlab.onos.of.controller.impl.debugcounter.DebugCounter.DebugCounterInfo;
//CHECKSTYLE:OFF
public class NullDebugCounter implements IDebugCounterService {
......
......@@ -15,7 +15,7 @@
* under the License.
**/
package net.onrc.onos.of.ctl.internal;
package org.onlab.onos.of.controller.impl.internal;
import java.lang.management.ManagementFactory;
import java.lang.management.RuntimeMXBean;
......@@ -29,24 +29,24 @@ import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.Executors;
import net.onrc.onos.of.ctl.IOFSwitchManager;
import net.onrc.onos.of.ctl.Role;
import net.onrc.onos.of.ctl.annotations.LogMessageDoc;
import net.onrc.onos.of.ctl.annotations.LogMessageDocs;
import net.onrc.onos.of.ctl.debugcounter.DebugCounter;
import net.onrc.onos.of.ctl.debugcounter.IDebugCounter;
import net.onrc.onos.of.ctl.debugcounter.IDebugCounterService;
import net.onrc.onos.of.ctl.debugcounter.IDebugCounterService.CounterException;
import net.onrc.onos.of.ctl.debugcounter.IDebugCounterService.CounterType;
import net.onrc.onos.of.ctl.internal.OFChannelHandler.RoleRecvStatus;
import net.onrc.onos.of.ctl.registry.IControllerRegistry;
import net.onrc.onos.of.ctl.registry.RegistryException;
import net.onrc.onos.of.ctl.registry.IControllerRegistry.ControlChangeCallback;
import net.onrc.onos.of.ctl.util.Dpid;
import net.onrc.onos.of.ctl.util.DummySwitchForTesting;
import net.onrc.onos.of.ctl.util.InstanceId;
import net.onrc.onos.of.ctl.IOFSwitch;
import net.onrc.onos.of.ctl.IOFSwitch.PortChangeType;
import org.onlab.onos.of.controller.impl.IOFSwitchManager;
import org.onlab.onos.of.controller.impl.Role;
import org.onlab.onos.of.controller.impl.annotations.LogMessageDoc;
import org.onlab.onos.of.controller.impl.annotations.LogMessageDocs;
import org.onlab.onos.of.controller.impl.debugcounter.DebugCounter;
import org.onlab.onos.of.controller.impl.debugcounter.IDebugCounter;
import org.onlab.onos.of.controller.impl.debugcounter.IDebugCounterService;
import org.onlab.onos.of.controller.impl.debugcounter.IDebugCounterService.CounterException;
import org.onlab.onos.of.controller.impl.debugcounter.IDebugCounterService.CounterType;
import org.onlab.onos.of.controller.impl.internal.OFChannelHandler.RoleRecvStatus;
import org.onlab.onos.of.controller.impl.registry.IControllerRegistry;
import org.onlab.onos.of.controller.impl.registry.RegistryException;
import org.onlab.onos.of.controller.impl.registry.IControllerRegistry.ControlChangeCallback;
import org.onlab.onos.of.controller.impl.util.Dpid;
import org.onlab.onos.of.controller.impl.util.DummySwitchForTesting;
import org.onlab.onos.of.controller.impl.util.InstanceId;
import org.onlab.onos.of.controller.impl.IOFSwitch;
import org.onlab.onos.of.controller.impl.IOFSwitch.PortChangeType;
import org.apache.felix.scr.annotations.Activate;
import org.apache.felix.scr.annotations.Component;
......@@ -242,7 +242,9 @@ public class Controller {
/**
* Indicates that ports on the given switch have changed. Enqueue a
* switch update.
* @param sw
* @param dpid
* @param port
* @param changeType
*/
protected void notifyPortChanged(long dpid, OFPortDesc port,
PortChangeType changeType) {
......@@ -479,8 +481,6 @@ public class Controller {
/**
* Tell controller that we're ready to accept switches loop.
*
* @throws IOException
*/
@LogMessageDocs({
@LogMessageDoc(message = "Listening for switch connections on {address}",
......@@ -818,7 +818,7 @@ public class Controller {
/**
* Forward to the driver-manager to get an IOFSwitch instance.
* @param desc
* @return
* @return switch instance
*/
protected IOFSwitch getOFSwitchInstance(OFDescStatsReply desc, OFVersion ofv) {
if (switchManager == null) {
......
......@@ -15,7 +15,7 @@
* under the License.
**/
package net.onrc.onos.of.ctl.internal;
package org.onlab.onos.of.controller.impl.internal;
/**
* Exception is thrown when the handshake fails to complete.
......
......@@ -15,7 +15,7 @@
* under the License.
**/
package net.onrc.onos.of.ctl.internal;
package org.onlab.onos.of.controller.impl.internal;
import java.util.concurrent.TimeUnit;
......
//CHECKSTYLE:OFF
package net.onrc.onos.of.ctl.internal;
package org.onlab.onos.of.controller.impl.internal;
import java.io.IOException;
import java.nio.channels.ClosedChannelException;
......@@ -10,14 +10,14 @@ import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.RejectedExecutionException;
import net.onrc.onos.of.ctl.IOFSwitch;
import net.onrc.onos.of.ctl.IOFSwitch.PortChangeEvent;
import net.onrc.onos.of.ctl.Role;
import net.onrc.onos.of.ctl.annotations.LogMessageDoc;
import net.onrc.onos.of.ctl.annotations.LogMessageDocs;
import net.onrc.onos.of.ctl.debugcounter.IDebugCounterService.CounterException;
import net.onrc.onos.of.ctl.internal.Controller.Counters;
import net.onrc.onos.of.ctl.internal.OFChannelHandler.ChannelState.RoleReplyInfo;
import org.onlab.onos.of.controller.impl.IOFSwitch;
import org.onlab.onos.of.controller.impl.IOFSwitch.PortChangeEvent;
import org.onlab.onos.of.controller.impl.Role;
import org.onlab.onos.of.controller.impl.annotations.LogMessageDoc;
import org.onlab.onos.of.controller.impl.annotations.LogMessageDocs;
import org.onlab.onos.of.controller.impl.debugcounter.IDebugCounterService.CounterException;
import org.onlab.onos.of.controller.impl.internal.Controller.Counters;
import org.onlab.onos.of.controller.impl.internal.OFChannelHandler.ChannelState.RoleReplyInfo;
import org.jboss.netty.channel.Channel;
import org.jboss.netty.channel.ChannelHandlerContext;
......
......@@ -15,7 +15,7 @@
* under the License.
**/
package net.onrc.onos.of.ctl.internal;
package org.onlab.onos.of.controller.impl.internal;
import org.jboss.netty.buffer.ChannelBuffer;
......
......@@ -15,7 +15,7 @@
* under the License.
**/
package net.onrc.onos.of.ctl.internal;
package org.onlab.onos.of.controller.impl.internal;
import java.util.List;
......
......@@ -15,7 +15,7 @@
* under the License.
**/
package net.onrc.onos.of.ctl.internal;
package org.onlab.onos.of.controller.impl.internal;
import java.util.concurrent.ThreadPoolExecutor;
......
package net.onrc.onos.of.ctl.internal;
package org.onlab.onos.of.controller.impl.internal;
/**
* Thrown when IOFSwitch.startDriverHandshake() is called more than once.
......
package net.onrc.onos.of.ctl.internal;
package org.onlab.onos.of.controller.impl.internal;
import org.projectfloodlight.openflow.protocol.OFMessage;
......
package net.onrc.onos.of.ctl.internal;
package org.onlab.onos.of.controller.impl.internal;
/**
* Base class for exception thrown by switch driver sub-handshake processing.
......
package net.onrc.onos.of.ctl.internal;
package org.onlab.onos.of.controller.impl.internal;
/**
* Thrown when a switch driver's sub-handshake has not been started but an
......
package net.onrc.onos.of.ctl.internal;
package org.onlab.onos.of.controller.impl.internal;
/**
* Thrown when a switch driver's sub-handshake state-machine receives an
......
......@@ -15,7 +15,7 @@
* under the License.
**/
package net.onrc.onos.of.ctl.internal;
package org.onlab.onos.of.controller.impl.internal;
/**
* This exception indicates an error or unexpected message during
......
package net.onrc.onos.of.ctl.registry;
package org.onlab.onos.of.controller.impl.registry;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import net.onrc.onos.of.ctl.util.InstanceId;
import org.onlab.onos.of.controller.impl.util.InstanceId;
/**
* A registry service that allows ONOS to register controllers and switches in a
......
package net.onrc.onos.of.ctl.registry;
package org.onlab.onos.of.controller.impl.registry;
public class IdBlock {
private final long start;
......
package net.onrc.onos.of.ctl.registry;
package org.onlab.onos.of.controller.impl.registry;
public class RegistryException extends Exception {
......
package net.onrc.onos.of.ctl.util;
package org.onlab.onos.of.controller.impl.util;
import org.projectfloodlight.openflow.util.HexString;
......
package net.onrc.onos.of.ctl.util;
package org.onlab.onos.of.controller.impl.util;
import java.io.IOException;
import java.util.Collection;
......@@ -25,10 +25,10 @@ import org.projectfloodlight.openflow.types.U64;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import net.onrc.onos.of.ctl.IOFSwitch;
import net.onrc.onos.of.ctl.Role;
import net.onrc.onos.of.ctl.debugcounter.IDebugCounterService;
import net.onrc.onos.of.ctl.debugcounter.IDebugCounterService.CounterException;
import org.onlab.onos.of.controller.impl.IOFSwitch;
import org.onlab.onos.of.controller.impl.Role;
import org.onlab.onos.of.controller.impl.debugcounter.IDebugCounterService;
import org.onlab.onos.of.controller.impl.debugcounter.IDebugCounterService.CounterException;
public class DummySwitchForTesting implements IOFSwitch {
......
package net.onrc.onos.of.ctl.util;
package org.onlab.onos.of.controller.impl.util;
import java.util.EnumSet;
import java.util.Set;
......
......@@ -15,7 +15,7 @@
* under the License.
**/
package net.onrc.onos.of.ctl.util;
package org.onlab.onos.of.controller.impl.util;
import java.util.Iterator;
import java.util.NoSuchElementException;
......
package net.onrc.onos.of.ctl.util;
package org.onlab.onos.of.controller.impl.util;
import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.base.Preconditions.checkArgument;
......
......@@ -15,7 +15,7 @@
* under the License.
**/
package net.onrc.onos.of.ctl.util;
package org.onlab.onos.of.controller.impl.util;
import java.util.Iterator;
import java.util.NoSuchElementException;
......
......@@ -15,7 +15,7 @@
* under the License.
**/
package net.onrc.onos.of.ctl.util;
package org.onlab.onos.of.controller.impl.util;
import java.util.LinkedHashMap;
import java.util.Map;
......
package net.onrc.onos.of.ctl.util;
package org.onlab.onos.of.controller.impl.util;
import java.util.Collection;
import java.util.LinkedHashSet;
......
......@@ -15,7 +15,7 @@
* under the License.
**/
package net.onrc.onos.of.ctl.util;
package org.onlab.onos.of.controller.impl.util;
import java.util.Iterator;
import java.util.NoSuchElementException;
......
package net.onrc.onos.of.ctl.util;
package org.onlab.onos.of.controller.impl.util;
import java.util.Collection;
......
......@@ -15,10 +15,10 @@
* under the License.
**/
package net.onrc.onos.of.ctl.internal;
package org.onlab.onos.of.controller.impl.internal;
import junit.framework.TestCase;
import net.onrc.onos.of.ctl.IOFSwitch;
import org.onlab.onos.of.controller.impl.IOFSwitch;
import org.easymock.EasyMock;
import org.junit.After;
......
package net.onrc.onos.of.ctl.internal;
package org.onlab.onos.of.controller.impl.internal;
import static org.easymock.EasyMock.capture;
import static org.easymock.EasyMock.createMock;
......@@ -18,11 +18,11 @@ import java.util.HashSet;
import java.util.List;
import java.util.Set;
import net.onrc.onos.of.ctl.IOFSwitch;
import net.onrc.onos.of.ctl.Role;
import net.onrc.onos.of.ctl.debugcounter.DebugCounter;
import net.onrc.onos.of.ctl.debugcounter.IDebugCounterService;
import net.onrc.onos.of.ctl.internal.OFChannelHandler.RoleRecvStatus;
import org.onlab.onos.of.controller.impl.IOFSwitch;
import org.onlab.onos.of.controller.impl.Role;
import org.onlab.onos.of.controller.impl.debugcounter.DebugCounter;
import org.onlab.onos.of.controller.impl.debugcounter.IDebugCounterService;
import org.onlab.onos.of.controller.impl.internal.OFChannelHandler.RoleRecvStatus;
import org.easymock.Capture;
import org.easymock.CaptureType;
......
......@@ -248,7 +248,7 @@
<group>
<title>Network Model &amp; Services</title>
<packages>
org.onlab.onos.net:org.onlab.onos.net.*
org.onlab.onos.*
</packages>
</group>
<group>
......