|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.EventObject
org.jppf.client.event.TaskResultEvent
public class TaskResultEvent
Event object used to notify interested listeners that a list of task results have been received from the server.
| Field Summary |
|---|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
TaskResultEvent(List<JPPFTask> taskList)
Initialize this event with a specified list of tasks. |
|
TaskResultEvent(List<JPPFTask> taskList,
int startIndex)
Deprecated. the startIndex is not used any more to determine each task's position. Use JPPFTask.getPosition() instead. |
|
TaskResultEvent(Throwable throwable)
Initialize this event with a throwable eventually raised while receiving the results. |
|
| Method Summary | |
|---|---|
int |
getStartIndex()
Deprecated. use JPPFTask.getPosition() instead. |
List<JPPFTask> |
getTaskList()
Get the list of tasks whose results have been received from the server. |
Throwable |
getThrowable()
Get the throwable eventually raised while receiving the results. |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TaskResultEvent(List<JPPFTask> taskList)
taskList - the list of tasks whose results have been received from the server.public TaskResultEvent(Throwable throwable)
TaskResultListener can use this information to reset its state before the job is resubmitted.
throwable - the throwable that was raised while receiving the results.
public TaskResultEvent(List<JPPFTask> taskList,
int startIndex)
JPPFTask.getPosition() instead.
taskList - the list of tasks whose results have been received from the server.startIndex - index of the first task in the list, relative to the initial execution
request. Used to enable proper ordering of the results.| Method Detail |
|---|
public List<JPPFTask> getTaskList()
JPPFTask.getPosition() for each task.
JPPFTask instances.public int getStartIndex()
JPPFTask.getPosition() instead.
public Throwable getThrowable()
Throwable instance, or null if no exception or error was raised.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||