|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.utils.ThreadSynchronization
org.jppf.jca.work.submission.JPPFSubmissionResult
public class JPPFSubmissionResult
This class encapsulates the results of an asynchronous tasks submission.
| Field Summary |
|---|
| Fields inherited from class org.jppf.utils.ThreadSynchronization |
|---|
stopped |
| Method Summary | |
|---|---|
void |
addSubmissionStatusListener(SubmissionStatusListener listener)
Add a listener to the list of status listeners. |
protected void |
fireStatusChangeEvent()
Notify all listeners of a change of status for this submision. |
String |
getId()
Get the unique id of this submission. |
List<JPPFTask> |
getResults()
Get the list of final results. |
SubmissionStatus |
getStatus()
Get the status of this submission. |
void |
removeSubmissionStatusListener(SubmissionStatusListener listener)
Remove a listener from the list of status listeners. |
void |
resultsReceived(TaskResultEvent event)
Called to notify that that results of a number of tasks have been received from the server. |
void |
setStatus(SubmissionStatus status)
Set the status of this submission. |
void |
waitForResults(long timeout)
Wait until all results have been received, or the specified timeout expires, whichever happens first. |
| Methods inherited from class org.jppf.utils.ThreadSynchronization |
|---|
goToSleep, goToSleep, goToSleep, isStopped, setStopped, wakeUp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void resultsReceived(TaskResultEvent event)
resultsReceived in interface TaskResultListenerevent - the event that encapsulates the tasks that were received and related information.TaskResultListener.resultsReceived(org.jppf.client.event.TaskResultEvent)public void waitForResults(long timeout)
timeout - the maximum time to wait for the result, 0 or less means no expiration.public List<JPPFTask> getResults()
public SubmissionStatus getStatus()
SubmissionStatus enumerated value.public void setStatus(SubmissionStatus status)
status - a SubmissionStatus enumerated value.public String getId()
public void addSubmissionStatusListener(SubmissionStatusListener listener)
listener - the listener to add.public void removeSubmissionStatusListener(SubmissionStatusListener listener)
listener - the listener to remove.protected void fireStatusChangeEvent()
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||