This is an automated email from the ASF dual-hosted git repository. martin_s pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-spring-taskqueue.git
commit de3d4f33a3f3dd755946f7c4fc0e12407bd4c1de Author: Olivier Lamy <ol...@apache.org> AuthorDate: Sat Apr 21 15:32:03 2012 +0000 no more need of plexus stuff git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1328694 13f79535-47bb-0310-9956-ffa450edef68 --- .../redback/components/taskqueue/TaskEntryEvaluator.java | 2 -- .../redback/components/taskqueue/TaskExitEvaluator.java | 2 -- .../archiva/redback/components/taskqueue/TaskQueue.java | 15 +++++---------- .../components/taskqueue/TaskViabilityEvaluator.java | 1 - .../components/taskqueue/execution/TaskQueueExecutor.java | 2 -- 5 files changed, 5 insertions(+), 17 deletions(-) diff --git a/src/main/java/org/apache/archiva/redback/components/taskqueue/TaskEntryEvaluator.java b/src/main/java/org/apache/archiva/redback/components/taskqueue/TaskEntryEvaluator.java index 7d9825a..86ff674 100644 --- a/src/main/java/org/apache/archiva/redback/components/taskqueue/TaskEntryEvaluator.java +++ b/src/main/java/org/apache/archiva/redback/components/taskqueue/TaskEntryEvaluator.java @@ -26,8 +26,6 @@ package org.apache.archiva.redback.components.taskqueue; */ public interface TaskEntryEvaluator { - String ROLE = TaskEntryEvaluator.class.getName(); - boolean evaluate( Task task ) throws TaskQueueException; } diff --git a/src/main/java/org/apache/archiva/redback/components/taskqueue/TaskExitEvaluator.java b/src/main/java/org/apache/archiva/redback/components/taskqueue/TaskExitEvaluator.java index ce6a04e..5e68aa0 100644 --- a/src/main/java/org/apache/archiva/redback/components/taskqueue/TaskExitEvaluator.java +++ b/src/main/java/org/apache/archiva/redback/components/taskqueue/TaskExitEvaluator.java @@ -26,8 +26,6 @@ package org.apache.archiva.redback.components.taskqueue; */ public interface TaskExitEvaluator { - String ROLE = TaskExitEvaluator.class.getName(); - boolean evaluate( Task task ) throws TaskQueueException; } diff --git a/src/main/java/org/apache/archiva/redback/components/taskqueue/TaskQueue.java b/src/main/java/org/apache/archiva/redback/components/taskqueue/TaskQueue.java index e853fcb..68bf9a3 100644 --- a/src/main/java/org/apache/archiva/redback/components/taskqueue/TaskQueue.java +++ b/src/main/java/org/apache/archiva/redback/components/taskqueue/TaskQueue.java @@ -31,15 +31,13 @@ import java.util.concurrent.TimeUnit; */ public interface TaskQueue { - String ROLE = TaskQueue.class.getName(); // ---------------------------------------------------------------------- // Queue operations // ---------------------------------------------------------------------- /** - * @param task - * The task to add to the queue. + * @param task The task to add to the queue. * @return Returns true if the task was accepted into the queue. */ boolean put( Task task ) @@ -50,7 +48,7 @@ public interface TaskQueue boolean remove( Task task ) throws ClassCastException, NullPointerException; - + boolean removeAll( List tasks ) throws ClassCastException, NullPointerException; @@ -64,13 +62,10 @@ public interface TaskQueue /** * Retrieves and removes the head of the queue, waiting at most timeout timeUnit when no element is available. * - * @param timeout - * time to wait, in timeUnit units - * @param timeUnit - * how to interpret the timeout parameter. + * @param timeout time to wait, in timeUnit units + * @param timeUnit how to interpret the timeout parameter. * @return the head of the queue, or null if the timeout elapsed - * @throws InterruptedException - * when this thread is interrupted while waiting + * @throws InterruptedException when this thread is interrupted while waiting */ Task poll( int timeout, TimeUnit timeUnit ) throws InterruptedException; diff --git a/src/main/java/org/apache/archiva/redback/components/taskqueue/TaskViabilityEvaluator.java b/src/main/java/org/apache/archiva/redback/components/taskqueue/TaskViabilityEvaluator.java index dd31ec9..84eeafe 100644 --- a/src/main/java/org/apache/archiva/redback/components/taskqueue/TaskViabilityEvaluator.java +++ b/src/main/java/org/apache/archiva/redback/components/taskqueue/TaskViabilityEvaluator.java @@ -28,7 +28,6 @@ import java.util.Collection; */ public interface TaskViabilityEvaluator { - String ROLE = TaskViabilityEvaluator.class.getName(); /** * @param tasks The tasks to evaluate diff --git a/src/main/java/org/apache/archiva/redback/components/taskqueue/execution/TaskQueueExecutor.java b/src/main/java/org/apache/archiva/redback/components/taskqueue/execution/TaskQueueExecutor.java index 0e9e326..2303715 100644 --- a/src/main/java/org/apache/archiva/redback/components/taskqueue/execution/TaskQueueExecutor.java +++ b/src/main/java/org/apache/archiva/redback/components/taskqueue/execution/TaskQueueExecutor.java @@ -22,14 +22,12 @@ package org.apache.archiva.redback.components.taskqueue.execution; import org.apache.archiva.redback.components.taskqueue.Task; - /** * @author <a href="mailto:tryg...@inamo.no">Trygve Laugstøl</a> * @version $Id$ */ public interface TaskQueueExecutor { - String ROLE = TaskQueueExecutor.class.getName(); /** * Returns the currently executing task. -- To stop receiving notification emails like this one, please contact marti...@apache.org.