1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5
<!-- Generated by javadoc (build 1.4.2_04) on Wed Apr 13 20:01:10 MEST 2005 -->
10
<META NAME="keywords" CONTENT="org.ggf.drmaa.Session interface">
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
14
<SCRIPT type="text/javascript">
15
function windowTitle()
17
parent.document.title="Session";
23
<BODY BGCOLOR="white" onload="windowTitle();">
26
<!-- ========= START OF TOP NAVBAR ======= -->
27
<A NAME="navbar_top"><!-- --></A>
28
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
29
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
31
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
32
<A NAME="navbar_top_firstrow"><!-- --></A>
33
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
34
<TR ALIGN="center" VALIGN="top">
35
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
36
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
37
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
38
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
39
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
40
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
41
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
45
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
51
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
52
<A HREF="../../../org/ggf/drmaa/ResumeInconsistentStateException.html" title="class in org.ggf.drmaa"><B>PREV CLASS</B></A>
53
<A HREF="../../../org/ggf/drmaa/SessionException.html" title="class in org.ggf.drmaa"><B>NEXT CLASS</B></A></FONT></TD>
54
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
55
<A HREF="../../../index.html" target="_top"><B>FRAMES</B></A>
56
<A HREF="Session.html" target="_top"><B>NO FRAMES</B></A>
57
<SCRIPT type="text/javascript">
60
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
65
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
71
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
72
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
73
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
74
DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
77
<A NAME="skip-navbar_top"></A>
78
<!-- ========= END OF TOP NAVBAR ========= -->
81
<!-- ======== START OF CLASS DATA ======== -->
86
Interface Session</H2>
88
<DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../com/sun/grid/drmaa/SessionImpl.html" title="class in com.sun.grid.drmaa">SessionImpl</A></DD>
92
<DT>public interface <B>Session</B></DL>
95
<P>This interface represents a the operations available for interacting with the
96
DRM. In DRMAA, (almost) all DRM interaction occur within the context of a
97
session. The spec also strongly recommends that a DRMAA implementation not
98
allow concurrent sessions. Since DRMAA has no facility for user authentication
99
or authorization, most DRMAA implementations will likely only support one
100
session per implementation instance.</p>
101
<p>In order to use a Session, it must first be initialized. Once initialized it
102
is the responsibility of the programmer to ensure that the session also be
103
explicitly terminated. Otherwise, session artifacts may be left behind on
104
the client and/or server. A handy way to make sure the Session is terminated is
105
to set up a shutdown hook to call the exit() method on the active session.</p>
106
<p>To get a Session implementation appropriate for the DRM in use, one uses the
107
SessionFactory.getSession() method.</p>
109
<pre>public static void main (String[] args) throws Exception {
110
SessionFactory factory = SessionFactory.getFactory ();
111
Session session = factory.getSession ();
115
JobTemplate jt = session.createJobTemplate ();
116
jt.setRemoteCommand ("sleeper.sh");
117
jt.setArgs (new String[] {"5"});
119
String id = session.runJob (jt);
121
session.deleteJobTemplate (jt);
123
while (session.getJobProgramStatus (id) != Session.RUNNING) {
127
System.out.println ("Job " + id + " is now running.");
129
session.control (id, Session.SUSPEND);
131
session.control (id, Session.RELEASE);
133
JobInfo info = session.wait (id, Session.TIMEOUT_WAIT_FOREVER);
135
System.out.println ("Job " + info.getJobId () + " exited with status: " +
136
info.getExitStatus ());
140
catch (DrmaaException e) {
141
System.out.println ("Error: " + e.getMessage ());
149
<DT><B>Since:</B></DT>
151
<DT><B>Author:</B></DT>
152
<DD>dan.templeton@sun.com</DD>
153
<DT><B>See Also:</B><DD><CODE>Runtime.addShutdownHook(java.lang.Thread)</CODE>,
154
<A HREF="../../../org/ggf/drmaa/SessionFactory.html" title="class in org.ggf.drmaa"><CODE>SessionFactory</CODE></A>,
156
href="http://gridengine.sunsource.net/project/gridengine/howto/drmaa_java.html">Grid
157
Engine DRMAA Java[TM] Language Binding HowTo</a></DL>
161
<!-- ======== NESTED CLASS SUMMARY ======== -->
164
<!-- =========== FIELD SUMMARY =========== -->
166
<A NAME="field_summary"><!-- --></A>
167
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
168
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
169
<TD COLSPAN=2><FONT SIZE="+2">
170
<B>Field Summary</B></FONT></TD>
172
<TR BGCOLOR="white" CLASS="TableRowColor">
173
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
174
<CODE>static int</CODE></FONT></TD>
175
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#DONE">DONE</A></B></CODE>
178
Job has finished normally</TD>
180
<TR BGCOLOR="white" CLASS="TableRowColor">
181
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
182
<CODE>static int</CODE></FONT></TD>
183
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#FAILED">FAILED</A></B></CODE>
186
Job finished, but terminated abnormally</TD>
188
<TR BGCOLOR="white" CLASS="TableRowColor">
189
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
190
<CODE>static int</CODE></FONT></TD>
191
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#HOLD">HOLD</A></B></CODE>
194
Put the job on hold</TD>
196
<TR BGCOLOR="white" CLASS="TableRowColor">
197
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
198
<CODE>static java.lang.String</CODE></FONT></TD>
199
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#JOB_IDS_SESSION_ALL">JOB_IDS_SESSION_ALL</A></B></CODE>
202
All jobs submitted during this DRMAA session</TD>
204
<TR BGCOLOR="white" CLASS="TableRowColor">
205
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
206
<CODE>static java.lang.String</CODE></FONT></TD>
207
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#JOB_IDS_SESSION_ANY">JOB_IDS_SESSION_ANY</A></B></CODE>
210
Any job from the session</TD>
212
<TR BGCOLOR="white" CLASS="TableRowColor">
213
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
214
<CODE>static int</CODE></FONT></TD>
215
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#QUEUED_ACTIVE">QUEUED_ACTIVE</A></B></CODE>
218
Job is queued and active</TD>
220
<TR BGCOLOR="white" CLASS="TableRowColor">
221
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
222
<CODE>static int</CODE></FONT></TD>
223
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#RELEASE">RELEASE</A></B></CODE>
226
Release the hold on the job</TD>
228
<TR BGCOLOR="white" CLASS="TableRowColor">
229
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
230
<CODE>static int</CODE></FONT></TD>
231
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#RESUME">RESUME</A></B></CODE>
234
Resume the job</TD>
236
<TR BGCOLOR="white" CLASS="TableRowColor">
237
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
238
<CODE>static int</CODE></FONT></TD>
239
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#RUNNING">RUNNING</A></B></CODE>
242
Job is running</TD>
244
<TR BGCOLOR="white" CLASS="TableRowColor">
245
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
246
<CODE>static int</CODE></FONT></TD>
247
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#SUSPEND">SUSPEND</A></B></CODE>
250
Suspend the job</TD>
252
<TR BGCOLOR="white" CLASS="TableRowColor">
253
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
254
<CODE>static int</CODE></FONT></TD>
255
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#SYSTEM_ON_HOLD">SYSTEM_ON_HOLD</A></B></CODE>
258
Job is queued and in system hold</TD>
260
<TR BGCOLOR="white" CLASS="TableRowColor">
261
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
262
<CODE>static int</CODE></FONT></TD>
263
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#SYSTEM_SUSPENDED">SYSTEM_SUSPENDED</A></B></CODE>
266
Job is system suspended</TD>
268
<TR BGCOLOR="white" CLASS="TableRowColor">
269
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
270
<CODE>static int</CODE></FONT></TD>
271
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#TERMINATE">TERMINATE</A></B></CODE>
274
Kill the job</TD>
276
<TR BGCOLOR="white" CLASS="TableRowColor">
277
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
278
<CODE>static long</CODE></FONT></TD>
279
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#TIMEOUT_NO_WAIT">TIMEOUT_NO_WAIT</A></B></CODE>
282
Return immediately if no result is available</TD>
284
<TR BGCOLOR="white" CLASS="TableRowColor">
285
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
286
<CODE>static long</CODE></FONT></TD>
287
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#TIMEOUT_WAIT_FOREVER">TIMEOUT_WAIT_FOREVER</A></B></CODE>
290
Wait indefinitely for a result</TD>
292
<TR BGCOLOR="white" CLASS="TableRowColor">
293
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
294
<CODE>static int</CODE></FONT></TD>
295
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#UNDETERMINED">UNDETERMINED</A></B></CODE>
298
Job status cannot be determined</TD>
300
<TR BGCOLOR="white" CLASS="TableRowColor">
301
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
302
<CODE>static int</CODE></FONT></TD>
303
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#USER_ON_HOLD">USER_ON_HOLD</A></B></CODE>
306
Job is queued and in user hold</TD>
308
<TR BGCOLOR="white" CLASS="TableRowColor">
309
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
310
<CODE>static int</CODE></FONT></TD>
311
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#USER_SUSPENDED">USER_SUSPENDED</A></B></CODE>
314
Job is user suspended</TD>
316
<TR BGCOLOR="white" CLASS="TableRowColor">
317
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
318
<CODE>static int</CODE></FONT></TD>
319
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#USER_SYSTEM_ON_HOLD">USER_SYSTEM_ON_HOLD</A></B></CODE>
322
Job is queued and in user and system hold</TD>
324
<TR BGCOLOR="white" CLASS="TableRowColor">
325
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
326
<CODE>static int</CODE></FONT></TD>
327
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#USER_SYSTEM_SUSPENDED">USER_SYSTEM_SUSPENDED</A></B></CODE>
330
Job is user suspended</TD>
334
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
337
<!-- ========== METHOD SUMMARY =========== -->
339
<A NAME="method_summary"><!-- --></A>
340
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
341
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
342
<TD COLSPAN=2><FONT SIZE="+2">
343
<B>Method Summary</B></FONT></TD>
345
<TR BGCOLOR="white" CLASS="TableRowColor">
346
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
347
<CODE> void</CODE></FONT></TD>
348
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#control(java.lang.String, int)">control</A></B>(java.lang.String jobId,
349
int action)</CODE>
352
Hold, release, suspend, resume, or kill the job identified by <i>jobId</i>.</TD>
354
<TR BGCOLOR="white" CLASS="TableRowColor">
355
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
356
<CODE> <A HREF="../../../org/ggf/drmaa/JobTemplate.html" title="class in org.ggf.drmaa">JobTemplate</A></CODE></FONT></TD>
357
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#createJobTemplate()">createJobTemplate</A></B>()</CODE>
360
Get a new job template.</TD>
362
<TR BGCOLOR="white" CLASS="TableRowColor">
363
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
364
<CODE> void</CODE></FONT></TD>
365
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#deleteJobTemplate(org.ggf.drmaa.JobTemplate)">deleteJobTemplate</A></B>(<A HREF="../../../org/ggf/drmaa/JobTemplate.html" title="class in org.ggf.drmaa">JobTemplate</A> jt)</CODE>
368
Deallocate a job template.</TD>
370
<TR BGCOLOR="white" CLASS="TableRowColor">
371
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
372
<CODE> void</CODE></FONT></TD>
373
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#exit()">exit</A></B>()</CODE>
376
Disengage from DRM and allow the DRMAA implementation to perform
377
any necessary internal cleanup.</TD>
379
<TR BGCOLOR="white" CLASS="TableRowColor">
380
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
381
<CODE> java.lang.String</CODE></FONT></TD>
382
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#getContact()">getContact</A></B>()</CODE>
385
If called before init(), this method returns a comma delimited String containing
386
the contact Strings available from the default DRMAA
387
implementation, one element per DRM system available.</TD>
389
<TR BGCOLOR="white" CLASS="TableRowColor">
390
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
391
<CODE> java.lang.String</CODE></FONT></TD>
392
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#getDrmaaImplementation()">getDrmaaImplementation</A></B>()</CODE>
395
If called before init(), this method returns a comma delimited list of DRMAA
396
implementations, one element for each DRMAA implementation provided.</TD>
398
<TR BGCOLOR="white" CLASS="TableRowColor">
399
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
400
<CODE> java.lang.String</CODE></FONT></TD>
401
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#getDrmSystem()">getDrmSystem</A></B>()</CODE>
404
If called before init(), this method returns a comma delimited list of DRM
405
systems, one element per DRM system implementation provided.</TD>
407
<TR BGCOLOR="white" CLASS="TableRowColor">
408
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
409
<CODE> int</CODE></FONT></TD>
410
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#getJobProgramStatus(java.lang.String)">getJobProgramStatus</A></B>(java.lang.String jobId)</CODE>
413
Get the program status of the job identified by jobId.</TD>
415
<TR BGCOLOR="white" CLASS="TableRowColor">
416
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
417
<CODE> <A HREF="../../../org/ggf/drmaa/Version.html" title="class in org.ggf.drmaa">Version</A></CODE></FONT></TD>
418
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#getVersion()">getVersion</A></B>()</CODE>
421
Returns a Version object containing the major and minor version numbers of the
424
<TR BGCOLOR="white" CLASS="TableRowColor">
425
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
426
<CODE> void</CODE></FONT></TD>
427
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#init(java.lang.String)">init</A></B>(java.lang.String contact)</CODE>
430
Initialize the DRMAA implementation.</TD>
432
<TR BGCOLOR="white" CLASS="TableRowColor">
433
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
434
<CODE> java.util.List</CODE></FONT></TD>
435
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#runBulkJobs(org.ggf.drmaa.JobTemplate, int, int, int)">runBulkJobs</A></B>(<A HREF="../../../org/ggf/drmaa/JobTemplate.html" title="class in org.ggf.drmaa">JobTemplate</A> jt,
438
int incr)</CODE>
441
Submit a set of parametric jobs, dependent on the implied loop index,
442
each with attributes defined in the job template, <i>jt</i>.</TD>
444
<TR BGCOLOR="white" CLASS="TableRowColor">
445
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
446
<CODE> java.lang.String</CODE></FONT></TD>
447
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#runJob(org.ggf.drmaa.JobTemplate)">runJob</A></B>(<A HREF="../../../org/ggf/drmaa/JobTemplate.html" title="class in org.ggf.drmaa">JobTemplate</A> jt)</CODE>
450
Submit a job with attributes defined in the job template, <i>jt</i>.</TD>
452
<TR BGCOLOR="white" CLASS="TableRowColor">
453
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
454
<CODE> void</CODE></FONT></TD>
455
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#synchronize(java.util.List, long, boolean)">synchronize</A></B>(java.util.List jobIds,
457
boolean dispose)</CODE>
460
Wait until all jobs specified by <i>jobIds</i> have finished execution.</TD>
462
<TR BGCOLOR="white" CLASS="TableRowColor">
463
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
464
<CODE> <A HREF="../../../org/ggf/drmaa/JobInfo.html" title="class in org.ggf.drmaa">JobInfo</A></CODE></FONT></TD>
465
<TD><CODE><B><A HREF="../../../org/ggf/drmaa/Session.html#wait(java.lang.String, long)">wait</A></B>(java.lang.String jobId,
466
long timeout)</CODE>
469
This method will wait for a job with <i>jobId</i> to finish execution or fail.</TD>
475
<!-- ============ FIELD DETAIL =========== -->
477
<A NAME="field_detail"><!-- --></A>
478
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
479
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
480
<TD COLSPAN=1><FONT SIZE="+2">
481
<B>Field Detail</B></FONT></TD>
485
<A NAME="SUSPEND"><!-- --></A><H3>
488
public static final int <B>SUSPEND</B></PRE>
493
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.ggf.drmaa.Session.SUSPEND">Constant Field Values</A></DL>
497
<A NAME="RESUME"><!-- --></A><H3>
500
public static final int <B>RESUME</B></PRE>
505
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.ggf.drmaa.Session.RESUME">Constant Field Values</A></DL>
509
<A NAME="HOLD"><!-- --></A><H3>
512
public static final int <B>HOLD</B></PRE>
514
<DD>Put the job on hold
517
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.ggf.drmaa.Session.HOLD">Constant Field Values</A></DL>
521
<A NAME="RELEASE"><!-- --></A><H3>
524
public static final int <B>RELEASE</B></PRE>
526
<DD>Release the hold on the job
529
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.ggf.drmaa.Session.RELEASE">Constant Field Values</A></DL>
533
<A NAME="TERMINATE"><!-- --></A><H3>
536
public static final int <B>TERMINATE</B></PRE>
541
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.ggf.drmaa.Session.TERMINATE">Constant Field Values</A></DL>
545
<A NAME="JOB_IDS_SESSION_ALL"><!-- --></A><H3>
546
JOB_IDS_SESSION_ALL</H3>
548
public static final java.lang.String <B>JOB_IDS_SESSION_ALL</B></PRE>
550
<DD>All jobs submitted during this DRMAA session
553
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.ggf.drmaa.Session.JOB_IDS_SESSION_ALL">Constant Field Values</A></DL>
557
<A NAME="JOB_IDS_SESSION_ANY"><!-- --></A><H3>
558
JOB_IDS_SESSION_ANY</H3>
560
public static final java.lang.String <B>JOB_IDS_SESSION_ANY</B></PRE>
562
<DD>Any job from the session
565
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.ggf.drmaa.Session.JOB_IDS_SESSION_ANY">Constant Field Values</A></DL>
569
<A NAME="TIMEOUT_WAIT_FOREVER"><!-- --></A><H3>
570
TIMEOUT_WAIT_FOREVER</H3>
572
public static final long <B>TIMEOUT_WAIT_FOREVER</B></PRE>
574
<DD>Wait indefinitely for a result
577
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.ggf.drmaa.Session.TIMEOUT_WAIT_FOREVER">Constant Field Values</A></DL>
581
<A NAME="TIMEOUT_NO_WAIT"><!-- --></A><H3>
584
public static final long <B>TIMEOUT_NO_WAIT</B></PRE>
586
<DD>Return immediately if no result is available
589
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.ggf.drmaa.Session.TIMEOUT_NO_WAIT">Constant Field Values</A></DL>
593
<A NAME="UNDETERMINED"><!-- --></A><H3>
596
public static final int <B>UNDETERMINED</B></PRE>
598
<DD>Job status cannot be determined
601
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.ggf.drmaa.Session.UNDETERMINED">Constant Field Values</A></DL>
605
<A NAME="QUEUED_ACTIVE"><!-- --></A><H3>
608
public static final int <B>QUEUED_ACTIVE</B></PRE>
610
<DD>Job is queued and active
613
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.ggf.drmaa.Session.QUEUED_ACTIVE">Constant Field Values</A></DL>
617
<A NAME="SYSTEM_ON_HOLD"><!-- --></A><H3>
620
public static final int <B>SYSTEM_ON_HOLD</B></PRE>
622
<DD>Job is queued and in system hold
625
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.ggf.drmaa.Session.SYSTEM_ON_HOLD">Constant Field Values</A></DL>
629
<A NAME="USER_ON_HOLD"><!-- --></A><H3>
632
public static final int <B>USER_ON_HOLD</B></PRE>
634
<DD>Job is queued and in user hold
637
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.ggf.drmaa.Session.USER_ON_HOLD">Constant Field Values</A></DL>
641
<A NAME="USER_SYSTEM_ON_HOLD"><!-- --></A><H3>
642
USER_SYSTEM_ON_HOLD</H3>
644
public static final int <B>USER_SYSTEM_ON_HOLD</B></PRE>
646
<DD>Job is queued and in user and system hold
649
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.ggf.drmaa.Session.USER_SYSTEM_ON_HOLD">Constant Field Values</A></DL>
653
<A NAME="RUNNING"><!-- --></A><H3>
656
public static final int <B>RUNNING</B></PRE>
661
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.ggf.drmaa.Session.RUNNING">Constant Field Values</A></DL>
665
<A NAME="SYSTEM_SUSPENDED"><!-- --></A><H3>
666
SYSTEM_SUSPENDED</H3>
668
public static final int <B>SYSTEM_SUSPENDED</B></PRE>
670
<DD>Job is system suspended
673
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.ggf.drmaa.Session.SYSTEM_SUSPENDED">Constant Field Values</A></DL>
677
<A NAME="USER_SUSPENDED"><!-- --></A><H3>
680
public static final int <B>USER_SUSPENDED</B></PRE>
682
<DD>Job is user suspended
685
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.ggf.drmaa.Session.USER_SUSPENDED">Constant Field Values</A></DL>
689
<A NAME="USER_SYSTEM_SUSPENDED"><!-- --></A><H3>
690
USER_SYSTEM_SUSPENDED</H3>
692
public static final int <B>USER_SYSTEM_SUSPENDED</B></PRE>
694
<DD>Job is user suspended
697
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.ggf.drmaa.Session.USER_SYSTEM_SUSPENDED">Constant Field Values</A></DL>
701
<A NAME="DONE"><!-- --></A><H3>
704
public static final int <B>DONE</B></PRE>
706
<DD>Job has finished normally
709
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.ggf.drmaa.Session.DONE">Constant Field Values</A></DL>
713
<A NAME="FAILED"><!-- --></A><H3>
716
public static final int <B>FAILED</B></PRE>
718
<DD>Job finished, but terminated abnormally
721
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.ggf.drmaa.Session.FAILED">Constant Field Values</A></DL>
724
<!-- ========= CONSTRUCTOR DETAIL ======== -->
727
<!-- ============ METHOD DETAIL ========== -->
729
<A NAME="method_detail"><!-- --></A>
730
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
731
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
732
<TD COLSPAN=1><FONT SIZE="+2">
733
<B>Method Detail</B></FONT></TD>
737
<A NAME="init(java.lang.String)"><!-- --></A><H3>
740
public void <B>init</B>(java.lang.String contact)
741
throws <A HREF="../../../org/ggf/drmaa/DrmaaException.html" title="class in org.ggf.drmaa">DrmaaException</A></PRE>
743
<DD><p>Initialize the DRMAA implementation.
744
<i>contact</i> is an implementation-dependent string that may be used to specify
745
which DRM system to use. This routine must be called before any
746
other DRMAA calls, except for getVersion(), getDRMSystem(),
747
getDRMAAImplementation(), or getContact().</p>
748
If contact is <CODE>null</CODE>, the default DRM system is used,
749
provided there is only one DRMAA implementation in the module.
750
If there is more than one DRMAA implementation in the module, init() throws a
751
NoDefaultContactStringSelectedException.
752
init() should be called only once, by only one of the threads. The main thread is
753
recommended. A call to init() by another thread or additional calls to init()
754
by the same thread with throw a SessionAlreadyActiveException.
757
<DT><B>Parameters:</B><DD><CODE>contact</CODE> - implementation-dependent string that may be used to specify
758
which DRM system to use. If null, will select the default DRM if there
759
is only one DRMAA implementation available.
761
<DD><CODE><A HREF="../../../org/ggf/drmaa/DrmaaException.html" title="class in org.ggf.drmaa">DrmaaException</A></CODE> - May be be one of the following:
763
<LI>InvalidContactStringException</LI>
764
<LI>AlreadyActiveSessionException</LI>
765
<LI>DefaultContactStringException</LI>
766
<LI>NoDefaultContactStringSelectedException</LI>
772
<A NAME="exit()"><!-- --></A><H3>
775
public void <B>exit</B>()
776
throws <A HREF="../../../org/ggf/drmaa/DrmaaException.html" title="class in org.ggf.drmaa">DrmaaException</A></PRE>
778
<DD>Disengage from DRM and allow the DRMAA implementation to perform
779
any necessary internal cleanup.
780
This routine ends the current DRMAA session but doesn't affect any
781
jobs (e.g., queued and running jobs remain queued and running).
782
exit() should be called only once, by only one of the threads. Additional
783
calls to exit() beyond the first will throw a NoActiveSessionException.
788
<DD><CODE><A HREF="../../../org/ggf/drmaa/DrmaaException.html" title="class in org.ggf.drmaa">DrmaaException</A></CODE> - May be one of the following:
790
<LI>DrmsExitException</LI>
791
<LI>NoActiveSessionException</LI>
797
<A NAME="createJobTemplate()"><!-- --></A><H3>
798
createJobTemplate</H3>
800
public <A HREF="../../../org/ggf/drmaa/JobTemplate.html" title="class in org.ggf.drmaa">JobTemplate</A> <B>createJobTemplate</B>()
801
throws <A HREF="../../../org/ggf/drmaa/DrmaaException.html" title="class in org.ggf.drmaa">DrmaaException</A></PRE>
803
<DD>Get a new job template. The job template is used to set the
804
environment for jobs to be submitted. Once the job template has been created,
805
it should also be deleted (via deleteJobTemplate()) when no longer needed.
806
Failure to do so may result in a memory leak.
810
<DT><B>Returns:</B><DD>a blank JobTemplate object
812
<DD><CODE><A HREF="../../../org/ggf/drmaa/DrmaaException.html" title="class in org.ggf.drmaa">DrmaaException</A></CODE> - May be one of the following:
814
<LI>DrmCommunicationException</LI>
815
</UL><DT><B>See Also:</B><DD><A HREF="../../../org/ggf/drmaa/JobTemplate.html" title="class in org.ggf.drmaa"><CODE>JobTemplate</CODE></A></DL>
820
<A NAME="deleteJobTemplate(org.ggf.drmaa.JobTemplate)"><!-- --></A><H3>
821
deleteJobTemplate</H3>
823
public void <B>deleteJobTemplate</B>(<A HREF="../../../org/ggf/drmaa/JobTemplate.html" title="class in org.ggf.drmaa">JobTemplate</A> jt)
824
throws <A HREF="../../../org/ggf/drmaa/DrmaaException.html" title="class in org.ggf.drmaa">DrmaaException</A></PRE>
826
<DD>Deallocate a job template. This routine has no effect on running jobs.
829
<DT><B>Parameters:</B><DD><CODE>jt</CODE> - the JobTemplate to delete
831
<DD><CODE><A HREF="../../../org/ggf/drmaa/DrmaaException.html" title="class in org.ggf.drmaa">DrmaaException</A></CODE> - May be one of the following:
833
<LI>DrmCommunicationException</LI>
834
<LI>InvalidJobTemplateException</LI>
840
<A NAME="runJob(org.ggf.drmaa.JobTemplate)"><!-- --></A><H3>
843
public java.lang.String <B>runJob</B>(<A HREF="../../../org/ggf/drmaa/JobTemplate.html" title="class in org.ggf.drmaa">JobTemplate</A> jt)
844
throws <A HREF="../../../org/ggf/drmaa/DrmaaException.html" title="class in org.ggf.drmaa">DrmaaException</A></PRE>
846
<DD>Submit a job with attributes defined in the job template, <i>jt</i>.
847
The returned job identifier is a String identical to that returned
848
from the underlying DRM system.
851
<DT><B>Parameters:</B><DD><CODE>jt</CODE> - the job template to be used to create the job
852
<DT><B>Returns:</B><DD>job identifier String identical to that returned from the
853
underlying DRM system
855
<DD><CODE><A HREF="../../../org/ggf/drmaa/DrmaaException.html" title="class in org.ggf.drmaa">DrmaaException</A></CODE> - May be one of the following:
857
<LI>TryLaterException</LI>
858
<LI>DeniedByDrmException</LI>
859
<LI>DrmCommunicationException</LI>
860
<LI>AuthorizationException</LI>
861
<LI>InvalidJobTemplateException</LI>
867
<A NAME="runBulkJobs(org.ggf.drmaa.JobTemplate, int, int, int)"><!-- --></A><H3>
870
public java.util.List <B>runBulkJobs</B>(<A HREF="../../../org/ggf/drmaa/JobTemplate.html" title="class in org.ggf.drmaa">JobTemplate</A> jt,
874
throws <A HREF="../../../org/ggf/drmaa/DrmaaException.html" title="class in org.ggf.drmaa">DrmaaException</A></PRE>
876
<DD><p>Submit a set of parametric jobs, dependent on the implied loop index,
877
each with attributes defined in the job template, <i>jt</i>.
878
The returned job identifiers are Strings identical to those returned
879
from the underlying DRM system.</p>
880
<p>The JobTemplate class defines a <code>PARAMETRIC_INDEX</code> placeholder for use in
881
specifying paths. This placeholder is used to represent the individual
882
identifiers of the tasks submitted through this method.</p>
885
<DT><B>Parameters:</B><DD><CODE>start</CODE> - the starting value for the loop index<DD><CODE>end</CODE> - the terminating value for the loop index<DD><CODE>incr</CODE> - the value by which to increment the loop index each iteration<DD><CODE>jt</CODE> - the job template to be used to create the job
886
<DT><B>Returns:</B><DD>job identifier Strings identical to that returned by the
887
underlying DRM system
889
<DD><CODE><A HREF="../../../org/ggf/drmaa/DrmaaException.html" title="class in org.ggf.drmaa">DrmaaException</A></CODE> - May be one of the following:
891
<LI>TryLaterException</LI>
892
<LI>DeniedByDrmException</LI>
893
<LI>DrmCommunicationException</LI>
894
<LI>AuthorizationException</LI>
895
<LI>InvalidJobTemplateException</LI>
901
<A NAME="control(java.lang.String, int)"><!-- --></A><H3>
904
public void <B>control</B>(java.lang.String jobId,
906
throws <A HREF="../../../org/ggf/drmaa/DrmaaException.html" title="class in org.ggf.drmaa">DrmaaException</A></PRE>
908
<DD><p>Hold, release, suspend, resume, or kill the job identified by <i>jobId</i>.
909
If <i>jobId</i> is <code>JOB_IDS_SESSION_ALL</code>, then this routine acts on all jobs
910
<B>submitted</B> during this DRMAA session up to the moment control() is
911
called. To avoid thread races in multithreaded applications, the DRMAA
912
implementation user should explicitly synchronize this call with any other
913
job submission calls or control calls that may change the number of remote
915
<p>The legal values for <i>action</i> and their meanings are:
917
<LI><code>SUSPEND</code>: stop the job,</LI>
918
<LI><code>RESUME</code>: (re)start the job,</LI>
919
<LI><code>HOLD</code>: put the job on-hold,</LI>
920
<LI><code>RELEASE</code>: release the hold on the job, and</LI>
921
<LI><code>TERMINATE</code>: kill the job.</LI>
924
<p>This method returns once the action has been acknowledged by
925
the DRM system, but does not necessarily wait until the action
926
has been completed.</p>
927
<p>Some DRMAA implementations may allow this method to be used to control jobs
928
submitted external to the DRMAA session, such as jobs submitted by other DRMAA
929
session in other DRMAA implementations or jobs submitted via native
933
<DT><B>Parameters:</B><DD><CODE>jobId</CODE> - The id of the job to control<DD><CODE>action</CODE> - the control action to be taken
935
<DD><CODE><A HREF="../../../org/ggf/drmaa/DrmaaException.html" title="class in org.ggf.drmaa">DrmaaException</A></CODE> - May be one of the following:
937
<LI>DrmCommunicationException</LI>
938
<LI>AuthorizationException</LI>
939
<LI>ResumeInconsistentStateException</LI>
940
<LI>SuspendInconsistentStateException</LI>
941
<LI>HoldInconsistentStateException</LI>
942
<LI>ReleaseInconsistentStateException</LI>
943
<LI>InvalidJobException</LI>
949
<A NAME="synchronize(java.util.List, long, boolean)"><!-- --></A><H3>
952
public void <B>synchronize</B>(java.util.List jobIds,
954
boolean dispose)
955
throws <A HREF="../../../org/ggf/drmaa/DrmaaException.html" title="class in org.ggf.drmaa">DrmaaException</A></PRE>
957
<DD><p>Wait until all jobs specified by <i>jobIds</i> have finished execution.
958
If <i>jobIds</i> contains <code>JOB_IDS_SESSION_ALL</code>, then this method waits for all
959
jobs <B>submitted</B> during this DRMAA session up to the moment
960
synchronize() is called. To avoid thread race conditions in multithreaded
961
applications, the DRMAA implementation user should explicitly synchronize
962
this call with any other job submission calls or control calls that may
963
change the number of remote jobs.</p>
964
<p>To prevent blocking indefinitely in this call, the caller may use a timeout
965
specifying after how many seconds to block in this call. The value
966
<code>TIMEOUT_WAIT_FOREVER MAY</code> be specified to wait indefinitely for a result.
967
The value <code>TIMEOUT_NO_WAIT MAY</code> be specified to return immediately if no
968
result is available. If the call exits before the timeout has elapsed, all the
969
jobs have been waited on or there was an interrupt.
970
If the invocation exits on timeout, an ExitTimeException is thrown.
971
The caller should check system time before and after this call in order to
972
be sure of how much time has passed.</p>
973
<p>The <i>dispose</i> parameter specifies how to treat the reaping of the remote job's
974
internal data record, which includes a record of the job's consumption of system
975
resources during its execution and other statistical information. If set to
976
<code>true</code>, the DRM will dispose of the job's data record at the end of
977
the synchroniize() call. If set to <code>false</code>, the data record will be
978
left for future access via the wait() method.</p>
981
<DT><B>Parameters:</B><DD><CODE>jobIds</CODE> - the ids of the jobs to synchronize<DD><CODE>timeout</CODE> - the maximum number of seconds to wait<DD><CODE>dispose</CODE> - specifies how to treat reaping information
983
<DD><CODE><A HREF="../../../org/ggf/drmaa/DrmaaException.html" title="class in org.ggf.drmaa">DrmaaException</A></CODE> - May be one of the following:
985
<LI>DrmCommunicationException</LI>
986
<LI>AuthorizationException</LI>
987
<LI>ExitTimeoutException</LI>
988
<LI>InvalidJobException</LI>
989
</UL><DT><B>See Also:</B><DD><A HREF="../../../org/ggf/drmaa/Session.html#wait(java.lang.String, long)"><CODE>wait(java.lang.String, long)</CODE></A></DL>
994
<A NAME="wait(java.lang.String, long)"><!-- --></A><H3>
997
public <A HREF="../../../org/ggf/drmaa/JobInfo.html" title="class in org.ggf.drmaa">JobInfo</A> <B>wait</B>(java.lang.String jobId,
999
throws <A HREF="../../../org/ggf/drmaa/DrmaaException.html" title="class in org.ggf.drmaa">DrmaaException</A></PRE>
1001
<DD><P>This method will wait for a job with <i>jobId</i> to finish execution or fail.
1002
If the special string, <code>JOB_IDS_SESSION_ANY</code>, is provided as the
1004
this routine will wait for any job from the session. This routine is
1005
modeled on the wait3 POSIX routine.</p>
1006
<P>The <i>timeout</i> value is used to specify the desired behavior when a result
1007
is not immediately available. The value, <code>TIMEOUT_WAIT_FOREVER<code>, may be
1008
specified to wait indefinitely for a result. The value, <code>TIMEOUT_NO_WAIT<code>,
1009
may be specified to return immediately if no result is available.
1010
Alternatively, a number of seconds may be specified to indicate how
1011
long to wait for a result to become available.</p>
1012
<p>If the call exits before timeout, either the job has been waited on
1013
successfully or there was an interrupt.
1014
If the invocation exits on timeout, an ExitTimeoutException is thrown.
1015
The caller should check system time before and after this call
1016
in order to be sure how much time has passed.</p>
1017
<p>The routine reaps job data records on a successful call, so any subsequent
1018
calls to wait() will fail, throwing an InvalidJobException, meaning
1019
that the job's data record has been already reaped. This exception is the same as
1020
if the job was unknown. (The only case where wait() can be successfully called
1021
on a single job more than once is when the previous call to wait() timed out
1022
before the job finished.)</p>
1023
<p>When successful, the resource usage information for the job is provided as a
1024
Map of usage parameter names and their values.
1025
The values contain the amount of resources consumed by the job and are
1026
implementation defined.</p>
1029
<DT><B>Parameters:</B><DD><CODE>jobId</CODE> - the id of the job for which to wait<DD><CODE>timeout</CODE> - the maximum number of seconds to wait
1030
<DT><B>Returns:</B><DD>the resource usage and status information
1032
<DD><CODE><A HREF="../../../org/ggf/drmaa/DrmaaException.html" title="class in org.ggf.drmaa">DrmaaException</A></CODE> - May be one of the following:
1034
<LI>DrmCommunicationException</LI>
1035
<LI>AuthorizationException</LI>
1036
<LI>NoResourceUsageDataException</LI>
1037
<LI>ExitTimeoutException</LI>
1038
<LI>InvalidJobException</LI>
1044
<A NAME="getJobProgramStatus(java.lang.String)"><!-- --></A><H3>
1045
getJobProgramStatus</H3>
1047
public int <B>getJobProgramStatus</B>(java.lang.String jobId)
1048
throws <A HREF="../../../org/ggf/drmaa/DrmaaException.html" title="class in org.ggf.drmaa">DrmaaException</A></PRE>
1050
<DD>Get the program status of the job identified by jobId.
1051
The possible values returned from this method are:
1053
<LI><code>UNDETERMINED</code>: process status cannot be determined</LI>
1054
<LI><code>QUEUED_ACTIVE</code>: job is queued and active</LI>
1055
<LI><code>SYSTEM_ON_HOLD</code>: job is queued and in system hold</LI>
1056
<LI><code>USER_ON_HOLD</code>: job is queued and in user hold</LI>
1057
<LI><code>USER_SYSTEM_ON_HOLD</code>: job is queued and in user and system hold</LI>
1058
<LI><code>RUNNING</code>: job is running</LI>
1059
<LI><code>SYSTEM_SUSPENDED</code>: job is system suspended</LI>
1060
<LI><code>USER_SUSPENDED</code>: job is user suspended</LI>
1061
<LI><code>DONE</code>: job finished normally</LI>
1062
<LI><code>FAILED</code>: job finished, but failed.</LI>
1064
The DRMAA implementation should always get the status of jobId from DRM system
1065
unless the status has already been determined to be <code>FAILED</code> or <code>DONE</code> and the
1066
status has been successfully cached. Terminated jobs return a <code>FAILED</code> status.
1069
<DT><B>Parameters:</B><DD><CODE>jobId</CODE> - the id of the job whose status is to be retrieved
1070
<DT><B>Returns:</B><DD>the program status
1072
<DD><CODE><A HREF="../../../org/ggf/drmaa/DrmaaException.html" title="class in org.ggf.drmaa">DrmaaException</A></CODE> - May be one of the following:
1074
<LI>DrmCommunicationException</LI>
1075
<LI>AuthorizationException</LI>
1076
<LI>InvalidJobException</LI>
1082
<A NAME="getContact()"><!-- --></A><H3>
1085
public java.lang.String <B>getContact</B>()</PRE>
1087
<DD>If called before init(), this method returns a comma delimited String containing
1088
the contact Strings available from the default DRMAA
1089
implementation, one element per DRM system available. If called after init(),
1090
this method returns the contact String for the DRM system to which the session
1091
is attached. The returned String is implementation dependent.
1095
<DT><B>Returns:</B><DD>current contact information for DRM system or a comma delimited
1096
list of possible contact Strings</DL>
1101
<A NAME="getVersion()"><!-- --></A><H3>
1104
public <A HREF="../../../org/ggf/drmaa/Version.html" title="class in org.ggf.drmaa">Version</A> <B>getVersion</B>()</PRE>
1106
<DD>Returns a Version object containing the major and minor version numbers of the
1107
DRMAA library. For DRMAA 0.5, major is 0 and minor is 5.
1111
<DT><B>Returns:</B><DD>the version number as a Version object<DT><B>See Also:</B><DD><A HREF="../../../org/ggf/drmaa/Version.html" title="class in org.ggf.drmaa"><CODE>Version</CODE></A></DL>
1116
<A NAME="getDrmSystem()"><!-- --></A><H3>
1119
public java.lang.String <B>getDrmSystem</B>()</PRE>
1121
<DD>If called before init(), this method returns a comma delimited list of DRM
1122
systems, one element per DRM system implementation provided. If called after
1123
init(), this method returns the selected DRM system. The returned String is
1124
implementation dependent.
1128
<DT><B>Returns:</B><DD>DRM system implementation information</DL>
1133
<A NAME="getDrmaaImplementation()"><!-- --></A><H3>
1134
getDrmaaImplementation</H3>
1136
public java.lang.String <B>getDrmaaImplementation</B>()</PRE>
1138
<DD>If called before init(), this method returns a comma delimited list of DRMAA
1139
implementations, one element for each DRMAA implementation provided. If
1140
called after init(), this method returns the selected DRMAA implementation.
1141
The returned String is implementation dependent and may contain the DRM
1142
system as a component.
1146
<DT><B>Returns:</B><DD>DRMAA implementation information</DL>
1149
<!-- ========= END OF CLASS DATA ========= -->
1153
<!-- ======= START OF BOTTOM NAVBAR ====== -->
1154
<A NAME="navbar_bottom"><!-- --></A>
1155
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
1156
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
1158
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
1159
<A NAME="navbar_bottom_firstrow"><!-- --></A>
1160
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
1161
<TR ALIGN="center" VALIGN="top">
1162
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
1163
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
1164
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
1165
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
1166
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
1167
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
1168
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
1172
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
1178
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1179
<A HREF="../../../org/ggf/drmaa/ResumeInconsistentStateException.html" title="class in org.ggf.drmaa"><B>PREV CLASS</B></A>
1180
<A HREF="../../../org/ggf/drmaa/SessionException.html" title="class in org.ggf.drmaa"><B>NEXT CLASS</B></A></FONT></TD>
1181
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1182
<A HREF="../../../index.html" target="_top"><B>FRAMES</B></A>
1183
<A HREF="Session.html" target="_top"><B>NO FRAMES</B></A>
1184
<SCRIPT type="text/javascript">
1187
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
1192
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
1198
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1199
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
1200
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1201
DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
1204
<A NAME="skip-navbar_bottom"></A>
1205
<!-- ======== END OF BOTTOM NAVBAR ======= -->