Ray Milkey

Fix Javadoc warnings

Change-Id: Icf8b6b6f77ea80d3975aa975226a178145067adf
Showing 31 changed files with 74 additions and 9 deletions
...@@ -57,7 +57,7 @@ public class PacketLinkRealizedByOptical { ...@@ -57,7 +57,7 @@ public class PacketLinkRealizedByOptical {
57 * @param src source connect point 57 * @param src source connect point
58 * @param dst destination connect point 58 * @param dst destination connect point
59 * @param intent OpticalCircuitIntent that realizes packet link between src and dst 59 * @param intent OpticalCircuitIntent that realizes packet link between src and dst
60 - * @return 60 + * @return PacketLinkRealizedByOptical instance with specified connect points and OpticalCircuitIntent
61 */ 61 */
62 public static PacketLinkRealizedByOptical create(ConnectPoint src, ConnectPoint dst, 62 public static PacketLinkRealizedByOptical create(ConnectPoint src, ConnectPoint dst,
63 OpticalCircuitIntent intent) { 63 OpticalCircuitIntent intent) {
...@@ -76,7 +76,7 @@ public class PacketLinkRealizedByOptical { ...@@ -76,7 +76,7 @@ public class PacketLinkRealizedByOptical {
76 * @param src source connect point 76 * @param src source connect point
77 * @param dst destination connect point 77 * @param dst destination connect point
78 * @param intent OpticalConnectivityIntent that realizes packet link between src and dst 78 * @param intent OpticalConnectivityIntent that realizes packet link between src and dst
79 - * @return 79 + * @return PacketLinkRealizedByOptical instance with specified connect points and OpticalConnectivityIntent
80 */ 80 */
81 public static PacketLinkRealizedByOptical create(ConnectPoint src, ConnectPoint dst, 81 public static PacketLinkRealizedByOptical create(ConnectPoint src, ConnectPoint dst,
82 OpticalConnectivityIntent intent) { 82 OpticalConnectivityIntent intent) {
......
...@@ -30,8 +30,9 @@ public class OpticalPathEvent extends AbstractEvent<OpticalPathEvent.Type, Optic ...@@ -30,8 +30,9 @@ public class OpticalPathEvent extends AbstractEvent<OpticalPathEvent.Type, Optic
30 30
31 /** 31 /**
32 * Creates OpticalPathEvent object with specified type and subject. 32 * Creates OpticalPathEvent object with specified type and subject.
33 - * @param type 33 + *
34 - * @param subject 34 + * @param type type of event
35 + * @param subject subject of the event
35 */ 36 */
36 public OpticalPathEvent(Type type, OpticalConnectivityId subject) { 37 public OpticalPathEvent(Type type, OpticalConnectivityId subject) {
37 super(type, subject); 38 super(type, subject);
......
...@@ -55,6 +55,7 @@ public final class OduCltPortHelper { ...@@ -55,6 +55,7 @@ public final class OduCltPortHelper {
55 * @param number port number 55 * @param number port number
56 * @param isEnabled port enabled state 56 * @param isEnabled port enabled state
57 * @param signalType ODU client signal type 57 * @param signalType ODU client signal type
58 + * @return port description
58 */ 59 */
59 public static PortDescription oduCltPortDescription(PortNumber number, 60 public static PortDescription oduCltPortDescription(PortNumber number,
60 boolean isEnabled, 61 boolean isEnabled,
...@@ -69,6 +70,7 @@ public final class OduCltPortHelper { ...@@ -69,6 +70,7 @@ public final class OduCltPortHelper {
69 * @param isEnabled port enabled state 70 * @param isEnabled port enabled state
70 * @param signalType ODU client signal type 71 * @param signalType ODU client signal type
71 * @param annotations key/value annotations map 72 * @param annotations key/value annotations map
73 + * @return port description
72 */ 74 */
73 public static PortDescription oduCltPortDescription(PortNumber number, 75 public static PortDescription oduCltPortDescription(PortNumber number,
74 boolean isEnabled, 76 boolean isEnabled,
...@@ -93,6 +95,7 @@ public final class OduCltPortHelper { ...@@ -93,6 +95,7 @@ public final class OduCltPortHelper {
93 * @param base PortDescription to get basic information from 95 * @param base PortDescription to get basic information from
94 * @param signalType ODU client signal type 96 * @param signalType ODU client signal type
95 * @param annotations key/value annotations map 97 * @param annotations key/value annotations map
98 + * @return port description
96 */ 99 */
97 public static PortDescription oduCltPortDescription(PortDescription base, 100 public static PortDescription oduCltPortDescription(PortDescription base,
98 CltSignalType signalType, 101 CltSignalType signalType,
......
...@@ -66,6 +66,7 @@ public final class OmsPortHelper { ...@@ -66,6 +66,7 @@ public final class OmsPortHelper {
66 * @param maxFrequency maximum frequency 66 * @param maxFrequency maximum frequency
67 * @param grid grid spacing frequency 67 * @param grid grid spacing frequency
68 * @param annotations key/value annotations map 68 * @param annotations key/value annotations map
69 + * @return port description
69 */ 70 */
70 public static PortDescription omsPortDescription(PortNumber number, 71 public static PortDescription omsPortDescription(PortNumber number,
71 boolean isEnabled, 72 boolean isEnabled,
...@@ -93,6 +94,7 @@ public final class OmsPortHelper { ...@@ -93,6 +94,7 @@ public final class OmsPortHelper {
93 * @param minFrequency minimum frequency 94 * @param minFrequency minimum frequency
94 * @param maxFrequency maximum frequency 95 * @param maxFrequency maximum frequency
95 * @param grid grid spacing frequency 96 * @param grid grid spacing frequency
97 + * @return port description
96 */ 98 */
97 public static PortDescription omsPortDescription(PortNumber number, 99 public static PortDescription omsPortDescription(PortNumber number,
98 boolean isEnabled, 100 boolean isEnabled,
...@@ -110,6 +112,7 @@ public final class OmsPortHelper { ...@@ -110,6 +112,7 @@ public final class OmsPortHelper {
110 * @param maxFrequency maximum frequency 112 * @param maxFrequency maximum frequency
111 * @param grid grid spacing frequency 113 * @param grid grid spacing frequency
112 * @param annotations key/value annotations map 114 * @param annotations key/value annotations map
115 + * @return port description
113 */ 116 */
114 public static PortDescription omsPortDescription(PortDescription base, 117 public static PortDescription omsPortDescription(PortDescription base,
115 Frequency minFrequency, 118 Frequency minFrequency,
......
...@@ -55,6 +55,7 @@ public final class OtuPortHelper { ...@@ -55,6 +55,7 @@ public final class OtuPortHelper {
55 * @param number port number 55 * @param number port number
56 * @param isEnabled port enabled state 56 * @param isEnabled port enabled state
57 * @param signalType OTU client signal type 57 * @param signalType OTU client signal type
58 + * @return port description
58 */ 59 */
59 public static PortDescription otuPortDescription(PortNumber number, 60 public static PortDescription otuPortDescription(PortNumber number,
60 boolean isEnabled, 61 boolean isEnabled,
...@@ -69,6 +70,7 @@ public final class OtuPortHelper { ...@@ -69,6 +70,7 @@ public final class OtuPortHelper {
69 * @param isEnabled port enabled state 70 * @param isEnabled port enabled state
70 * @param signalType OTU client signal type 71 * @param signalType OTU client signal type
71 * @param annotations key/value annotations map 72 * @param annotations key/value annotations map
73 + * @return port description
72 */ 74 */
73 public static PortDescription otuPortDescription(PortNumber number, 75 public static PortDescription otuPortDescription(PortNumber number,
74 boolean isEnabled, 76 boolean isEnabled,
...@@ -93,6 +95,7 @@ public final class OtuPortHelper { ...@@ -93,6 +95,7 @@ public final class OtuPortHelper {
93 * @param base PortDescription to get basic information from 95 * @param base PortDescription to get basic information from
94 * @param signalType OTU client signal type 96 * @param signalType OTU client signal type
95 * @param annotations key/value annotations map 97 * @param annotations key/value annotations map
98 + * @return port description
96 */ 99 */
97 public static PortDescription otuPortDescription(PortDescription base, 100 public static PortDescription otuPortDescription(PortDescription base,
98 OtuSignalType signalType, 101 OtuSignalType signalType,
......
...@@ -32,6 +32,9 @@ public interface PortMapper<P extends Port> { ...@@ -32,6 +32,9 @@ public interface PortMapper<P extends Port> {
32 32
33 /** 33 /**
34 * Returns true if this port is capable of being projected as {@code <P>}. 34 * Returns true if this port is capable of being projected as {@code <P>}.
35 + *
36 + * @param port port
37 + * @return true if this port can be projected as the given type
35 */ 38 */
36 boolean is(Port port); 39 boolean is(Port port);
37 40
......
...@@ -76,6 +76,7 @@ public abstract class OchSignalCodec { ...@@ -76,6 +76,7 @@ public abstract class OchSignalCodec {
76 /** 76 /**
77 * Returns a JSON Object representation of this instance. 77 * Returns a JSON Object representation of this instance.
78 * 78 *
79 + * @param j Och signal object
79 * @return JSON Object representing OchSignal 80 * @return JSON Object representing OchSignal
80 */ 81 */
81 public static ObjectNode encode(OchSignal j) { 82 public static ObjectNode encode(OchSignal j) {
......
...@@ -49,6 +49,7 @@ public interface VtnPortApi { ...@@ -49,6 +49,7 @@ public interface VtnPortApi {
49 * Returns port information from OpenStack with port id. 49 * Returns port information from OpenStack with port id.
50 * 50 *
51 * @param portId port id 51 * @param portId port id
52 + * @param osAccess OpenStack address for OS access
52 * @return vtn port; null if it fails to get port information 53 * @return vtn port; null if it fails to get port information
53 */ 54 */
54 // TODO remove this when XOS provides port information 55 // TODO remove this when XOS provides port information
...@@ -58,6 +59,7 @@ public interface VtnPortApi { ...@@ -58,6 +59,7 @@ public interface VtnPortApi {
58 * Returns port information from OpenStack with port name. 59 * Returns port information from OpenStack with port name.
59 * 60 *
60 * @param portName port name 61 * @param portName port name
62 + * @param osAccess OpenStack address for OS access
61 * @return vtn port; null if it fails to get port information 63 * @return vtn port; null if it fails to get port information
62 */ 64 */
63 // TODO remove this when XOS provides port information 65 // TODO remove this when XOS provides port information
......
...@@ -185,6 +185,7 @@ public interface TunnelDescription extends Description, Annotated { ...@@ -185,6 +185,7 @@ public interface TunnelDescription extends Description, Annotated {
185 /** 185 /**
186 * Returns tunnel interface description builder with a tunnel key. 186 * Returns tunnel interface description builder with a tunnel key.
187 * 187 *
188 + * @param tunnelKey tunnel key
188 * @return tunnel description builder 189 * @return tunnel description builder
189 */ 190 */
190 Builder key(TunnelKey tunnelKey); 191 Builder key(TunnelKey tunnelKey);
......
...@@ -182,6 +182,7 @@ public interface NetworkConfigService ...@@ -182,6 +182,7 @@ public interface NetworkConfigService
182 * Clears the configuration including queued based on the subject. 182 * Clears the configuration including queued based on the subject.
183 * If does not exists this call has no effect. 183 * If does not exists this call has no effect.
184 * 184 *
185 + * @param <S> type of subject
185 * @param subject configuration subject 186 * @param subject configuration subject
186 */ 187 */
187 <S> void removeConfig(S subject); 188 <S> void removeConfig(S subject);
...@@ -190,6 +191,7 @@ public interface NetworkConfigService ...@@ -190,6 +191,7 @@ public interface NetworkConfigService
190 * Clears the complete configuration including queued. 191 * Clears the complete configuration including queued.
191 * If does not exists this call has no effect. 192 * If does not exists this call has no effect.
192 * 193 *
194 + * @param <S> type of subject
193 */ 195 */
194 <S> void removeConfig(); 196 <S> void removeConfig();
195 } 197 }
......
...@@ -155,6 +155,7 @@ public interface NetworkConfigStore extends Store<NetworkConfigEvent, NetworkCon ...@@ -155,6 +155,7 @@ public interface NetworkConfigStore extends Store<NetworkConfigEvent, NetworkCon
155 * Clears the configuration based on the subject including queued. 155 * Clears the configuration based on the subject including queued.
156 * If does not exists this call has no effect. 156 * If does not exists this call has no effect.
157 * 157 *
158 + * @param <S> type of subject
158 * @param subject configuration subject 159 * @param subject configuration subject
159 */ 160 */
160 <S> void clearConfig(S subject); 161 <S> void clearConfig(S subject);
...@@ -163,6 +164,7 @@ public interface NetworkConfigStore extends Store<NetworkConfigEvent, NetworkCon ...@@ -163,6 +164,7 @@ public interface NetworkConfigStore extends Store<NetworkConfigEvent, NetworkCon
163 * Clears the complete configuration including queued. 164 * Clears the complete configuration including queued.
164 * If does not exists this call has no effect. 165 * If does not exists this call has no effect.
165 * 166 *
167 + * @param <S> type of subject
166 */ 168 */
167 <S> void clearConfig(); 169 <S> void clearConfig();
168 170
......
...@@ -24,7 +24,7 @@ public interface BehaviourClassResolver { ...@@ -24,7 +24,7 @@ public interface BehaviourClassResolver {
24 /** 24 /**
25 * Returns the class corresponding to the specified class name. 25 * Returns the class corresponding to the specified class name.
26 * @param className class className 26 * @param className class className
27 - * @return 27 + * @return class for the resolver
28 */ 28 */
29 Class<? extends Behaviour> getBehaviourClass(String className); 29 Class<? extends Behaviour> getBehaviourClass(String className);
30 30
......
...@@ -71,6 +71,7 @@ public interface FlowEntry extends FlowRule { ...@@ -71,6 +71,7 @@ public interface FlowEntry extends FlowRule {
71 /** 71 /**
72 * Returns the time this flow rule has been applied. 72 * Returns the time this flow rule has been applied.
73 * 73 *
74 + * @param unit time unit the result will be converted to
74 * @return time in the requested {@link TimeUnit} 75 * @return time in the requested {@link TimeUnit}
75 */ 76 */
76 long life(TimeUnit unit); 77 long life(TimeUnit unit);
......
...@@ -36,6 +36,9 @@ public interface ProbedLinkProvider extends LinkProvider { ...@@ -36,6 +36,9 @@ public interface ProbedLinkProvider extends LinkProvider {
36 /** 36 /**
37 * Build a stringified MAC address using the ClusterMetadata hash for uniqueness. 37 * Build a stringified MAC address using the ClusterMetadata hash for uniqueness.
38 * Form of MAC is "02:eb" followed by four bytes of clusterMetadata hash. 38 * Form of MAC is "02:eb" followed by four bytes of clusterMetadata hash.
39 + *
40 + * @param cm cluster metadata
41 + * @return stringified mac address
39 */ 42 */
40 static String fingerprintMac(ClusterMetadata cm) { 43 static String fingerprintMac(ClusterMetadata cm) {
41 if (cm == null) { 44 if (cm == null) {
......
...@@ -94,6 +94,7 @@ public class ResourceConsumerId { ...@@ -94,6 +94,7 @@ public class ResourceConsumerId {
94 /** 94 /**
95 * Creates ResourceConsumerId from given value and class. 95 * Creates ResourceConsumerId from given value and class.
96 * 96 *
97 + * @param <T> resource consumer class type
97 * @param value ID value unique within the given class 98 * @param value ID value unique within the given class
98 * @param cls class of ResourceConsumer implementation 99 * @param cls class of ResourceConsumer implementation
99 * @return created ResourceConsumerId object 100 * @return created ResourceConsumerId object
...@@ -105,6 +106,7 @@ public class ResourceConsumerId { ...@@ -105,6 +106,7 @@ public class ResourceConsumerId {
105 /** 106 /**
106 * Creates ResourceConsumerId instance from Identifier object. 107 * Creates ResourceConsumerId instance from Identifier object.
107 * 108 *
109 + * @param <T> resource consumer class type
108 * @param id identifier object backed by Long value 110 * @param id identifier object backed by Long value
109 * @return created ResourceConsumerId object 111 * @return created ResourceConsumerId object
110 */ 112 */
......
...@@ -59,6 +59,9 @@ public abstract class ForwardingPort implements Port { ...@@ -59,6 +59,9 @@ public abstract class ForwardingPort implements Port {
59 * call {@code super.toEqualsBuilder(..)} and append fields. 59 * call {@code super.toEqualsBuilder(..)} and append fields.
60 * To remove field from comparison, override this method 60 * To remove field from comparison, override this method
61 * or manually implement equals(). 61 * or manually implement equals().
62 + *
63 + * @param that object to compare to
64 + * @return builder object
62 */ 65 */
63 protected EqualsBuilder toEqualsBuilder(Port that) { 66 protected EqualsBuilder toEqualsBuilder(Port that) {
64 if (that == null) { 67 if (that == null) {
......
...@@ -80,6 +80,7 @@ public interface DistributedPrimitiveCreator { ...@@ -80,6 +80,7 @@ public interface DistributedPrimitiveCreator {
80 /** 80 /**
81 * Creates a new {@code WorkQueue}. 81 * Creates a new {@code WorkQueue}.
82 * 82 *
83 + * @param <E> work element type
83 * @param name work queue name 84 * @param name work queue name
84 * @param serializer serializer 85 * @param serializer serializer
85 * @return work queue 86 * @return work queue
...@@ -103,4 +104,4 @@ public interface DistributedPrimitiveCreator { ...@@ -103,4 +104,4 @@ public interface DistributedPrimitiveCreator {
103 * @return set of {@code WorkQueue} names 104 * @return set of {@code WorkQueue} names
104 */ 105 */
105 Set<String> getWorkQueueNames(); 106 Set<String> getWorkQueueNames();
106 -}
...\ No newline at end of file ...\ No newline at end of file
107 +}
......
...@@ -77,6 +77,9 @@ public interface AsyncConsistentMultimap<K, V> extends DistributedPrimitive { ...@@ -77,6 +77,9 @@ public interface AsyncConsistentMultimap<K, V> extends DistributedPrimitive {
77 /** 77 /**
78 * Returns true if this map contains at least one key-value pair with key 78 * Returns true if this map contains at least one key-value pair with key
79 * and value specified. 79 * and value specified.
80 + *
81 + * @param key key
82 + * @param value value
80 * @return a future whose value will be true if there is a key-value pair 83 * @return a future whose value will be true if there is a key-value pair
81 * with the specified key and value, 84 * with the specified key and value,
82 * false otherwise. 85 * false otherwise.
...@@ -89,6 +92,7 @@ public interface AsyncConsistentMultimap<K, V> extends DistributedPrimitive { ...@@ -89,6 +92,7 @@ public interface AsyncConsistentMultimap<K, V> extends DistributedPrimitive {
89 * returns true, if the key-value pair already exists then behavior is 92 * returns true, if the key-value pair already exists then behavior is
90 * implementation specific with some implementations allowing duplicates 93 * implementation specific with some implementations allowing duplicates
91 * and others ignoring put requests for existing entries. 94 * and others ignoring put requests for existing entries.
95 + *
92 * @param key the key to add 96 * @param key the key to add
93 * @param value the value to add 97 * @param value the value to add
94 * @return a future whose value will be true if the map has changed because 98 * @return a future whose value will be true if the map has changed because
...@@ -100,6 +104,7 @@ public interface AsyncConsistentMultimap<K, V> extends DistributedPrimitive { ...@@ -100,6 +104,7 @@ public interface AsyncConsistentMultimap<K, V> extends DistributedPrimitive {
100 * Removes the key-value pair with the specified values if it exists. In 104 * Removes the key-value pair with the specified values if it exists. In
101 * implementations that allow duplicates which matching entry will be 105 * implementations that allow duplicates which matching entry will be
102 * removed is undefined. 106 * removed is undefined.
107 + *
103 * @param key the key of the pair to be removed 108 * @param key the key of the pair to be removed
104 * @param value the value of the pair to be removed 109 * @param value the value of the pair to be removed
105 * @return a future whose value will be true if the map changed because of 110 * @return a future whose value will be true if the map changed because of
...@@ -113,6 +118,7 @@ public interface AsyncConsistentMultimap<K, V> extends DistributedPrimitive { ...@@ -113,6 +118,7 @@ public interface AsyncConsistentMultimap<K, V> extends DistributedPrimitive {
113 * will remove one matching entry, which one is not defined. Equivalent to 118 * will remove one matching entry, which one is not defined. Equivalent to
114 * repeated calls to {@code remove()} for each key value pair but more 119 * repeated calls to {@code remove()} for each key value pair but more
115 * efficient. 120 * efficient.
121 + *
116 * @param key the key of the pair to be removed 122 * @param key the key of the pair to be removed
117 * @param values the set of values to be removed 123 * @param values the set of values to be removed
118 * @return a future whose value will be true if the map changes because of 124 * @return a future whose value will be true if the map changes because of
...@@ -124,6 +130,7 @@ public interface AsyncConsistentMultimap<K, V> extends DistributedPrimitive { ...@@ -124,6 +130,7 @@ public interface AsyncConsistentMultimap<K, V> extends DistributedPrimitive {
124 /** 130 /**
125 * Removes all values associated with the specified key as well as the key 131 * Removes all values associated with the specified key as well as the key
126 * itself. 132 * itself.
133 + *
127 * @param key the key whose key-value pairs will be removed 134 * @param key the key whose key-value pairs will be removed
128 * @return a future whose value is the set of values that were removed, 135 * @return a future whose value is the set of values that were removed,
129 * which may be empty, if the values did not exist the version will be 136 * which may be empty, if the values did not exist the version will be
...@@ -136,6 +143,7 @@ public interface AsyncConsistentMultimap<K, V> extends DistributedPrimitive { ...@@ -136,6 +143,7 @@ public interface AsyncConsistentMultimap<K, V> extends DistributedPrimitive {
136 * values in the iterable if each key-value pair does not already exist, 143 * values in the iterable if each key-value pair does not already exist,
137 * if the pair does exist the behavior is implementation specific. 144 * if the pair does exist the behavior is implementation specific.
138 * (Same as repeated puts but with efficiency gains.) 145 * (Same as repeated puts but with efficiency gains.)
146 + *
139 * @param key the key to use for all pairs to be added 147 * @param key the key to use for all pairs to be added
140 * @param values the set of values to be added in pairs with the key 148 * @param values the set of values to be added in pairs with the key
141 * @return a future whose value will be true if any change in the map 149 * @return a future whose value will be true if any change in the map
...@@ -148,6 +156,7 @@ public interface AsyncConsistentMultimap<K, V> extends DistributedPrimitive { ...@@ -148,6 +156,7 @@ public interface AsyncConsistentMultimap<K, V> extends DistributedPrimitive {
148 * Stores all the values in values associated with the key specified, 156 * Stores all the values in values associated with the key specified,
149 * removes all preexisting values and returns a collection of the removed 157 * removes all preexisting values and returns a collection of the removed
150 * values which may be empty if the entry did not exist. 158 * values which may be empty if the entry did not exist.
159 + *
151 * @param key the key for all entries to be added 160 * @param key the key for all entries to be added
152 * @param values the values to be associated with the key 161 * @param values the values to be associated with the key
153 * @return a future whose value will be the collection of removed values, 162 * @return a future whose value will be the collection of removed values,
...@@ -158,6 +167,7 @@ public interface AsyncConsistentMultimap<K, V> extends DistributedPrimitive { ...@@ -158,6 +167,7 @@ public interface AsyncConsistentMultimap<K, V> extends DistributedPrimitive {
158 167
159 /** 168 /**
160 * Removes all key-value pairs, after which it will be empty. 169 * Removes all key-value pairs, after which it will be empty.
170 + *
161 * @return a future whose value is irrelevant, simply used to determine if 171 * @return a future whose value is irrelevant, simply used to determine if
162 * the call has completed 172 * the call has completed
163 */ 173 */
...@@ -166,6 +176,7 @@ public interface AsyncConsistentMultimap<K, V> extends DistributedPrimitive { ...@@ -166,6 +176,7 @@ public interface AsyncConsistentMultimap<K, V> extends DistributedPrimitive {
166 /** 176 /**
167 * Returns a collection of values associated with the specified key, if the 177 * Returns a collection of values associated with the specified key, if the
168 * key is not in the map it will return an empty collection. 178 * key is not in the map it will return an empty collection.
179 + *
169 * @param key the key whose associated values will be returned 180 * @param key the key whose associated values will be returned
170 * @return a future whose value will be the collection of the values 181 * @return a future whose value will be the collection of the values
171 * associated with the specified key, the collection may be empty 182 * associated with the specified key, the collection may be empty
...@@ -175,6 +186,7 @@ public interface AsyncConsistentMultimap<K, V> extends DistributedPrimitive { ...@@ -175,6 +186,7 @@ public interface AsyncConsistentMultimap<K, V> extends DistributedPrimitive {
175 /** 186 /**
176 * Returns a set of the keys contained in this multimap with one or more 187 * Returns a set of the keys contained in this multimap with one or more
177 * associated values. 188 * associated values.
189 + *
178 * @return a future whose value will be the collection of all keys with one 190 * @return a future whose value will be the collection of all keys with one
179 * or more associated values, this may be empty 191 * or more associated values, this may be empty
180 */ 192 */
...@@ -184,6 +196,7 @@ public interface AsyncConsistentMultimap<K, V> extends DistributedPrimitive { ...@@ -184,6 +196,7 @@ public interface AsyncConsistentMultimap<K, V> extends DistributedPrimitive {
184 * Returns a multiset of the keys present in this multimap with one or more 196 * Returns a multiset of the keys present in this multimap with one or more
185 * associated values each. Keys will appear once for each key-value pair 197 * associated values each. Keys will appear once for each key-value pair
186 * in which they participate. 198 * in which they participate.
199 + *
187 * @return a future whose value will be a multiset of the keys, this may 200 * @return a future whose value will be a multiset of the keys, this may
188 * be empty 201 * be empty
189 */ 202 */
...@@ -193,6 +206,7 @@ public interface AsyncConsistentMultimap<K, V> extends DistributedPrimitive { ...@@ -193,6 +206,7 @@ public interface AsyncConsistentMultimap<K, V> extends DistributedPrimitive {
193 * Returns a collection of values in the set with duplicates permitted, the 206 * Returns a collection of values in the set with duplicates permitted, the
194 * size of this collection will equal the size of the map at the time of 207 * size of this collection will equal the size of the map at the time of
195 * creation. 208 * creation.
209 + *
196 * @return a future whose value will be a collection of values, this may be 210 * @return a future whose value will be a collection of values, this may be
197 * empty 211 * empty
198 */ 212 */
...@@ -200,6 +214,7 @@ public interface AsyncConsistentMultimap<K, V> extends DistributedPrimitive { ...@@ -200,6 +214,7 @@ public interface AsyncConsistentMultimap<K, V> extends DistributedPrimitive {
200 214
201 /** 215 /**
202 * Returns a collection of each key-value pair in this map. 216 * Returns a collection of each key-value pair in this map.
217 + *
203 * @return a future whose value will be a collection of all entries in the 218 * @return a future whose value will be a collection of all entries in the
204 * map, this may be empty 219 * map, this may be empty
205 */ 220 */
...@@ -209,6 +224,7 @@ public interface AsyncConsistentMultimap<K, V> extends DistributedPrimitive { ...@@ -209,6 +224,7 @@ public interface AsyncConsistentMultimap<K, V> extends DistributedPrimitive {
209 * Returns a map of keys to collections of values that reflect the set of 224 * Returns a map of keys to collections of values that reflect the set of
210 * key-value pairs contained in the multimap, where the key value pairs 225 * key-value pairs contained in the multimap, where the key value pairs
211 * would be the key paired with each of the values in the collection. 226 * would be the key paired with each of the values in the collection.
227 + *
212 * @return a future whose value will be a map of keys to collections of 228 * @return a future whose value will be a map of keys to collections of
213 * values, the returned map may be empty. 229 * values, the returned map may be empty.
214 */ 230 */
......
...@@ -102,6 +102,8 @@ public interface StorageService { ...@@ -102,6 +102,8 @@ public interface StorageService {
102 102
103 /** 103 /**
104 * Returns an instance of {@code WorkQueue} with specified name. 104 * Returns an instance of {@code WorkQueue} with specified name.
105 + *
106 + * @param <E> work element type
105 * @param name work queue name 107 * @param name work queue name
106 * @param serializer serializer 108 * @param serializer serializer
107 * 109 *
......
...@@ -61,6 +61,8 @@ public class Task<E> { ...@@ -61,6 +61,8 @@ public class Task<E> {
61 61
62 /** 62 /**
63 * Maps task from one payload type to another. 63 * Maps task from one payload type to another.
64 + *
65 + * @param <F> future type
64 * @param mapper type mapper. 66 * @param mapper type mapper.
65 * @return mapped task. 67 * @return mapped task.
66 */ 68 */
......
...@@ -499,7 +499,8 @@ public final class AtomixConsistentTreeMapCommands { ...@@ -499,7 +499,8 @@ public final class AtomixConsistentTreeMapCommands {
499 499
500 /** 500 /**
501 * Returns the smallest key larger than or equal to the specified key. 501 * Returns the smallest key larger than or equal to the specified key.
502 - * @param <K> 502 + *
503 + * @param <K> key type
503 */ 504 */
504 @SuppressWarnings("serial") 505 @SuppressWarnings("serial")
505 public static class CeilingKey<K> extends KeyQuery<K> { 506 public static class CeilingKey<K> extends KeyQuery<K> {
......
...@@ -28,6 +28,7 @@ public interface VoltOnuOperConfig extends HandlerBehaviour { ...@@ -28,6 +28,7 @@ public interface VoltOnuOperConfig extends HandlerBehaviour {
28 * Reboot an ONU in the device. 28 * Reboot an ONU in the device.
29 * 29 *
30 * @param target input data in string 30 * @param target input data in string
31 + * @return response string
31 */ 32 */
32 String rebootOnu(String target); 33 String rebootOnu(String target);
33 34
...@@ -35,6 +36,7 @@ public interface VoltOnuOperConfig extends HandlerBehaviour { ...@@ -35,6 +36,7 @@ public interface VoltOnuOperConfig extends HandlerBehaviour {
35 * Operate/release loopback on Ethernet port an ONU in the device. 36 * Operate/release loopback on Ethernet port an ONU in the device.
36 * 37 *
37 * @param target input data in string 38 * @param target input data in string
39 + * @return response string
38 */ 40 */
39 String loopbackEthOnu(String target); 41 String loopbackEthOnu(String target);
40 42
......
...@@ -41,6 +41,7 @@ public class AlarmEvent extends AbstractEvent<AlarmEvent.Type, Alarm> { ...@@ -41,6 +41,7 @@ public class AlarmEvent extends AbstractEvent<AlarmEvent.Type, Alarm> {
41 /** 41 /**
42 * Creates an event due to one alarm. 42 * Creates an event due to one alarm.
43 * 43 *
44 + * @param type alarm type
44 * @param alarm the alarm related to the event. 45 * @param alarm the alarm related to the event.
45 */ 46 */
46 public AlarmEvent(AlarmEvent.Type type, Alarm alarm) { 47 public AlarmEvent(AlarmEvent.Type type, Alarm alarm) {
......
...@@ -30,6 +30,7 @@ public interface AlarmTranslator { ...@@ -30,6 +30,7 @@ public interface AlarmTranslator {
30 * Translates message from device into an alarm with appropriate 30 * Translates message from device into an alarm with appropriate
31 * information. 31 * information.
32 * 32 *
33 + * @param deviceId device
33 * @param message message from device to translate to alarm 34 * @param message message from device to translate to alarm
34 * @return Alarm with information determined by given message 35 * @return Alarm with information determined by given message
35 */ 36 */
......
...@@ -224,6 +224,7 @@ public class BgpFlowSpecNlri { ...@@ -224,6 +224,7 @@ public class BgpFlowSpecNlri {
224 * Update buffer with identical flow types. 224 * Update buffer with identical flow types.
225 * 225 *
226 * @param cb channel buffer 226 * @param cb channel buffer
227 + * @param bgpFlowSpecNlri flow specification
227 */ 228 */
228 public static void updateBufferIdenticalFlowTypes(ChannelBuffer cb, BgpFlowSpecNlri bgpFlowSpecNlri) { 229 public static void updateBufferIdenticalFlowTypes(ChannelBuffer cb, BgpFlowSpecNlri bgpFlowSpecNlri) {
229 230
...@@ -256,6 +257,7 @@ public class BgpFlowSpecNlri { ...@@ -256,6 +257,7 @@ public class BgpFlowSpecNlri {
256 * Update buffer with non-identical flow types. 257 * Update buffer with non-identical flow types.
257 * 258 *
258 * @param cb channel buffer 259 * @param cb channel buffer
260 + * @param bgpFlowSpecNlri flow specification
259 */ 261 */
260 public static void updateBufferNonIdenticalFlowTypes(ChannelBuffer cb, BgpFlowSpecNlri bgpFlowSpecNlri) { 262 public static void updateBufferNonIdenticalFlowTypes(ChannelBuffer cb, BgpFlowSpecNlri bgpFlowSpecNlri) {
261 ChannelBuffer flowSpecTmpBuff = ChannelBuffers.dynamicBuffer(); 263 ChannelBuffer flowSpecTmpBuff = ChannelBuffers.dynamicBuffer();
......
...@@ -171,6 +171,7 @@ public class WideCommunityAttrHeader implements BgpValueType { ...@@ -171,6 +171,7 @@ public class WideCommunityAttrHeader implements BgpValueType {
171 * 171 *
172 * @param c ChannelBuffer 172 * @param c ChannelBuffer
173 * @return object of WideCommunityAttrHeader 173 * @return object of WideCommunityAttrHeader
174 + * @throws BgpParseException if a parsing error occurs
174 */ 175 */
175 public static WideCommunityAttrHeader read(ChannelBuffer c) throws BgpParseException { 176 public static WideCommunityAttrHeader read(ChannelBuffer c) throws BgpParseException {
176 177
...@@ -206,4 +207,4 @@ public class WideCommunityAttrHeader implements BgpValueType { ...@@ -206,4 +207,4 @@ public class WideCommunityAttrHeader implements BgpValueType {
206 // TODO Auto-generated method stub 207 // TODO Auto-generated method stub
207 return 0; 208 return 0;
208 } 209 }
209 -}
...\ No newline at end of file ...\ No newline at end of file
210 +}
......
...@@ -81,6 +81,7 @@ public class WideCommunity implements BgpValueType { ...@@ -81,6 +81,7 @@ public class WideCommunity implements BgpValueType {
81 /** 81 /**
82 * Returns object of this class with specified values. 82 * Returns object of this class with specified values.
83 * 83 *
84 + * @param wideCommunityHeader community header
84 * @param community wide community 85 * @param community wide community
85 * @param localAsn local ASN number 86 * @param localAsn local ASN number
86 * @param contextAsn context ASN number 87 * @param contextAsn context ASN number
......
...@@ -80,6 +80,7 @@ public interface RestSBController { ...@@ -80,6 +80,7 @@ public interface RestSBController {
80 /** 80 /**
81 * Does a REST POST request with specified parameters to the device. 81 * Does a REST POST request with specified parameters to the device.
82 * 82 *
83 + * @param <T> post return type
83 * @param device device to make the request to 84 * @param device device to make the request to
84 * @param request url of the request 85 * @param request url of the request
85 * @param payload payload of the request as an InputStream 86 * @param payload payload of the request as an InputStream
......
...@@ -117,6 +117,7 @@ public final class HexString { ...@@ -117,6 +117,7 @@ public final class HexString {
117 * If separator is the empty string or null, then no separator will be considered. 117 * If separator is the empty string or null, then no separator will be considered.
118 * 118 *
119 * @param values hex string to be converted 119 * @param values hex string to be converted
120 + * @param separator regex for separator
120 * @return converted byte array 121 * @return converted byte array
121 * @throws NumberFormatException if input hex string cannot be parsed 122 * @throws NumberFormatException if input hex string cannot be parsed
122 */ 123 */
......
...@@ -76,6 +76,8 @@ public final class ImmutableByteSequence { ...@@ -76,6 +76,8 @@ public final class ImmutableByteSequence {
76 * the passed byte array, from/to the given indexes (inclusive). 76 * the passed byte array, from/to the given indexes (inclusive).
77 * 77 *
78 * @param original a byte array value 78 * @param original a byte array value
79 + * @param fromIdx starting index
80 + * @param toIdx ending index
79 * @return a new immutable byte sequence 81 * @return a new immutable byte sequence
80 */ 82 */
81 public static ImmutableByteSequence copyFrom(byte[] original, int fromIdx, int toIdx) { 83 public static ImmutableByteSequence copyFrom(byte[] original, int fromIdx, int toIdx) {
...@@ -239,4 +241,4 @@ public final class ImmutableByteSequence { ...@@ -239,4 +241,4 @@ public final class ImmutableByteSequence {
239 public String toString() { 241 public String toString() {
240 return HexString.toHexString(value.array()); 242 return HexString.toHexString(value.array());
241 } 243 }
242 -}
...\ No newline at end of file ...\ No newline at end of file
244 +}
......
...@@ -103,6 +103,7 @@ public class FlowsWebResource extends AbstractWebResource { ...@@ -103,6 +103,7 @@ public class FlowsWebResource extends AbstractWebResource {
103 * Criteria description: 103 * Criteria description:
104 * https://wiki.onosproject.org/display/ONOS/Flow+Rule+Criteria 104 * https://wiki.onosproject.org/display/ONOS/Flow+Rule+Criteria
105 * 105 *
106 + * @param appId application id
106 * @param stream flow rules JSON 107 * @param stream flow rules JSON
107 * @return status of the request - CREATED if the JSON is correct, 108 * @return status of the request - CREATED if the JSON is correct,
108 * BAD_REQUEST if the JSON is invalid 109 * BAD_REQUEST if the JSON is invalid
......