X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=website%2Ffull_javadoc%2Fcompbio%2Fengine%2FSyncExecutor.html;fp=website%2Ffull_javadoc%2Fcompbio%2Fengine%2FSyncExecutor.html;h=079aa527168c6f39339b5e42f724bcd4c406c445;hb=da8c820a7fb2edecb190589f3dc9c362e57a2f24;hp=0000000000000000000000000000000000000000;hpb=0bbebf27d045b1345bc042bdf24ef2e6808df251;p=jabaws.git diff --git a/website/full_javadoc/compbio/engine/SyncExecutor.html b/website/full_javadoc/compbio/engine/SyncExecutor.html new file mode 100644 index 0000000..079aa52 --- /dev/null +++ b/website/full_javadoc/compbio/engine/SyncExecutor.html @@ -0,0 +1,337 @@ + + + + + + +SyncExecutor + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +compbio.engine +
+Interface SyncExecutor

+
+
All Known Implementing Classes:
JobRunner, LocalRunner
+
+
+
+
public interface SyncExecutor
+ + +

+Synchronous executor, is an engine to run the Executable synchronously. +

+ +

+

+
Author:
+
pvtroshin + Date October 2009
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleancancelJob() + +
+          Stops running job.
+ booleancleanup() + +
+          Clean up after the job
+ voidexecuteJob() + +
+          Execute the job
+ JobStatusgetJobStatus() + +
+          Query the status of the job by its id.
+ StringgetWorkDirectory() + +
+           
+ ConfiguredExecutable<?>waitForResult() + +
+          Call to this method block for as long as it is required for an executable to finish its job.
+  +

+ + + + + + + + +
+Method Detail
+ +

+executeJob

+
+void executeJob()
+                throws JobSubmissionException
+
+
Execute the job +

+

+ +
Throws: +
JobSubmissionException - if submission fails
+
+
+
+ +

+cleanup

+
+boolean cleanup()
+
+
Clean up after the job +

+

+ +
Returns:
true if all the files created by this job have been removed successfully, false otherwise
+
+
+
+ +

+waitForResult

+
+ConfiguredExecutable<?> waitForResult()
+                                      throws JobExecutionException
+
+
Call to this method block for as long as it is required for an executable to finish its job. + If the calculation has been completed already, the this method returns results immediately. + This could return the result directly, but that would be type unsafe +

+

+ +
Returns:
object from wich the result can be obtained +
Throws: +
JobExecutionException
+
+
+
+ +

+getWorkDirectory

+
+String getWorkDirectory()
+
+
+ +
Returns:
working directory if the task
+
+
+
+ +

+cancelJob

+
+boolean cancelJob()
+
+
Stops running job. + Clean up is not performed. +

+

+ +
Returns:
true if job was cancelled successfully, false otherwise
+
+
+
+ +

+getJobStatus

+
+JobStatus getJobStatus()
+
+
Query the status of the job by its id. +

+

+ +
Returns:
- JobStatus
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + +