updated javadoc
[jabaws.git] / website / full_javadoc / compbio / engine / cluster / drmaa / AsyncJobRunner.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\r
2 <!--NewPage-->\r
3 <HTML>\r
4 <HEAD>\r
5 <!-- Generated by javadoc (build 1.6.0_24) on Fri Aug 12 14:32:35 BST 2011 -->\r
6 <TITLE>\r
7 AsyncJobRunner\r
8 </TITLE>\r
9 \r
10 <META NAME="date" CONTENT="2011-08-12">\r
11 \r
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">\r
13 \r
14 <SCRIPT type="text/javascript">\r
15 function windowTitle()\r
16 {\r
17     if (location.href.indexOf('is-external=true') == -1) {\r
18         parent.document.title="AsyncJobRunner";\r
19     }\r
20 }\r
21 </SCRIPT>\r
22 <NOSCRIPT>\r
23 </NOSCRIPT>\r
24 \r
25 </HEAD>\r
26 \r
27 <BODY BGCOLOR="white" onload="windowTitle();">\r
28 <HR>\r
29 \r
30 \r
31 <!-- ========= START OF TOP NAVBAR ======= -->\r
32 <A NAME="navbar_top"><!-- --></A>\r
33 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>\r
34 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">\r
35 <TR>\r
36 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">\r
37 <A NAME="navbar_top_firstrow"><!-- --></A>\r
38 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">\r
39   <TR ALIGN="center" VALIGN="top">\r
40   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>\r
41   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>\r
42   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>\r
43   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/AsyncJobRunner.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>\r
44   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>\r
45   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>\r
46   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>\r
47   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>\r
48   </TR>\r
49 </TABLE>\r
50 </TD>\r
51 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>\r
52 </EM>\r
53 </TD>\r
54 </TR>\r
55 \r
56 <TR>\r
57 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
58 &nbsp;PREV CLASS&nbsp;\r
59 &nbsp;<A HREF="../../../../compbio/engine/cluster/drmaa/ClusterSession.html" title="class in compbio.engine.cluster.drmaa"><B>NEXT CLASS</B></A></FONT></TD>\r
60 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
61   <A HREF="../../../../index.html?compbio/engine/cluster/drmaa/AsyncJobRunner.html" target="_top"><B>FRAMES</B></A>  &nbsp;\r
62 &nbsp;<A HREF="AsyncJobRunner.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;\r
63 &nbsp;<SCRIPT type="text/javascript">\r
64   <!--\r
65   if(window==top) {\r
66     document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');\r
67   }\r
68   //-->\r
69 </SCRIPT>\r
70 <NOSCRIPT>\r
71   <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>\r
72 </NOSCRIPT>\r
73 \r
74 \r
75 </FONT></TD>\r
76 </TR>\r
77 <TR>\r
78 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
79   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>\r
80 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
81 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>\r
82 </TR>\r
83 </TABLE>\r
84 <A NAME="skip-navbar_top"></A>\r
85 <!-- ========= END OF TOP NAVBAR ========= -->\r
86 \r
87 <HR>\r
88 <!-- ======== START OF CLASS DATA ======== -->\r
89 <H2>\r
90 <FONT SIZE="-1">\r
91 compbio.engine.cluster.drmaa</FONT>\r
92 <BR>\r
93 Class AsyncJobRunner</H2>\r
94 <PRE>\r
95 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>\r
96   <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>compbio.engine.cluster.drmaa.AsyncJobRunner</B>\r
97 </PRE>\r
98 <DL>\r
99 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../compbio/engine/AsyncExecutor.html" title="interface in compbio.engine">AsyncExecutor</A></DD>\r
100 </DL>\r
101 <HR>\r
102 <DL>\r
103 <DT><PRE>public class <B>AsyncJobRunner</B><DT>extends <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A><DT>implements <A HREF="../../../../compbio/engine/AsyncExecutor.html" title="interface in compbio.engine">AsyncExecutor</A></DL>\r
104 </PRE>\r
105 \r
106 <P>\r
107 Single cluster job runner class\r
108 <P>\r
109 \r
110 <P>\r
111 <DL>\r
112 <DT><B>Version:</B></DT>\r
113   <DD>1.0 August 2009
114  
115           TODO after call to submitJob() no setters really work as the job
116           template gets deleted, this needs to be taken into account in this
117           class design!</DD>\r
118 <DT><B>Author:</B></DT>\r
119   <DD>pvtroshin</DD>\r
120 </DL>\r
121 <HR>\r
122 \r
123 <P>\r
124 \r
125 <!-- ======== CONSTRUCTOR SUMMARY ======== -->\r
126 \r
127 <A NAME="constructor_summary"><!-- --></A>\r
128 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
129 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
130 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">\r
131 <B>Constructor Summary</B></FONT></TH>\r
132 </TR>\r
133 <TR BGCOLOR="white" CLASS="TableRowColor">\r
134 <TD><CODE><B><A HREF="../../../../compbio/engine/cluster/drmaa/AsyncJobRunner.html#AsyncJobRunner()">AsyncJobRunner</A></B>()</CODE>\r
135 \r
136 <BR>\r
137 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>\r
138 </TR>\r
139 </TABLE>\r
140 &nbsp;\r
141 <!-- ========== METHOD SUMMARY =========== -->\r
142 \r
143 <A NAME="method_summary"><!-- --></A>\r
144 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
145 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
146 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">\r
147 <B>Method Summary</B></FONT></TH>\r
148 </TR>\r
149 <TR BGCOLOR="white" CLASS="TableRowColor">\r
150 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
151 <CODE>&nbsp;boolean</CODE></FONT></TD>\r
152 <TD><CODE><B><A HREF="../../../../compbio/engine/cluster/drmaa/AsyncJobRunner.html#cancelJob(java.lang.String)">cancelJob</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;jobId)</CODE>\r
153 \r
154 <BR>\r
155 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Stop running job.</TD>\r
156 </TR>\r
157 <TR BGCOLOR="white" CLASS="TableRowColor">\r
158 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
159 <CODE>&nbsp;boolean</CODE></FONT></TD>\r
160 <TD><CODE><B><A HREF="../../../../compbio/engine/cluster/drmaa/AsyncJobRunner.html#cleanup(java.lang.String)">cleanup</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;jobId)</CODE>\r
161 \r
162 <BR>\r
163 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove all files and a job directory for a jobid.</TD>\r
164 </TR>\r
165 <TR BGCOLOR="white" CLASS="TableRowColor">\r
166 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
167 <CODE>&nbsp;<A HREF="../../../../compbio/metadata/JobStatus.html" title="enum in compbio.metadata">JobStatus</A></CODE></FONT></TD>\r
168 <TD><CODE><B><A HREF="../../../../compbio/engine/cluster/drmaa/AsyncJobRunner.html#getJobStatus(java.lang.String)">getJobStatus</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;jobId)</CODE>\r
169 \r
170 <BR>\r
171 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This will never return clust.engine.JobStatus.CANCELLED as for sun grid
172  engine cancelled job is the same as failed.</TD>\r
173 </TR>\r
174 <TR BGCOLOR="white" CLASS="TableRowColor">\r
175 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
176 <CODE>&nbsp;<A HREF="../../../../compbio/engine/client/ConfiguredExecutable.html" title="interface in compbio.engine.client">ConfiguredExecutable</A>&lt;?&gt;</CODE></FONT></TD>\r
177 <TD><CODE><B><A HREF="../../../../compbio/engine/cluster/drmaa/AsyncJobRunner.html#getResults(java.lang.String)">getResults</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;jobId)</CODE>\r
178 \r
179 <BR>\r
180 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieve the results of the job.</TD>\r
181 </TR>\r
182 <TR BGCOLOR="white" CLASS="TableRowColor">\r
183 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
184 <CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>\r
185 <TD><CODE><B><A HREF="../../../../compbio/engine/cluster/drmaa/AsyncJobRunner.html#getWorkDirectory(java.lang.String)">getWorkDirectory</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;jobId)</CODE>\r
186 \r
187 <BR>\r
188 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>\r
189 </TR>\r
190 <TR BGCOLOR="white" CLASS="TableRowColor">\r
191 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
192 <CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>\r
193 <TD><CODE><B><A HREF="../../../../compbio/engine/cluster/drmaa/AsyncJobRunner.html#submitJob(compbio.engine.client.ConfiguredExecutable)">submitJob</A></B>(<A HREF="../../../../compbio/engine/client/ConfiguredExecutable.html" title="interface in compbio.engine.client">ConfiguredExecutable</A>&lt;?&gt;&nbsp;executable)</CODE>\r
194 \r
195 <BR>\r
196 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Submits job for the execution
197  Immediate execution is not guaranteed, this method puts the job in the queue.</TD>\r
198 </TR>\r
199 </TABLE>\r
200 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>\r
201 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
202 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">\r
203 <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>\r
204 </TR>\r
205 <TR BGCOLOR="white" CLASS="TableRowColor">\r
206 <TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>\r
207 </TR>\r
208 </TABLE>\r
209 &nbsp;\r
210 <P>\r
211 \r
212 <!-- ========= CONSTRUCTOR DETAIL ======== -->\r
213 \r
214 <A NAME="constructor_detail"><!-- --></A>\r
215 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
216 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
217 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">\r
218 <B>Constructor Detail</B></FONT></TH>\r
219 </TR>\r
220 </TABLE>\r
221 \r
222 <A NAME="AsyncJobRunner()"><!-- --></A><H3>\r
223 AsyncJobRunner</H3>\r
224 <PRE>\r
225 public <B>AsyncJobRunner</B>()</PRE>\r
226 <DL>\r
227 </DL>\r
228 \r
229 <!-- ============ METHOD DETAIL ========== -->\r
230 \r
231 <A NAME="method_detail"><!-- --></A>\r
232 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
233 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
234 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">\r
235 <B>Method Detail</B></FONT></TH>\r
236 </TR>\r
237 </TABLE>\r
238 \r
239 <A NAME="submitJob(compbio.engine.client.ConfiguredExecutable)"><!-- --></A><H3>\r
240 submitJob</H3>\r
241 <PRE>\r
242 public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>submitJob</B>(<A HREF="../../../../compbio/engine/client/ConfiguredExecutable.html" title="interface in compbio.engine.client">ConfiguredExecutable</A>&lt;?&gt;&nbsp;executable)\r
243                  throws <A HREF="../../../../compbio/metadata/JobSubmissionException.html" title="class in compbio.metadata">JobSubmissionException</A></PRE>\r
244 <DL>\r
245 <DD><B>Description copied from interface: <CODE><A HREF="../../../../compbio/engine/AsyncExecutor.html#submitJob(compbio.engine.client.ConfiguredExecutable)">AsyncExecutor</A></CODE></B></DD>\r
246 <DD>Submits job for the execution
247  Immediate execution is not guaranteed, this method puts the job in the queue. 
248  All it guarantees that the job will be eventually executed. 
249  The start of execution will depend on the number of jobs in the queue.\r
250 <P>\r
251 <DD><DL>\r
252 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../compbio/engine/AsyncExecutor.html#submitJob(compbio.engine.client.ConfiguredExecutable)">submitJob</A></CODE> in interface <CODE><A HREF="../../../../compbio/engine/AsyncExecutor.html" title="interface in compbio.engine">AsyncExecutor</A></CODE></DL>\r
253 </DD>\r
254 <DD><DL>\r
255 \r
256 <DT><B>Returns:</B><DD>unique job identifier\r
257 <DT><B>Throws:</B>\r
258 <DD><CODE><A HREF="../../../../compbio/metadata/JobSubmissionException.html" title="class in compbio.metadata">JobSubmissionException</A></CODE> - if submission fails. This usually happens due to the problem on a server side.</DL>\r
259 </DD>\r
260 </DL>\r
261 <HR>\r
262 \r
263 <A NAME="cancelJob(java.lang.String)"><!-- --></A><H3>\r
264 cancelJob</H3>\r
265 <PRE>\r
266 public boolean <B>cancelJob</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;jobId)</PRE>\r
267 <DL>\r
268 <DD><B>Description copied from interface: <CODE><A HREF="../../../../compbio/engine/AsyncExecutor.html#cancelJob(java.lang.String)">AsyncExecutor</A></CODE></B></DD>\r
269 <DD>Stop running job. Please not that this method does not guarantee to remove the job directory and files in it.\r
270 <P>\r
271 <DD><DL>\r
272 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../compbio/engine/AsyncExecutor.html#cancelJob(java.lang.String)">cancelJob</A></CODE> in interface <CODE><A HREF="../../../../compbio/engine/AsyncExecutor.html" title="interface in compbio.engine">AsyncExecutor</A></CODE></DL>\r
273 </DD>\r
274 <DD><DL>\r
275 \r
276 <DT><B>Returns:</B><DD>true if job was cancelled successfully, false otherwise</DL>\r
277 </DD>\r
278 </DL>\r
279 <HR>\r
280 \r
281 <A NAME="getJobStatus(java.lang.String)"><!-- --></A><H3>\r
282 getJobStatus</H3>\r
283 <PRE>\r
284 public <A HREF="../../../../compbio/metadata/JobStatus.html" title="enum in compbio.metadata">JobStatus</A> <B>getJobStatus</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;jobId)</PRE>\r
285 <DL>\r
286 <DD>This will never return clust.engine.JobStatus.CANCELLED as for sun grid
287  engine cancelled job is the same as failed. Cancelled jobs needs to be
288  tracked manually!\r
289 <P>\r
290 <DD><DL>\r
291 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../compbio/engine/AsyncExecutor.html#getJobStatus(java.lang.String)">getJobStatus</A></CODE> in interface <CODE><A HREF="../../../../compbio/engine/AsyncExecutor.html" title="interface in compbio.engine">AsyncExecutor</A></CODE></DL>\r
292 </DD>\r
293 <DD><DL>\r
294 \r
295 <DT><B>Returns:</B><DD>The JobStatus object representing the status of the job<DT><B>See Also:</B><DD><A HREF="../../../../compbio/metadata/JobStatus.html" title="enum in compbio.metadata"><CODE>JobStatus</CODE></A></DL>\r
296 </DD>\r
297 </DL>\r
298 <HR>\r
299 \r
300 <A NAME="cleanup(java.lang.String)"><!-- --></A><H3>\r
301 cleanup</H3>\r
302 <PRE>\r
303 public boolean <B>cleanup</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;jobId)</PRE>\r
304 <DL>\r
305 <DD><B>Description copied from interface: <CODE><A HREF="../../../../compbio/engine/AsyncExecutor.html#cleanup(java.lang.String)">AsyncExecutor</A></CODE></B></DD>\r
306 <DD>Remove all files and a job directory for a jobid.\r
307 <P>\r
308 <DD><DL>\r
309 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../compbio/engine/AsyncExecutor.html#cleanup(java.lang.String)">cleanup</A></CODE> in interface <CODE><A HREF="../../../../compbio/engine/AsyncExecutor.html" title="interface in compbio.engine">AsyncExecutor</A></CODE></DL>\r
310 </DD>\r
311 <DD><DL>\r
312 \r
313 <DT><B>Returns:</B><DD>true if job directory was successfully removed, false otherwise.</DL>\r
314 </DD>\r
315 </DL>\r
316 <HR>\r
317 \r
318 <A NAME="getResults(java.lang.String)"><!-- --></A><H3>\r
319 getResults</H3>\r
320 <PRE>\r
321 public <A HREF="../../../../compbio/engine/client/ConfiguredExecutable.html" title="interface in compbio.engine.client">ConfiguredExecutable</A>&lt;?&gt; <B>getResults</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;jobId)\r
322                                    throws <A HREF="../../../../compbio/metadata/ResultNotAvailableException.html" title="class in compbio.metadata">ResultNotAvailableException</A></PRE>\r
323 <DL>\r
324 <DD><B>Description copied from interface: <CODE><A HREF="../../../../compbio/engine/AsyncExecutor.html#getResults(java.lang.String)">AsyncExecutor</A></CODE></B></DD>\r
325 <DD>Retrieve the results of the job. Please not that current implementations of this method 
326  blocks if the task is running until the end of the calculation.\r
327 <P>\r
328 <DD><DL>\r
329 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../compbio/engine/AsyncExecutor.html#getResults(java.lang.String)">getResults</A></CODE> in interface <CODE><A HREF="../../../../compbio/engine/AsyncExecutor.html" title="interface in compbio.engine">AsyncExecutor</A></CODE></DL>\r
330 </DD>\r
331 <DD><DL>\r
332 <DT><B>Parameters:</B><DD><CODE>jobId</CODE> - job identifier obtained at the job submission\r
333 <DT><B>Returns:</B><DD>ConfiguredExecutable object from which result can be obtained\r
334 <DT><B>Throws:</B>\r
335 <DD><CODE><A HREF="../../../../compbio/metadata/ResultNotAvailableException.html" title="class in compbio.metadata">ResultNotAvailableException</A></CODE> - if the result is not available for whatever reason. 
336  Could be due to execution failure, or due to the results being removed from the server at 
337  the time of request.</DL>\r
338 </DD>\r
339 </DL>\r
340 <HR>\r
341 \r
342 <A NAME="getWorkDirectory(java.lang.String)"><!-- --></A><H3>\r
343 getWorkDirectory</H3>\r
344 <PRE>\r
345 public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getWorkDirectory</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;jobId)</PRE>\r
346 <DL>\r
347 <DD><DL>\r
348 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../compbio/engine/AsyncExecutor.html#getWorkDirectory(java.lang.String)">getWorkDirectory</A></CODE> in interface <CODE><A HREF="../../../../compbio/engine/AsyncExecutor.html" title="interface in compbio.engine">AsyncExecutor</A></CODE></DL>\r
349 </DD>\r
350 <DD><DL>\r
351 <DT><B>Parameters:</B><DD><CODE>jobId</CODE> - unique job identifier\r
352 <DT><B>Returns:</B><DD>task working directory</DL>\r
353 </DD>\r
354 </DL>\r
355 <!-- ========= END OF CLASS DATA ========= -->\r
356 <HR>\r
357 \r
358 \r
359 <!-- ======= START OF BOTTOM NAVBAR ====== -->\r
360 <A NAME="navbar_bottom"><!-- --></A>\r
361 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>\r
362 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">\r
363 <TR>\r
364 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">\r
365 <A NAME="navbar_bottom_firstrow"><!-- --></A>\r
366 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">\r
367   <TR ALIGN="center" VALIGN="top">\r
368   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>\r
369   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>\r
370   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>\r
371   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/AsyncJobRunner.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>\r
372   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>\r
373   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>\r
374   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>\r
375   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>\r
376   </TR>\r
377 </TABLE>\r
378 </TD>\r
379 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>\r
380 </EM>\r
381 </TD>\r
382 </TR>\r
383 \r
384 <TR>\r
385 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
386 &nbsp;PREV CLASS&nbsp;\r
387 &nbsp;<A HREF="../../../../compbio/engine/cluster/drmaa/ClusterSession.html" title="class in compbio.engine.cluster.drmaa"><B>NEXT CLASS</B></A></FONT></TD>\r
388 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
389   <A HREF="../../../../index.html?compbio/engine/cluster/drmaa/AsyncJobRunner.html" target="_top"><B>FRAMES</B></A>  &nbsp;\r
390 &nbsp;<A HREF="AsyncJobRunner.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;\r
391 &nbsp;<SCRIPT type="text/javascript">\r
392   <!--\r
393   if(window==top) {\r
394     document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');\r
395   }\r
396   //-->\r
397 </SCRIPT>\r
398 <NOSCRIPT>\r
399   <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>\r
400 </NOSCRIPT>\r
401 \r
402 \r
403 </FONT></TD>\r
404 </TR>\r
405 <TR>\r
406 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
407   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>\r
408 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
409 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>\r
410 </TR>\r
411 </TABLE>\r
412 <A NAME="skip-navbar_bottom"></A>\r
413 <!-- ======== END OF BOTTOM NAVBAR ======= -->\r
414 \r
415 <HR>\r
416 \r
417 </BODY>\r
418 </HTML>\r