Thomas Vachuska
Committed by Ray Milkey

Fixing javadocs.

Change-Id: I100488664315af9c1b7faffab2d66ea3263d57ca
......@@ -265,8 +265,8 @@ public final class Instructions {
/**
* Sends the packet to the table described in 'type'.
* @param type
* @return
* @param type flow rule table type
* @return table type transition instruction
*/
public static Instruction transition(FlowRule.Type type) {
checkNotNull(type, "Table type cannot be null");
......
/*
* Copyright 2015 Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Implementations of builtin intent installers.
*/
package org.onosproject.net.intent.impl.installer;
\ No newline at end of file
......@@ -40,7 +40,7 @@ public class BlockingBoolean extends AbstractQueuedSynchronizer {
* value unless the thread is {@linkplain Thread#interrupt interrupted}.
*
* @param value specified value
* @throws InterruptedException
* @throws InterruptedException if interrupted while waiting
*/
public void await(boolean value) throws InterruptedException {
acquireSharedInterruptibly(value ? TRUE : FALSE);
......@@ -56,7 +56,7 @@ public class BlockingBoolean extends AbstractQueuedSynchronizer {
* @param unit the time unit of the {@code timeout} argument
* @return {@code true} if the count reached zero and {@code false}
* if the waiting time elapsed before the count reached zero
* @throws InterruptedException
* @throws InterruptedException if interrupted while waiting
*/
public boolean await(boolean value, long timeout, TimeUnit unit)
throws InterruptedException {
......
......@@ -66,7 +66,8 @@ public final class BoundedThreadPool extends ThreadPoolExecutor {
/**
* Returns a fixed-size, bounded executor service.
*
* @param threadFactory thread factory for the worker threads.
* @param numberOfThreads number of threads in the pool
* @param threadFactory thread factory for the worker threads.
* @return the bounded thread pool
*/
public static BoundedThreadPool newFixedThreadPool(int numberOfThreads, ThreadFactory threadFactory) {
......@@ -112,6 +113,7 @@ public final class BoundedThreadPool extends ThreadPoolExecutor {
// TODO schedule this with a fixed delay from a scheduled executor
private final AtomicLong lastPrinted = new AtomicLong(0L);
private void periodicallyPrintStats() {
long now = System.currentTimeMillis();
long prev = lastPrinted.get();
......