Package jadex.micro.examples.mandelbrot
Class ServicePoolManager.AllocationData
- java.lang.Object
- 
- jadex.micro.examples.mandelbrot.ServicePoolManager.AllocationData
 
- 
- Enclosing class:
- ServicePoolManager
 
 public static class ServicePoolManager.AllocationData extends java.lang.ObjectHandler for a single task allocation.
- 
- 
Field SummaryFields Modifier and Type Field Description protected intopenThe counter for open tasks, i.e.protected IntermediateFutureresultThe result future.protected booleanretryThe retry flag, i.e.protected java.lang.ObjectuserThe user data (if any).
 - 
Constructor SummaryConstructors Constructor Description AllocationData(int open, boolean retry, java.lang.Object user)Create a new allocation data.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IntermediateFuturegetResult()Get the result.java.lang.ObjectgetUserData()Get the user data.booleanisRetry()Test if the retry flag is set.voidtaskFailed(java.lang.Exception e)A task has failed and is not retried.voidtaskFinished(java.lang.Object result)Add an intermediate result.
 
- 
- 
- 
Field Detail- 
openprotected int open The counter for open tasks, i.e. number of assigned and unassigned tasks that are not yet finished.
 - 
retryprotected boolean retry The retry flag, i.e. if failed tasks should be assigned again.
 - 
userprotected java.lang.Object user The user data (if any).
 - 
resultprotected IntermediateFuture result The result future.
 
- 
 - 
Method Detail- 
getUserDatapublic java.lang.Object getUserData() Get the user data.- Returns:
- The user data (if any).
 
 - 
getResultpublic IntermediateFuture getResult() Get the result.- Returns:
- The intermediate results future.
 
 - 
taskFinishedpublic void taskFinished(java.lang.Object result) Add an intermediate result.
 - 
taskFailedpublic void taskFailed(java.lang.Exception e) A task has failed and is not retried.
 - 
isRetrypublic boolean isRetry() Test if the retry flag is set.- Returns:
- True, if the retry flag is set.
 
 
- 
 
-