Package org.duracloud.mill.noop
Class NoopTaskProcessor
- java.lang.Object
-
- org.duracloud.mill.noop.NoopTaskProcessor
-
- All Implemented Interfaces:
TaskProcessor
public class NoopTaskProcessor extends Object implements TaskProcessor
A task processor which does nothing more than print a bit of output about the task. This is intended to be used for testing and experimentation.- Author:
- Bill Branan Date: 10/23/13
-
-
Constructor Summary
Constructors Constructor Description NoopTaskProcessor(org.duracloud.common.queue.task.Task task)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()Performs the processing indicated by the task.static longgetCompletedCount()
-
-
-
Method Detail
-
execute
public void execute() throws TaskExecutionFailedExceptionDescription copied from interface:TaskProcessorPerforms the processing indicated by the task. The underlying method should execute synchronously.- Specified by:
executein interfaceTaskProcessor- Throws:
TaskExecutionFailedException
-
getCompletedCount
public static long getCompletedCount()
-
-