Yuta HIGUCHI

javadoc fixes

Change-Id: I3b4fc2d99f42b2413a535fb411b9c19bdd186ad8
Showing 48 changed files with 93 additions and 33 deletions
...@@ -85,7 +85,7 @@ public class IOLoopTestClient { ...@@ -85,7 +85,7 @@ public class IOLoopTestClient {
85 System.exit(0); 85 System.exit(0);
86 } 86 }
87 87
88 - /** 88 + /*
89 * Starts a standalone IO loop test client. 89 * Starts a standalone IO loop test client.
90 * 90 *
91 * @param args command-line arguments 91 * @param args command-line arguments
......
...@@ -85,7 +85,7 @@ public class IOLoopTestServer { ...@@ -85,7 +85,7 @@ public class IOLoopTestServer {
85 System.exit(0); 85 System.exit(0);
86 } 86 }
87 87
88 - /** 88 + /*
89 * Starts a standalone IO loop test server. 89 * Starts a standalone IO loop test server.
90 * 90 *
91 * @param args command-line arguments 91 * @param args command-line arguments
......
...@@ -92,6 +92,7 @@ public abstract class AbstractShellCommand extends OsgiCommandSupport { ...@@ -92,6 +92,7 @@ public abstract class AbstractShellCommand extends OsgiCommandSupport {
92 /** 92 /**
93 * Produces a JSON object from the specified key/value annotations. 93 * Produces a JSON object from the specified key/value annotations.
94 * 94 *
95 + * @param mapper ObjectMapper to use while converting to JSON
95 * @param annotations key/value annotations 96 * @param annotations key/value annotations
96 * @return JSON object 97 * @return JSON object
97 */ 98 */
......
...@@ -44,6 +44,7 @@ public abstract class ConnectivityIntentCommand extends AbstractShellCommand { ...@@ -44,6 +44,7 @@ public abstract class ConnectivityIntentCommand extends AbstractShellCommand {
44 /** 44 /**
45 * Constructs a traffic selector based on the command line arguments 45 * Constructs a traffic selector based on the command line arguments
46 * presented to the command. 46 * presented to the command.
47 + * @return traffic selector
47 */ 48 */
48 protected TrafficSelector buildTrafficSelector() { 49 protected TrafficSelector buildTrafficSelector() {
49 TrafficSelector.Builder selectorBuilder = DefaultTrafficSelector.builder(); 50 TrafficSelector.Builder selectorBuilder = DefaultTrafficSelector.builder();
......
...@@ -141,7 +141,8 @@ public class FlowsListCommand extends AbstractShellCommand { ...@@ -141,7 +141,8 @@ public class FlowsListCommand extends AbstractShellCommand {
141 /** 141 /**
142 * Returns the list of devices sorted using the device ID URIs. 142 * Returns the list of devices sorted using the device ID URIs.
143 * 143 *
144 - * @param service device service 144 + * @param deviceService device service
145 + * @param service flow rule service
145 * @return sorted device list 146 * @return sorted device list
146 */ 147 */
147 protected Map<Device, List<FlowEntry>> getSortedFlows(DeviceService deviceService, 148 protected Map<Device, List<FlowEntry>> getSortedFlows(DeviceService deviceService,
...@@ -175,7 +176,8 @@ public class FlowsListCommand extends AbstractShellCommand { ...@@ -175,7 +176,8 @@ public class FlowsListCommand extends AbstractShellCommand {
175 * Prints flows. 176 * Prints flows.
176 * 177 *
177 * @param d the device 178 * @param d the device
178 - * @param flows the set of flows for that device. 179 + * @param flows the set of flows for that device
180 + * @param coreService core system service
179 */ 181 */
180 protected void printFlows(Device d, List<FlowEntry> flows, 182 protected void printFlows(Device d, List<FlowEntry> flows,
181 CoreService coreService) { 183 CoreService coreService) {
......
...@@ -54,6 +54,7 @@ public class DefaultControllerNode implements ControllerNode { ...@@ -54,6 +54,7 @@ public class DefaultControllerNode implements ControllerNode {
54 * 54 *
55 * @param id instance identifier 55 * @param id instance identifier
56 * @param ip instance IP address 56 * @param ip instance IP address
57 + * @param tcpPort TCP port
57 */ 58 */
58 public DefaultControllerNode(NodeId id, IpAddress ip, int tcpPort) { 59 public DefaultControllerNode(NodeId id, IpAddress ip, int tcpPort) {
59 this.id = id; 60 this.id = id;
......
...@@ -54,6 +54,7 @@ public class DefaultDevice extends AbstractElement implements Device { ...@@ -54,6 +54,7 @@ public class DefaultDevice extends AbstractElement implements Device {
54 * @param hwVersion device HW version 54 * @param hwVersion device HW version
55 * @param swVersion device SW version 55 * @param swVersion device SW version
56 * @param serialNumber device serial number 56 * @param serialNumber device serial number
57 + * @param chassisId chasis id
57 * @param annotations optional key/value annotations 58 * @param annotations optional key/value annotations
58 */ 59 */
59 public DefaultDevice(ProviderId providerId, DeviceId id, Type type, 60 public DefaultDevice(ProviderId providerId, DeviceId id, Type type,
......
...@@ -48,6 +48,7 @@ public final class DeviceId extends ElementId { ...@@ -48,6 +48,7 @@ public final class DeviceId extends ElementId {
48 * Creates a device id using the supplied URI. 48 * Creates a device id using the supplied URI.
49 * 49 *
50 * @param uri device URI 50 * @param uri device URI
51 + * @return DeviceId
51 */ 52 */
52 public static DeviceId deviceId(URI uri) { 53 public static DeviceId deviceId(URI uri) {
53 return new DeviceId(uri); 54 return new DeviceId(uri);
...@@ -57,6 +58,7 @@ public final class DeviceId extends ElementId { ...@@ -57,6 +58,7 @@ public final class DeviceId extends ElementId {
57 * Creates a device id using the supplied URI string. 58 * Creates a device id using the supplied URI string.
58 * 59 *
59 * @param string device URI string 60 * @param string device URI string
61 + * @return DeviceId
60 */ 62 */
61 public static DeviceId deviceId(String string) { 63 public static DeviceId deviceId(String string) {
62 return deviceId(URI.create(string)); 64 return deviceId(URI.create(string));
......
...@@ -47,6 +47,7 @@ public class DefaultDeviceDescription extends AbstractDescription ...@@ -47,6 +47,7 @@ public class DefaultDeviceDescription extends AbstractDescription
47 * @param hwVersion device HW version 47 * @param hwVersion device HW version
48 * @param swVersion device SW version 48 * @param swVersion device SW version
49 * @param serialNumber device serial number 49 * @param serialNumber device serial number
50 + * @param chassis chasis id
50 * @param annotations optional key/value annotations map 51 * @param annotations optional key/value annotations map
51 */ 52 */
52 public DefaultDeviceDescription(URI uri, Type type, String manufacturer, 53 public DefaultDeviceDescription(URI uri, Type type, String manufacturer,
......
...@@ -32,6 +32,7 @@ public interface DeviceProviderService extends ProviderService<DeviceProvider> { ...@@ -32,6 +32,7 @@ public interface DeviceProviderService extends ProviderService<DeviceProvider> {
32 /** 32 /**
33 * Signals the core that a device has connected or has been detected somehow. 33 * Signals the core that a device has connected or has been detected somehow.
34 * 34 *
35 + * @param deviceId device identifier
35 * @param deviceDescription information about network device 36 * @param deviceDescription information about network device
36 */ 37 */
37 void deviceConnected(DeviceId deviceId, DeviceDescription deviceDescription); 38 void deviceConnected(DeviceId deviceId, DeviceDescription deviceDescription);
...@@ -65,7 +66,7 @@ public interface DeviceProviderService extends ProviderService<DeviceProvider> { ...@@ -65,7 +66,7 @@ public interface DeviceProviderService extends ProviderService<DeviceProvider> {
65 * 66 *
66 * @param deviceId identity of the device 67 * @param deviceId identity of the device
67 * @param requested mastership role that was requested by the node 68 * @param requested mastership role that was requested by the node
68 - * @param replied mastership role the switch accepted 69 + * @param response mastership role the switch accepted
69 */ 70 */
70 void receivedRoleReply(DeviceId deviceId, MastershipRole requested, MastershipRole response); 71 void receivedRoleReply(DeviceId deviceId, MastershipRole requested, MastershipRole response);
71 72
......
...@@ -125,6 +125,7 @@ public interface DeviceStore extends Store<DeviceEvent, DeviceStoreDelegate> { ...@@ -125,6 +125,7 @@ public interface DeviceStore extends Store<DeviceEvent, DeviceStoreDelegate> {
125 * Administratively removes the specified device from the store. 125 * Administratively removes the specified device from the store.
126 * 126 *
127 * @param deviceId device to be removed 127 * @param deviceId device to be removed
128 + * @return null if no such device, or was forwarded to remove master
128 */ 129 */
129 DeviceEvent removeDevice(DeviceId deviceId); 130 DeviceEvent removeDevice(DeviceId deviceId);
130 } 131 }
......
...@@ -99,6 +99,7 @@ public final class DefaultTrafficSelector implements TrafficSelector { ...@@ -99,6 +99,7 @@ public final class DefaultTrafficSelector implements TrafficSelector {
99 * Returns a new traffic selector builder primed to produce entities 99 * Returns a new traffic selector builder primed to produce entities
100 * patterned after the supplied selector. 100 * patterned after the supplied selector.
101 * 101 *
102 + * @param selector base selector
102 * @return traffic selector builder 103 * @return traffic selector builder
103 */ 104 */
104 public static TrafficSelector.Builder builder(TrafficSelector selector) { 105 public static TrafficSelector.Builder builder(TrafficSelector selector) {
......
...@@ -63,6 +63,7 @@ public final class DefaultTrafficTreatment implements TrafficTreatment { ...@@ -63,6 +63,7 @@ public final class DefaultTrafficTreatment implements TrafficTreatment {
63 * Returns a new traffic treatment builder primed to produce entities 63 * Returns a new traffic treatment builder primed to produce entities
64 * patterned after the supplied treatment. 64 * patterned after the supplied treatment.
65 * 65 *
66 + * @param treatment base treatment
66 * @return traffic treatment builder 67 * @return traffic treatment builder
67 */ 68 */
68 public static TrafficTreatment.Builder builder(TrafficTreatment treatment) { 69 public static TrafficTreatment.Builder builder(TrafficTreatment treatment) {
......
...@@ -48,6 +48,7 @@ public interface FlowRuleProvider extends Provider { ...@@ -48,6 +48,7 @@ public interface FlowRuleProvider extends Provider {
48 /** 48 /**
49 * Removes rules by their id. 49 * Removes rules by their id.
50 * @param id the id to remove 50 * @param id the id to remove
51 + * @param flowRules one or more flow rules
51 */ 52 */
52 void removeRulesById(ApplicationId id, FlowRule... flowRules); 53 void removeRulesById(ApplicationId id, FlowRule... flowRules);
53 54
......
...@@ -35,6 +35,7 @@ public interface FlowRuleProviderService extends ProviderService<FlowRuleProvide ...@@ -35,6 +35,7 @@ public interface FlowRuleProviderService extends ProviderService<FlowRuleProvide
35 * Pushes the collection of flow entries currently applied on the given 35 * Pushes the collection of flow entries currently applied on the given
36 * device. 36 * device.
37 * 37 *
38 + * @param deviceId device identifier
38 * @param flowEntries collection of flow rules 39 * @param flowEntries collection of flow rules
39 */ 40 */
40 void pushFlowMetrics(DeviceId deviceId, Iterable<FlowEntry> flowEntries); 41 void pushFlowMetrics(DeviceId deviceId, Iterable<FlowEntry> flowEntries);
......
...@@ -86,6 +86,7 @@ public interface FlowRuleService { ...@@ -86,6 +86,7 @@ public interface FlowRuleService {
86 /** 86 /**
87 * Applies a batch operation of FlowRules. 87 * Applies a batch operation of FlowRules.
88 * 88 *
89 + * @param batch batch operation to apply
89 * @return future indicating the state of the batch operation 90 * @return future indicating the state of the batch operation
90 */ 91 */
91 Future<CompletedBatchOperation> applyBatch(FlowRuleBatchOperation batch); 92 Future<CompletedBatchOperation> applyBatch(FlowRuleBatchOperation batch);
......
...@@ -137,14 +137,14 @@ public interface TrafficSelector { ...@@ -137,14 +137,14 @@ public interface TrafficSelector {
137 137
138 /** 138 /**
139 * Matches an optical signal ID or lambda. 139 * Matches an optical signal ID or lambda.
140 - * @param lambda 140 + * @param lambda lamda
141 * @return a selection builder 141 * @return a selection builder
142 */ 142 */
143 public Builder matchLambda(Short lambda); 143 public Builder matchLambda(Short lambda);
144 144
145 /** 145 /**
146 * Matches an optical Signal Type. 146 * Matches an optical Signal Type.
147 - * @param signalType 147 + * @param signalType signalType
148 * @return a selection builder 148 * @return a selection builder
149 */ 149 */
150 public Builder matchOpticalSignalType(Short signalType); 150 public Builder matchOpticalSignalType(Short signalType);
......
...@@ -131,7 +131,7 @@ public final class Criteria { ...@@ -131,7 +131,7 @@ public final class Criteria {
131 /** 131 /**
132 * Creates a match on TCP source port field using the specified value. 132 * Creates a match on TCP source port field using the specified value.
133 * 133 *
134 - * @param tcpPort 134 + * @param tcpPort TCP source port
135 * @return match criterion 135 * @return match criterion
136 */ 136 */
137 public static Criterion matchTcpSrc(Short tcpPort) { 137 public static Criterion matchTcpSrc(Short tcpPort) {
...@@ -141,7 +141,7 @@ public final class Criteria { ...@@ -141,7 +141,7 @@ public final class Criteria {
141 /** 141 /**
142 * Creates a match on TCP destination port field using the specified value. 142 * Creates a match on TCP destination port field using the specified value.
143 * 143 *
144 - * @param tcpPort 144 + * @param tcpPort TCP destination port
145 * @return match criterion 145 * @return match criterion
146 */ 146 */
147 public static Criterion matchTcpDst(Short tcpPort) { 147 public static Criterion matchTcpDst(Short tcpPort) {
...@@ -151,7 +151,7 @@ public final class Criteria { ...@@ -151,7 +151,7 @@ public final class Criteria {
151 /** 151 /**
152 * Creates a match on lambda field using the specified value. 152 * Creates a match on lambda field using the specified value.
153 * 153 *
154 - * @param lambda 154 + * @param lambda lamda to match on
155 * @return match criterion 155 * @return match criterion
156 */ 156 */
157 public static Criterion matchLambda(Short lambda) { 157 public static Criterion matchLambda(Short lambda) {
...@@ -161,7 +161,7 @@ public final class Criteria { ...@@ -161,7 +161,7 @@ public final class Criteria {
161 /** 161 /**
162 * Creates a match on lambda field using the specified value. 162 * Creates a match on lambda field using the specified value.
163 * 163 *
164 - * @param sigType 164 + * @param sigType signame type
165 * @return match criterion 165 * @return match criterion
166 */ 166 */
167 public static Criterion matchOpticalSignalType(Short sigType) { 167 public static Criterion matchOpticalSignalType(Short sigType) {
......
...@@ -91,6 +91,7 @@ public abstract class Intent implements BatchOperationTarget { ...@@ -91,6 +91,7 @@ public abstract class Intent implements BatchOperationTarget {
91 * Produces an intent identifier backed by hash-like fingerprint for the 91 * Produces an intent identifier backed by hash-like fingerprint for the
92 * specified class of intent and its constituent fields. 92 * specified class of intent and its constituent fields.
93 * 93 *
94 + * @param intentClass Class of the intent
94 * @param fields intent fields 95 * @param fields intent fields
95 * @return intent identifier 96 * @return intent identifier
96 */ 97 */
......
...@@ -27,6 +27,7 @@ public interface IntentInstaller<T extends Intent> { ...@@ -27,6 +27,7 @@ public interface IntentInstaller<T extends Intent> {
27 * Installs the specified intent to the environment. 27 * Installs the specified intent to the environment.
28 * 28 *
29 * @param intent intent to be installed 29 * @param intent intent to be installed
30 + * @return FlowRule operations to install
30 * @throws IntentException if issues are encountered while installing the intent 31 * @throws IntentException if issues are encountered while installing the intent
31 */ 32 */
32 List<FlowRuleBatchOperation> install(T intent); 33 List<FlowRuleBatchOperation> install(T intent);
...@@ -35,6 +36,7 @@ public interface IntentInstaller<T extends Intent> { ...@@ -35,6 +36,7 @@ public interface IntentInstaller<T extends Intent> {
35 * Uninstalls the specified intent from the environment. 36 * Uninstalls the specified intent from the environment.
36 * 37 *
37 * @param intent intent to be uninstalled 38 * @param intent intent to be uninstalled
39 + * @return FlowRule operations to uninstall
38 * @throws IntentException if issues are encountered while uninstalling the intent 40 * @throws IntentException if issues are encountered while uninstalling the intent
39 */ 41 */
40 List<FlowRuleBatchOperation> uninstall(T intent); 42 List<FlowRuleBatchOperation> uninstall(T intent);
......
...@@ -59,6 +59,7 @@ public interface IntentService { ...@@ -59,6 +59,7 @@ public interface IntentService {
59 * affected at later time. 59 * affected at later time.
60 * </p> 60 * </p>
61 * @param operations batch of intent operations 61 * @param operations batch of intent operations
62 + * @return Future to get execution result
62 */ 63 */
63 Future<IntentOperations> execute(IntentOperations operations); 64 Future<IntentOperations> execute(IntentOperations operations);
64 65
......
...@@ -42,6 +42,7 @@ public class PathIntent extends ConnectivityIntent { ...@@ -42,6 +42,7 @@ public class PathIntent extends ConnectivityIntent {
42 * @param selector traffic selector 42 * @param selector traffic selector
43 * @param treatment treatment 43 * @param treatment treatment
44 * @param path traversed links 44 * @param path traversed links
45 + * @param resourceRequests link resource request
45 * @throws NullPointerException {@code path} is null 46 * @throws NullPointerException {@code path} is null
46 */ 47 */
47 public PathIntent(ApplicationId appId, TrafficSelector selector, 48 public PathIntent(ApplicationId appId, TrafficSelector selector,
......
...@@ -46,6 +46,7 @@ public class PointToPointIntentWithBandwidthConstraint extends ConnectivityInten ...@@ -46,6 +46,7 @@ public class PointToPointIntentWithBandwidthConstraint extends ConnectivityInten
46 * @param treatment treatment 46 * @param treatment treatment
47 * @param ingressPoint ingress port 47 * @param ingressPoint ingress port
48 * @param egressPoint egress port 48 * @param egressPoint egress port
49 + * @param bandwidthResourceRequest bandwidth resource request
49 * @throws NullPointerException if {@code ingressPoint} or {@code egressPoints} is null. 50 * @throws NullPointerException if {@code ingressPoint} or {@code egressPoints} is null.
50 */ 51 */
51 public PointToPointIntentWithBandwidthConstraint(ApplicationId appId, TrafficSelector selector, 52 public PointToPointIntentWithBandwidthConstraint(ApplicationId appId, TrafficSelector selector,
......
...@@ -34,7 +34,7 @@ public interface StatisticStore { ...@@ -34,7 +34,7 @@ public interface StatisticStore {
34 34
35 /** 35 /**
36 * Remove entries associated with this rule. 36 * Remove entries associated with this rule.
37 - a @param rule {@link org.onlab.onos.net.flow.FlowRule} 37 + * @param rule {@link org.onlab.onos.net.flow.FlowRule}
38 */ 38 */
39 void removeFromStatistics(FlowRule rule); 39 void removeFromStatistics(FlowRule rule);
40 40
......
...@@ -43,6 +43,7 @@ public interface PathService { ...@@ -43,6 +43,7 @@ public interface PathService {
43 * 43 *
44 * @param src source element 44 * @param src source element
45 * @param dst destination element 45 * @param dst destination element
46 + * @param weight edge-weight entity
46 * @return set of all shortest paths between the two element 47 * @return set of all shortest paths between the two element
47 */ 48 */
48 Set<Path> getPaths(ElementId src, ElementId dst, LinkWeight weight); 49 Set<Path> getPaths(ElementId src, ElementId dst, LinkWeight weight);
......
...@@ -103,6 +103,7 @@ public interface TopologyService { ...@@ -103,6 +103,7 @@ public interface TopologyService {
103 * @param topology topology descriptor 103 * @param topology topology descriptor
104 * @param src source device 104 * @param src source device
105 * @param dst destination device 105 * @param dst destination device
106 + * @param weight edge-weight entity
106 * @return set of all shortest paths between the two devices 107 * @return set of all shortest paths between the two devices
107 */ 108 */
108 Set<Path> getPaths(Topology topology, DeviceId src, DeviceId dst, 109 Set<Path> getPaths(Topology topology, DeviceId src, DeviceId dst,
......
...@@ -33,6 +33,7 @@ public interface ClusterCommunicationService { ...@@ -33,6 +33,7 @@ public interface ClusterCommunicationService {
33 * 33 *
34 * @param message message to send 34 * @param message message to send
35 * @return true if the message was sent successfully to all nodes; false otherwise. 35 * @return true if the message was sent successfully to all nodes; false otherwise.
36 + * @throws IOException when I/O exception of some sort has occurred
36 */ 37 */
37 boolean broadcast(ClusterMessage message) throws IOException; 38 boolean broadcast(ClusterMessage message) throws IOException;
38 39
...@@ -42,6 +43,7 @@ public interface ClusterCommunicationService { ...@@ -42,6 +43,7 @@ public interface ClusterCommunicationService {
42 * @param message message to send 43 * @param message message to send
43 * @param toNodeId node identifier 44 * @param toNodeId node identifier
44 * @return true if the message was sent successfully; false otherwise. 45 * @return true if the message was sent successfully; false otherwise.
46 + * @throws IOException when I/O exception of some sort has occurred
45 */ 47 */
46 boolean unicast(ClusterMessage message, NodeId toNodeId) throws IOException; 48 boolean unicast(ClusterMessage message, NodeId toNodeId) throws IOException;
47 49
...@@ -49,7 +51,9 @@ public interface ClusterCommunicationService { ...@@ -49,7 +51,9 @@ public interface ClusterCommunicationService {
49 * Multicast a message to a set of controller nodes. 51 * Multicast a message to a set of controller nodes.
50 * 52 *
51 * @param message message to send 53 * @param message message to send
54 + * @param nodeIds recipient node identifiers
52 * @return true if the message was sent successfully to all nodes in the group; false otherwise. 55 * @return true if the message was sent successfully to all nodes in the group; false otherwise.
56 + * @throws IOException when I/O exception of some sort has occurred
53 */ 57 */
54 boolean multicast(ClusterMessage message, Set<NodeId> nodeIds) throws IOException; 58 boolean multicast(ClusterMessage message, Set<NodeId> nodeIds) throws IOException;
55 59
...@@ -58,7 +62,7 @@ public interface ClusterCommunicationService { ...@@ -58,7 +62,7 @@ public interface ClusterCommunicationService {
58 * @param message message to send 62 * @param message message to send
59 * @param toNodeId recipient node identifier 63 * @param toNodeId recipient node identifier
60 * @return reply future. 64 * @return reply future.
61 - * @throws IOException 65 + * @throws IOException when I/O exception of some sort has occurred
62 */ 66 */
63 ListenableFuture<byte[]> sendAndReceive(ClusterMessage message, NodeId toNodeId) throws IOException; 67 ListenableFuture<byte[]> sendAndReceive(ClusterMessage message, NodeId toNodeId) throws IOException;
64 68
......
...@@ -32,7 +32,9 @@ public class ClusterMessage { ...@@ -32,7 +32,9 @@ public class ClusterMessage {
32 /** 32 /**
33 * Creates a cluster message. 33 * Creates a cluster message.
34 * 34 *
35 + * @param sender message sender
35 * @param subject message subject 36 * @param subject message subject
37 + * @param payload message payload
36 */ 38 */
37 public ClusterMessage(NodeId sender, MessageSubject subject, byte[] payload) { 39 public ClusterMessage(NodeId sender, MessageSubject subject, byte[] payload) {
38 this.sender = sender; 40 this.sender = sender;
...@@ -71,7 +73,7 @@ public class ClusterMessage { ...@@ -71,7 +73,7 @@ public class ClusterMessage {
71 * Sends a response to the sender. 73 * Sends a response to the sender.
72 * 74 *
73 * @param data payload response. 75 * @param data payload response.
74 - * @throws IOException 76 + * @throws IOException when I/O exception of some sort has occurred
75 */ 77 */
76 public void respond(byte[] data) throws IOException { 78 public void respond(byte[] data) throws IOException {
77 throw new IllegalStateException("One can only repond to message recived from others."); 79 throw new IllegalStateException("One can only repond to message recived from others.");
......
...@@ -48,7 +48,7 @@ public class ClusterDefinitionStore { ...@@ -48,7 +48,7 @@ public class ClusterDefinitionStore {
48 file = new File(filePath); 48 file = new File(filePath);
49 } 49 }
50 50
51 - /** 51 + /*
52 * Returns set of the controller nodes, including self. 52 * Returns set of the controller nodes, including self.
53 * 53 *
54 * @return set of controller nodes 54 * @return set of controller nodes
...@@ -67,7 +67,7 @@ public class ClusterDefinitionStore { ...@@ -67,7 +67,7 @@ public class ClusterDefinitionStore {
67 return nodes; 67 return nodes;
68 } 68 }
69 69
70 - /** 70 + /*
71 * Writes the given set of the controller nodes. 71 * Writes the given set of the controller nodes.
72 * 72 *
73 * @param nodes set of controller nodes 73 * @param nodes set of controller nodes
......
...@@ -44,6 +44,7 @@ public interface StoreSerializer { ...@@ -44,6 +44,7 @@ public interface StoreSerializer {
44 * 44 *
45 * @param bytes bytes to be deserialized 45 * @param bytes bytes to be deserialized
46 * @return deserialized object 46 * @return deserialized object
47 + * @param <T> decoded type
47 */ 48 */
48 public <T> T decode(final byte[] bytes); 49 public <T> T decode(final byte[] bytes);
49 50
...@@ -52,6 +53,7 @@ public interface StoreSerializer { ...@@ -52,6 +53,7 @@ public interface StoreSerializer {
52 * 53 *
53 * @param buffer bytes to be deserialized 54 * @param buffer bytes to be deserialized
54 * @return deserialized object 55 * @return deserialized object
56 + * @param <T> decoded type
55 */ 57 */
56 public <T> T decode(final ByteBuffer buffer); 58 public <T> T decode(final ByteBuffer buffer);
57 } 59 }
......
...@@ -26,6 +26,7 @@ public interface OpenFlowEventListener { ...@@ -26,6 +26,7 @@ public interface OpenFlowEventListener {
26 /** 26 /**
27 * Handles the message event. 27 * Handles the message event.
28 * 28 *
29 + * @param dpid switch data path identifier
29 * @param msg the message 30 * @param msg the message
30 */ 31 */
31 public void handleMessage(Dpid dpid, OFMessage msg); 32 public void handleMessage(Dpid dpid, OFMessage msg);
......
...@@ -31,6 +31,7 @@ public interface OpenFlowPacketContext { ...@@ -31,6 +31,7 @@ public interface OpenFlowPacketContext {
31 /** 31 /**
32 * Blocks further responses (ie. send() calls) on this 32 * Blocks further responses (ie. send() calls) on this
33 * packet in event. 33 * packet in event.
34 + * @return true if blocks
34 */ 35 */
35 public boolean block(); 36 public boolean block();
36 37
......
...@@ -133,7 +133,7 @@ public interface OpenFlowSwitch { ...@@ -133,7 +133,7 @@ public interface OpenFlowSwitch {
133 * @param requested the role requested by the controller 133 * @param requested the role requested by the controller
134 * @param response the role set at the device 134 * @param response the role set at the device
135 */ 135 */
136 - public void returnRoleReply(RoleState requested, RoleState reponse); 136 + public void returnRoleReply(RoleState requested, RoleState response);
137 137
138 /** 138 /**
139 * Indicates if this switch is optical. 139 * Indicates if this switch is optical.
......
...@@ -51,7 +51,8 @@ public interface OpenFlowSwitchListener { ...@@ -51,7 +51,8 @@ public interface OpenFlowSwitchListener {
51 * Notify that a role imposed on a switch failed to take hold. 51 * Notify that a role imposed on a switch failed to take hold.
52 * 52 *
53 * @param dpid the switch that failed role assertion 53 * @param dpid the switch that failed role assertion
54 - * @param role the role imposed by the controller 54 + * @param requested the role controller requested
55 + * @param response role reply from the switch
55 */ 56 */
56 public void receivedRoleReply(Dpid dpid, RoleState requested, RoleState response); 57 public void receivedRoleReply(Dpid dpid, RoleState requested, RoleState response);
57 } 58 }
......
...@@ -95,7 +95,8 @@ public interface OpenFlowAgent { ...@@ -95,7 +95,8 @@ public interface OpenFlowAgent {
95 * Notifies the controller that role assertion has failed. 95 * Notifies the controller that role assertion has failed.
96 * 96 *
97 * @param dpid the switch that failed role assertion 97 * @param dpid the switch that failed role assertion
98 - * @param role the failed role 98 + * @param requested the role controller requested
99 + * @param response role reply from the switch
99 */ 100 */
100 public void returnRoleReply(Dpid dpid, RoleState requested, RoleState response); 101 public void returnRoleReply(Dpid dpid, RoleState requested, RoleState response);
101 } 102 }
......
...@@ -58,8 +58,9 @@ public interface RoleHandler { ...@@ -58,8 +58,9 @@ public interface RoleHandler {
58 * OF1.3 switches, because Role.EQUAL is well defined and we can simulate 58 * OF1.3 switches, because Role.EQUAL is well defined and we can simulate
59 * SLAVE behavior by using ASYNC messages. 59 * SLAVE behavior by using ASYNC messages.
60 * 60 *
61 - * @param role 61 + * @param role role to request
62 - * @throws IOException 62 + * @param exp expectation
63 + * @throws IOException when I/O exception of some sort has occurred
63 * @return false if and only if the switch does not support role-request 64 * @return false if and only if the switch does not support role-request
64 * messages, according to the switch driver; true otherwise. 65 * messages, according to the switch driver; true otherwise.
65 */ 66 */
...@@ -70,7 +71,7 @@ public interface RoleHandler { ...@@ -70,7 +71,7 @@ public interface RoleHandler {
70 * Extract the role information from an OF1.3 Role Reply Message. 71 * Extract the role information from an OF1.3 Role Reply Message.
71 * @param rrmsg role reply message 72 * @param rrmsg role reply message
72 * @return RoleReplyInfo object 73 * @return RoleReplyInfo object
73 - * @throws SwitchStateException 74 + * @throws SwitchStateException If unknown role encountered
74 */ 75 */
75 public RoleReplyInfo extractOFRoleReply(OFRoleReply rrmsg) 76 public RoleReplyInfo extractOFRoleReply(OFRoleReply rrmsg)
76 throws SwitchStateException; 77 throws SwitchStateException;
...@@ -89,6 +90,7 @@ public interface RoleHandler { ...@@ -89,6 +90,7 @@ public interface RoleHandler {
89 * 90 *
90 * @param rri information about role-reply in format that 91 * @param rri information about role-reply in format that
91 * controller can understand. 92 * controller can understand.
93 + * @return result comparing expected and received reply
92 * @throws SwitchStateException if no request is pending 94 * @throws SwitchStateException if no request is pending
93 */ 95 */
94 public RoleRecvStatus deliverRoleReply(RoleReplyInfo rri) 96 public RoleRecvStatus deliverRoleReply(RoleReplyInfo rri)
...@@ -102,6 +104,9 @@ public interface RoleHandler { ...@@ -102,6 +104,9 @@ public interface RoleHandler {
102 * Note: since we only keep the last pending request we might get 104 * Note: since we only keep the last pending request we might get
103 * error messages for earlier role requests that we won't be able 105 * error messages for earlier role requests that we won't be able
104 * to handle 106 * to handle
107 + * @param error error message
108 + * @return result comparing expected and received reply
109 + * @throws SwitchStateException if switch did not support requested role
105 */ 110 */
106 public RoleRecvStatus deliverError(OFErrorMsg error) 111 public RoleRecvStatus deliverError(OFErrorMsg error)
107 throws SwitchStateException; 112 throws SwitchStateException;
......
...@@ -160,6 +160,7 @@ public class Controller { ...@@ -160,6 +160,7 @@ public class Controller {
160 160
161 /** 161 /**
162 * Initialize internal data structures. 162 * Initialize internal data structures.
163 + * @param configParams configuration parameters
163 */ 164 */
164 public void init(Map<String, String> configParams) { 165 public void init(Map<String, String> configParams) {
165 // These data structures are initialized here because other 166 // These data structures are initialized here because other
...@@ -192,7 +193,9 @@ public class Controller { ...@@ -192,7 +193,9 @@ public class Controller {
192 193
193 /** 194 /**
194 * Forward to the driver-manager to get an IOFSwitch instance. 195 * Forward to the driver-manager to get an IOFSwitch instance.
195 - * @param desc 196 + * @param dpid data path id
197 + * @param desc switch description
198 + * @param ofv OpenFlow version
196 * @return switch instance 199 * @return switch instance
197 */ 200 */
198 protected OpenFlowSwitchDriver getOFSwitchInstance(long dpid, 201 protected OpenFlowSwitchDriver getOFSwitchInstance(long dpid,
......
...@@ -90,7 +90,9 @@ public class LinkDiscovery implements TimerTask { ...@@ -90,7 +90,9 @@ public class LinkDiscovery implements TimerTask {
90 * Starts the the timer for the discovery process. 90 * Starts the the timer for the discovery process.
91 * 91 *
92 * @param device the physical switch 92 * @param device the physical switch
93 + * @param pktService packet service
93 * @param masterService mastership service 94 * @param masterService mastership service
95 + * @param providerService link provider service
94 * @param useBDDP flag to also use BDDP for discovery 96 * @param useBDDP flag to also use BDDP for discovery
95 */ 97 */
96 public LinkDiscovery(Device device, PacketService pktService, 98 public LinkDiscovery(Device device, PacketService pktService,
...@@ -201,6 +203,8 @@ public class LinkDiscovery implements TimerTask { ...@@ -201,6 +203,8 @@ public class LinkDiscovery implements TimerTask {
201 /** 203 /**
202 * Handles an incoming LLDP packet. Creates link in topology and sends ACK 204 * Handles an incoming LLDP packet. Creates link in topology and sends ACK
203 * to port where LLDP originated. 205 * to port where LLDP originated.
206 + * @param context packet context
207 + * @return true if handled
204 */ 208 */
205 public boolean handleLLDP(PacketContext context) { 209 public boolean handleLLDP(PacketContext context) {
206 Ethernet eth = context.inPacket().parsed(); 210 Ethernet eth = context.inPacket().parsed();
......
...@@ -87,7 +87,7 @@ public class LinkDiscovery implements TimerTask { ...@@ -87,7 +87,7 @@ public class LinkDiscovery implements TimerTask {
87 protected final Map<Integer, OFPortDesc> ports; 87 protected final Map<Integer, OFPortDesc> ports;
88 private Timeout timeout; 88 private Timeout timeout;
89 89
90 - /** 90 + /*
91 * Instantiates discovery manager for the given physical switch. Creates a 91 * Instantiates discovery manager for the given physical switch. Creates a
92 * generic LLDP packet that will be customized for the port it is sent out on. 92 * generic LLDP packet that will be customized for the port it is sent out on.
93 * Starts the the timer for the discovery process. 93 * Starts the the timer for the discovery process.
...@@ -281,7 +281,7 @@ public class LinkDiscovery implements TimerTask { ...@@ -281,7 +281,7 @@ public class LinkDiscovery implements TimerTask {
281 return "LinkDiscovery " + this.sw.getStringId(); 281 return "LinkDiscovery " + this.sw.getStringId();
282 } 282 }
283 283
284 - /** 284 + /*
285 * Handles an incoming LLDP packet. Creates link in topology and sends ACK 285 * Handles an incoming LLDP packet. Creates link in topology and sends ACK
286 * to port where LLDP originated. 286 * to port where LLDP originated.
287 */ 287 */
......
...@@ -38,8 +38,8 @@ implements MutableGraph<V, E> { ...@@ -38,8 +38,8 @@ implements MutableGraph<V, E> {
38 /** 38 /**
39 * Creates a graph comprising of the specified vertexes and edges. 39 * Creates a graph comprising of the specified vertexes and edges.
40 * 40 *
41 - * @param vertexes set of graph vertexes 41 + * @param vertex set of graph vertexes
42 - * @param edges set of graph edges 42 + * @param edge set of graph edges
43 */ 43 */
44 public MutableAdjacencyListsGraph(Set<V> vertex, Set<E> edge) { 44 public MutableAdjacencyListsGraph(Set<V> vertex, Set<E> edge) {
45 vertexes.addAll(vertex); 45 vertexes.addAll(vertex);
......
...@@ -55,6 +55,7 @@ public class ARP extends BasePacket { ...@@ -55,6 +55,7 @@ public class ARP extends BasePacket {
55 /** 55 /**
56 * @param hwType 56 * @param hwType
57 * the hardwareType to set 57 * the hardwareType to set
58 + * @return this
58 */ 59 */
59 public ARP setHardwareType(final short hwType) { 60 public ARP setHardwareType(final short hwType) {
60 this.hardwareType = hwType; 61 this.hardwareType = hwType;
...@@ -71,6 +72,7 @@ public class ARP extends BasePacket { ...@@ -71,6 +72,7 @@ public class ARP extends BasePacket {
71 /** 72 /**
72 * @param protoType 73 * @param protoType
73 * the protocolType to set 74 * the protocolType to set
75 + * @return this
74 */ 76 */
75 public ARP setProtocolType(final short protoType) { 77 public ARP setProtocolType(final short protoType) {
76 this.protocolType = protoType; 78 this.protocolType = protoType;
...@@ -87,6 +89,7 @@ public class ARP extends BasePacket { ...@@ -87,6 +89,7 @@ public class ARP extends BasePacket {
87 /** 89 /**
88 * @param hwAddressLength 90 * @param hwAddressLength
89 * the hardwareAddressLength to set 91 * the hardwareAddressLength to set
92 + * @return this
90 */ 93 */
91 public ARP setHardwareAddressLength(final byte hwAddressLength) { 94 public ARP setHardwareAddressLength(final byte hwAddressLength) {
92 this.hardwareAddressLength = hwAddressLength; 95 this.hardwareAddressLength = hwAddressLength;
...@@ -103,6 +106,7 @@ public class ARP extends BasePacket { ...@@ -103,6 +106,7 @@ public class ARP extends BasePacket {
103 /** 106 /**
104 * @param protoAddressLength 107 * @param protoAddressLength
105 * the protocolAddressLength to set 108 * the protocolAddressLength to set
109 + * @return this
106 */ 110 */
107 public ARP setProtocolAddressLength(final byte protoAddressLength) { 111 public ARP setProtocolAddressLength(final byte protoAddressLength) {
108 this.protocolAddressLength = protoAddressLength; 112 this.protocolAddressLength = protoAddressLength;
...@@ -119,6 +123,7 @@ public class ARP extends BasePacket { ...@@ -119,6 +123,7 @@ public class ARP extends BasePacket {
119 /** 123 /**
120 * @param op 124 * @param op
121 * the opCode to set 125 * the opCode to set
126 + * @return this
122 */ 127 */
123 public ARP setOpCode(final short op) { 128 public ARP setOpCode(final short op) {
124 this.opCode = op; 129 this.opCode = op;
...@@ -135,6 +140,7 @@ public class ARP extends BasePacket { ...@@ -135,6 +140,7 @@ public class ARP extends BasePacket {
135 /** 140 /**
136 * @param senderHWAddress 141 * @param senderHWAddress
137 * the senderHardwareAddress to set 142 * the senderHardwareAddress to set
143 + * @return this
138 */ 144 */
139 public ARP setSenderHardwareAddress(final byte[] senderHWAddress) { 145 public ARP setSenderHardwareAddress(final byte[] senderHWAddress) {
140 this.senderHardwareAddress = senderHWAddress; 146 this.senderHardwareAddress = senderHWAddress;
...@@ -151,6 +157,7 @@ public class ARP extends BasePacket { ...@@ -151,6 +157,7 @@ public class ARP extends BasePacket {
151 /** 157 /**
152 * @param senderProtoAddress 158 * @param senderProtoAddress
153 * the senderProtocolAddress to set 159 * the senderProtocolAddress to set
160 + * @return this
154 */ 161 */
155 public ARP setSenderProtocolAddress(final byte[] senderProtoAddress) { 162 public ARP setSenderProtocolAddress(final byte[] senderProtoAddress) {
156 this.senderProtocolAddress = senderProtoAddress; 163 this.senderProtocolAddress = senderProtoAddress;
...@@ -173,6 +180,7 @@ public class ARP extends BasePacket { ...@@ -173,6 +180,7 @@ public class ARP extends BasePacket {
173 /** 180 /**
174 * @param targetHWAddress 181 * @param targetHWAddress
175 * the targetHardwareAddress to set 182 * the targetHardwareAddress to set
183 + * @return this
176 */ 184 */
177 public ARP setTargetHardwareAddress(final byte[] targetHWAddress) { 185 public ARP setTargetHardwareAddress(final byte[] targetHWAddress) {
178 this.targetHardwareAddress = targetHWAddress; 186 this.targetHardwareAddress = targetHWAddress;
...@@ -206,6 +214,7 @@ public class ARP extends BasePacket { ...@@ -206,6 +214,7 @@ public class ARP extends BasePacket {
206 /** 214 /**
207 * @param targetProtoAddress 215 * @param targetProtoAddress
208 * the targetProtocolAddress to set 216 * the targetProtocolAddress to set
217 + * @return this
209 */ 218 */
210 public ARP setTargetProtocolAddress(final byte[] targetProtoAddress) { 219 public ARP setTargetProtocolAddress(final byte[] targetProtoAddress) {
211 this.targetProtocolAddress = targetProtoAddress; 220 this.targetProtocolAddress = targetProtoAddress;
......
...@@ -33,7 +33,7 @@ public class Data extends BasePacket { ...@@ -33,7 +33,7 @@ public class Data extends BasePacket {
33 } 33 }
34 34
35 /** 35 /**
36 - * @param data 36 + * @param data the data
37 */ 37 */
38 public Data(final byte[] data) { 38 public Data(final byte[] data) {
39 this.data = data; 39 this.data = data;
...@@ -49,6 +49,7 @@ public class Data extends BasePacket { ...@@ -49,6 +49,7 @@ public class Data extends BasePacket {
49 /** 49 /**
50 * @param data 50 * @param data
51 * the data to set 51 * the data to set
52 + * @return self
52 */ 53 */
53 public Data setData(final byte[] data) { 54 public Data setData(final byte[] data) {
54 this.data = data; 55 this.data = data;
......
...@@ -64,7 +64,7 @@ public interface IPacket { ...@@ -64,7 +64,7 @@ public interface IPacket {
64 /** 64 /**
65 * Deserializes this packet layer and all possible payloads. 65 * Deserializes this packet layer and all possible payloads.
66 * 66 *
67 - * @param data 67 + * @param data bytes to deserialize
68 * @param offset 68 * @param offset
69 * offset to start deserializing from 69 * offset to start deserializing from
70 * @param length 70 * @param length
......
...@@ -24,7 +24,7 @@ public final class HexString { ...@@ -24,7 +24,7 @@ public final class HexString {
24 /** 24 /**
25 * Convert a string of bytes to a ':' separated hex string. 25 * Convert a string of bytes to a ':' separated hex string.
26 * 26 *
27 - * @param bytes 27 + * @param bytes string of bytes to convert
28 * @return "0f:ca:fe:de:ad:be:ef" 28 * @return "0f:ca:fe:de:ad:be:ef"
29 */ 29 */
30 public static String toHexString(final byte[] bytes) { 30 public static String toHexString(final byte[] bytes) {
......
...@@ -29,7 +29,7 @@ public interface MessagingService { ...@@ -29,7 +29,7 @@ public interface MessagingService {
29 * @param ep end point to send the message to. 29 * @param ep end point to send the message to.
30 * @param type type of message. 30 * @param type type of message.
31 * @param payload message payload bytes. 31 * @param payload message payload bytes.
32 - * @throws IOException 32 + * @throws IOException when I/O exception of some sort has occurred
33 */ 33 */
34 public void sendAsync(Endpoint ep, String type, byte[] payload) throws IOException; 34 public void sendAsync(Endpoint ep, String type, byte[] payload) throws IOException;
35 35
...@@ -39,7 +39,7 @@ public interface MessagingService { ...@@ -39,7 +39,7 @@ public interface MessagingService {
39 * @param type type of message. 39 * @param type type of message.
40 * @param payload message payload. 40 * @param payload message payload.
41 * @return a response future 41 * @return a response future
42 - * @throws IOException 42 + * @throws IOException when I/O exception of some sort has occurred
43 */ 43 */
44 public ListenableFuture<byte[]> sendAndReceive(Endpoint ep, String type, byte[] payload) throws IOException; 44 public ListenableFuture<byte[]> sendAndReceive(Endpoint ep, String type, byte[] payload) throws IOException;
45 45
......
...@@ -107,6 +107,7 @@ public abstract class IOLoop<M extends Message, S extends MessageStream<M>> ...@@ -107,6 +107,7 @@ public abstract class IOLoop<M extends Message, S extends MessageStream<M>>
107 * Completes connection request pending on the given selection key. 107 * Completes connection request pending on the given selection key.
108 * 108 *
109 * @param key selection key holding the pending connect operation. 109 * @param key selection key holding the pending connect operation.
110 + * @throws IOException when I/O exception of some sort has occurred
110 */ 111 */
111 protected void connect(SelectionKey key) throws IOException { 112 protected void connect(SelectionKey key) throws IOException {
112 SocketChannel ch = (SocketChannel) key.channel(); 113 SocketChannel ch = (SocketChannel) key.channel();
......
...@@ -74,6 +74,7 @@ public abstract class SelectorLoop implements Runnable { ...@@ -74,6 +74,7 @@ public abstract class SelectorLoop implements Runnable {
74 74
75 /** 75 /**
76 * Indicates that the loop is marked to run. 76 * Indicates that the loop is marked to run.
77 + * @return true if the loop is marked to run
77 */ 78 */
78 protected boolean isRunning() { 79 protected boolean isRunning() {
79 return state == State.STARTED || state == State.STARTING; 80 return state == State.STARTED || state == State.STARTING;
......
...@@ -18,7 +18,7 @@ package org.onlab.thirdparty; ...@@ -18,7 +18,7 @@ package org.onlab.thirdparty;
18 18
19 /** 19 /**
20 * Empty class required to get the onlab-thirdparty module to build properly. 20 * Empty class required to get the onlab-thirdparty module to build properly.
21 - * <p/> 21 + *
22 * TODO Figure out how to remove this. 22 * TODO Figure out how to remove this.
23 */ 23 */
24 public class OnlabThirdparty { 24 public class OnlabThirdparty {
......