|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eobjects.analyzer.job.runner.AnalysisResultFutureImpl
public final class AnalysisResultFutureImpl
| Constructor Summary | |
|---|---|
AnalysisResultFutureImpl(Queue<JobAndResult> resultQueue,
StatusAwareTaskListener jobCompletionListener,
ErrorAware errorAware)
|
|
| 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. |
Date |
getCreationDate()
Gets the time that the results were created |
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 |
isCancelled()
|
boolean |
isDone()
|
boolean |
isErrornous()
|
boolean |
isSuccessful()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnalysisResultFutureImpl(Queue<JobAndResult> resultQueue,
StatusAwareTaskListener jobCompletionListener,
ErrorAware errorAware)
| Method Detail |
|---|
public boolean isDone()
isDone in interface AnalysisResultFuturepublic Date getCreationDate()
AnalysisResult
getCreationDate in interface AnalysisResultpublic void cancel()
AnalysisResultFuture
cancel in interface AnalysisResultFuture
public void await(long timeout,
TimeUnit timeUnit)
AnalysisResultFuture
await in interface AnalysisResultFuturepublic void await()
AnalysisResultFuture
await in interface AnalysisResultFuture
public List<AnalyzerResult> getResults()
throws IllegalStateException
AnalysisResultFuture
getResults in interface AnalysisResultFuturegetResults in interface AnalysisResultIllegalStateException - if the analysis did not go well (use isSuccesfull() or
isErrornous() to check)
public AnalyzerResult getResult(ComponentJob componentJob)
throws IllegalStateException
AnalysisResultFuture
getResult in interface AnalysisResultFuturegetResult 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)
public Map<ComponentJob,AnalyzerResult> getResultMap()
throws IllegalStateException
AnalysisResultFuture
getResultMap in interface AnalysisResultFuturegetResultMap in interface AnalysisResultIllegalStateException - if the analysis did not go well (use isSuccesfull() or
isErrornous() to check)public boolean isSuccessful()
isSuccessful in interface AnalysisResultFuturepublic List<Throwable> getErrors()
getErrors in interface AnalysisResultFuturegetErrors in interface ErrorAwarepublic boolean isErrornous()
isErrornous in interface ErrorAwarepublic JobStatus getStatus()
getStatus in interface AnalysisResultFuturepublic boolean isCancelled()
isCancelled in interface ErrorAware
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||