|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AnalysisResultFuture
Represents the result of an analysis. The analysis may still be running,
which is why this interface contains the isDone(), await() and
await(long,TimeUnit) methods.
When the result is done it may either be successful or errornous. Clients can
find out using the isSuccessful() or isErrornous() methods.
If succesful, the results can be retrieved like specified in the
AnalysisResult interface - using the getResults() method. If
errornous the error messages can be retrieved using the getErrors() method.
If the analysis was only partly errornous, there may be both result and
errors, but isSuccesful() will return false.
| Method Summary | |
|---|---|
void |
await()
Blocks the current thread until interrupted, most probably because the job has ended. |
void |
await(long timeout,
TimeUnit timeUnit)
Blocks the current thread until interrupted, either because the job has ended or because it has timed out. |
void |
cancel()
Cancels the job, if it is still running. |
List<Throwable> |
getErrors()
|
AnalyzerResult |
getResult(ComponentJob componentJob)
Finds (and waits if nescesary) the results of a single Analyzer. |
Map<ComponentJob,AnalyzerResult> |
getResultMap()
Finds (and waits if nescesary) the results mapped to the Analyzer jobs |
List<AnalyzerResult> |
getResults()
Finds (and waits if nescesary) the results of this analysis. |
JobStatus |
getStatus()
|
boolean |
isDone()
|
boolean |
isSuccessful()
|
| Methods inherited from interface org.eobjects.analyzer.job.runner.ErrorAware |
|---|
isCancelled, isErrornous |
| Methods inherited from interface org.eobjects.analyzer.result.AnalysisResult |
|---|
getCreationDate |
| Method Detail |
|---|
boolean isDone()
void await()
void cancel()
void await(long timeout,
TimeUnit timeUnit)
timeout - timeUnit - boolean isSuccessful()
JobStatus getStatus()
List<AnalyzerResult> getResults()
throws IllegalStateException
getResults in interface AnalysisResultIllegalStateException - if the analysis did not go well (use isSuccesfull() or
isErrornous() to check)
AnalyzerResult getResult(ComponentJob componentJob)
throws IllegalStateException
getResult in interface AnalysisResultcomponentJob - the component (either analyzer or explorer) job to find the
result for
IllegalStateException - if the analysis did not go well (use isSuccesfull() or
isErrornous() to check)
Map<ComponentJob,AnalyzerResult> getResultMap()
throws IllegalStateException
getResultMap in interface AnalysisResultIllegalStateException - if the analysis did not go well (use isSuccesfull() or
isErrornous() to check)List<Throwable> getErrors()
getErrors in interface ErrorAware
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||