X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=website%2Ffull_javadoc%2Fcompbio%2Fengine%2Flocal%2FAsyncLocalRunner.html;fp=website%2Ffull_javadoc%2Fcompbio%2Fengine%2Flocal%2FAsyncLocalRunner.html;h=c9c2d393fa2e208cd8374f1127904516dd6f34c3;hb=da8c820a7fb2edecb190589f3dc9c362e57a2f24;hp=0000000000000000000000000000000000000000;hpb=0bbebf27d045b1345bc042bdf24ef2e6808df251;p=jabaws.git diff --git a/website/full_javadoc/compbio/engine/local/AsyncLocalRunner.html b/website/full_javadoc/compbio/engine/local/AsyncLocalRunner.html new file mode 100644 index 0000000..c9c2d39 --- /dev/null +++ b/website/full_javadoc/compbio/engine/local/AsyncLocalRunner.html @@ -0,0 +1,402 @@ + + + +
+ +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object + compbio.engine.local.AsyncLocalRunner ++
public final class AsyncLocalRunner
+
+Constructor Summary | +|
---|---|
AsyncLocalRunner()
+
++ |
+
+Method Summary | +|
---|---|
+ boolean |
+cancelJob(String jobId)
+
++ Stop running job. |
+
+ boolean |
+cleanup(String jobId)
+
++ Remove all files and a job directory for a jobid. |
+
+ JobStatus |
+getJobStatus(String jobId)
+
++ Query the status of the job |
+
+ ConfiguredExecutable<?> |
+getResults(String taskId)
+
++ Retrieve the results of the job. |
+
+ String |
+getWorkDirectory(String jobId)
+
++ |
+
+ String |
+submitJob(ConfiguredExecutable<?> executable)
+
++ Submits job for the execution + Immediate execution is not guaranteed, this method puts the job in the queue. |
+
Methods inherited from class java.lang.Object | +
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
---|
+public AsyncLocalRunner()+
+Method Detail | +
---|
+public String getWorkDirectory(String jobId)+
getWorkDirectory
in interface AsyncExecutor
jobId
- unique job identifier
++public boolean cancelJob(String jobId)+
AsyncExecutor
+
cancelJob
in interface AsyncExecutor
+public JobStatus getJobStatus(String jobId)+
AsyncExecutor
+
getJobStatus
in interface AsyncExecutor
JobStatus
+public String submitJob(ConfiguredExecutable<?> executable) + throws JobSubmissionException+
AsyncExecutor
+
submitJob
in interface AsyncExecutor
JobSubmissionException
- if submission fails. This usually happens due to the problem on a server side.+public boolean cleanup(String jobId)+
AsyncExecutor
+
cleanup
in interface AsyncExecutor
jobId
-
++public ConfiguredExecutable<?> getResults(String taskId) + throws ResultNotAvailableException+
AsyncExecutor
+
getResults
in interface AsyncExecutor
taskId
- job identifier obtained at the job submission
+ResultNotAvailableException
- if the result is not available for whatever reason.
+ Could be due to execution failure, or due to the results being removed from the server at
+ the time of request.
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +