Committed by
Ray Milkey
Fixing javadocs.
Change-Id: I100488664315af9c1b7faffab2d66ea3263d57ca
Showing
4 changed files
with
26 additions
and
4 deletions
| ... | @@ -265,8 +265,8 @@ public final class Instructions { | ... | @@ -265,8 +265,8 @@ public final class Instructions { |
| 265 | 265 | ||
| 266 | /** | 266 | /** |
| 267 | * Sends the packet to the table described in 'type'. | 267 | * Sends the packet to the table described in 'type'. |
| 268 | - * @param type | 268 | + * @param type flow rule table type |
| 269 | - * @return | 269 | + * @return table type transition instruction |
| 270 | */ | 270 | */ |
| 271 | public static Instruction transition(FlowRule.Type type) { | 271 | public static Instruction transition(FlowRule.Type type) { |
| 272 | checkNotNull(type, "Table type cannot be null"); | 272 | checkNotNull(type, "Table type cannot be null"); | ... | ... |
| 1 | +/* | ||
| 2 | + * Copyright 2015 Open Networking Laboratory | ||
| 3 | + * | ||
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 5 | + * you may not use this file except in compliance with the License. | ||
| 6 | + * You may obtain a copy of the License at | ||
| 7 | + * | ||
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 | ||
| 9 | + * | ||
| 10 | + * Unless required by applicable law or agreed to in writing, software | ||
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, | ||
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 13 | + * See the License for the specific language governing permissions and | ||
| 14 | + * limitations under the License. | ||
| 15 | + */ | ||
| 16 | + | ||
| 17 | +/** | ||
| 18 | + * Implementations of builtin intent installers. | ||
| 19 | + */ | ||
| 20 | +package org.onosproject.net.intent.impl.installer; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| ... | @@ -40,7 +40,7 @@ public class BlockingBoolean extends AbstractQueuedSynchronizer { | ... | @@ -40,7 +40,7 @@ public class BlockingBoolean extends AbstractQueuedSynchronizer { |
| 40 | * value unless the thread is {@linkplain Thread#interrupt interrupted}. | 40 | * value unless the thread is {@linkplain Thread#interrupt interrupted}. |
| 41 | * | 41 | * |
| 42 | * @param value specified value | 42 | * @param value specified value |
| 43 | - * @throws InterruptedException | 43 | + * @throws InterruptedException if interrupted while waiting |
| 44 | */ | 44 | */ |
| 45 | public void await(boolean value) throws InterruptedException { | 45 | public void await(boolean value) throws InterruptedException { |
| 46 | acquireSharedInterruptibly(value ? TRUE : FALSE); | 46 | acquireSharedInterruptibly(value ? TRUE : FALSE); |
| ... | @@ -56,7 +56,7 @@ public class BlockingBoolean extends AbstractQueuedSynchronizer { | ... | @@ -56,7 +56,7 @@ public class BlockingBoolean extends AbstractQueuedSynchronizer { |
| 56 | * @param unit the time unit of the {@code timeout} argument | 56 | * @param unit the time unit of the {@code timeout} argument |
| 57 | * @return {@code true} if the count reached zero and {@code false} | 57 | * @return {@code true} if the count reached zero and {@code false} |
| 58 | * if the waiting time elapsed before the count reached zero | 58 | * if the waiting time elapsed before the count reached zero |
| 59 | - * @throws InterruptedException | 59 | + * @throws InterruptedException if interrupted while waiting |
| 60 | */ | 60 | */ |
| 61 | public boolean await(boolean value, long timeout, TimeUnit unit) | 61 | public boolean await(boolean value, long timeout, TimeUnit unit) |
| 62 | throws InterruptedException { | 62 | throws InterruptedException { | ... | ... |
| ... | @@ -66,6 +66,7 @@ public final class BoundedThreadPool extends ThreadPoolExecutor { | ... | @@ -66,6 +66,7 @@ public final class BoundedThreadPool extends ThreadPoolExecutor { |
| 66 | /** | 66 | /** |
| 67 | * Returns a fixed-size, bounded executor service. | 67 | * Returns a fixed-size, bounded executor service. |
| 68 | * | 68 | * |
| 69 | + * @param numberOfThreads number of threads in the pool | ||
| 69 | * @param threadFactory thread factory for the worker threads. | 70 | * @param threadFactory thread factory for the worker threads. |
| 70 | * @return the bounded thread pool | 71 | * @return the bounded thread pool |
| 71 | */ | 72 | */ |
| ... | @@ -112,6 +113,7 @@ public final class BoundedThreadPool extends ThreadPoolExecutor { | ... | @@ -112,6 +113,7 @@ public final class BoundedThreadPool extends ThreadPoolExecutor { |
| 112 | 113 | ||
| 113 | // TODO schedule this with a fixed delay from a scheduled executor | 114 | // TODO schedule this with a fixed delay from a scheduled executor |
| 114 | private final AtomicLong lastPrinted = new AtomicLong(0L); | 115 | private final AtomicLong lastPrinted = new AtomicLong(0L); |
| 116 | + | ||
| 115 | private void periodicallyPrintStats() { | 117 | private void periodicallyPrintStats() { |
| 116 | long now = System.currentTimeMillis(); | 118 | long now = System.currentTimeMillis(); |
| 117 | long prev = lastPrinted.get(); | 119 | long prev = lastPrinted.get(); | ... | ... |
-
Please register or login to post a comment