|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Task
A task to execute.
The client may decide when or how to execute the task based on its tags. A task can be any job, but is primarily intended for running tests and/or supplying more tasks to the client. A framework can supply more tasks to the client in the returned an array of Tasks (which can be empty if there's no more work to do.)
Method Summary | |
---|---|
Task[] |
execute(EventHandler eventHandler,
Logger[] loggers)
Executes this task, possibly returning to the client new tasks to execute. |
java.lang.String[] |
tags()
A possibly zero-length array of string tags associated with this task. |
TaskDef |
taskDef()
Returns the TaskDef that was used to request this Task . |
Method Detail |
---|
java.lang.String[] tags()
A task may be tagged, for example, with a string that indicates it consumes a lot of CPU time. Users can configure the client to only run, say, three such CPU-intensive tasks concurrently.
Task[] execute(EventHandler eventHandler, Logger[] loggers)
eventHandler
- an event handler to which to fire events during the runloggers
- an array of loggers to which to emit log messages during the run
TaskDef taskDef()
TaskDef
that was used to request this Task
.
TaskDef
that was used to request this Task
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |