X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=website%2Ffull_javadoc%2Fcompbio%2Fengine%2FAsyncExecutor.html;fp=website%2Ffull_javadoc%2Fcompbio%2Fengine%2FAsyncExecutor.html;h=d62bfca9e0d37cbad46d29c6f491facd8a8669e3;hb=da8c820a7fb2edecb190589f3dc9c362e57a2f24;hp=0000000000000000000000000000000000000000;hpb=0bbebf27d045b1345bc042bdf24ef2e6808df251;p=jabaws.git diff --git a/website/full_javadoc/compbio/engine/AsyncExecutor.html b/website/full_javadoc/compbio/engine/AsyncExecutor.html new file mode 100644 index 0000000..d62bfca --- /dev/null +++ b/website/full_javadoc/compbio/engine/AsyncExecutor.html @@ -0,0 +1,344 @@ + + + +
+ +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public interface AsyncExecutor
+An asynchronous executor engine, capable of running, cancelling, + obtaining results calculated by a native executable wrapper in Executable interface. + Implementation agnostic. Executables can be run either locally to the JVM or on the cluster. +
+ +
+
+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 jobId)
+
++ 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. |
+
+Method Detail | +
---|
+String submitJob(ConfiguredExecutable<?> executable) + throws JobSubmissionException+
+
JobSubmissionException
- if submission fails. This usually happens due to the problem on a server side.+ConfiguredExecutable<?> getResults(String jobId) + throws ResultNotAvailableException+
+
jobId
- 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.+String getWorkDirectory(String jobId)+
jobId
- unique job identifier
++boolean cleanup(String jobId)+
+
jobId
-
++boolean cancelJob(String jobId)+
+
+JobStatus getJobStatus(String jobId)+
+
String
- jobId - unique job identifier
+JobStatus
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +