1
2
3
4
5
6
7
8
9
10
11 package org.astrogrid.jes.delegate;
12
13 import org.astrogrid.community.beans.v1.Account;
14 import org.astrogrid.workflow.beans.v1.Workflow;
15 import org.astrogrid.workflow.beans.v1.execution.JobURN;
16 import org.astrogrid.workflow.beans.v1.execution.WorkflowSummaryType;
17
18 /*** Interface to a service for managing jobs - listing, deleting, submitting for execution, etc.
19 * <p />
20 * same as axis-generated service interface, but with castor types instead
21 * @author Noel Winstanley nw@jb.man.ac.uk 06-Feb-2004
22 *
23 */
24 public interface JobController extends Delegate {
25 /*** submit a workflow document for execution as a new job
26 *
27 * @param wf workflow to execute
28 * @return a unique identifier for this job
29 * @throws JesDelegateException
30 */
31 public JobURN submitWorkflow(Workflow wf) throws JesDelegateException;
32 /*** cancel the execution of a job
33 *
34 * @param urn unique identifier of the job to cancel
35 * @throws JesDelegateException
36 */
37 public void cancelJob(JobURN urn) throws JesDelegateException;
38 /*** delete all record of a job
39 *
40 * @param urn unique identifier of the job to delete
41 * @throws JesDelegateException
42 */
43 public void deleteJob(JobURN urn) throws JesDelegateException;
44 /*** retreive a list of all jobs (pending, running and completed) for a particular user
45 *
46 * @param acc account object for the user in question
47 * @return array of job summary objects, one summary for each job the user has in the system
48 * @deprecated - use {@link #listJobs}
49 * @throws JesDelegateException
50 */
51 public JobSummary[] readJobList(Account acc) throws JesDelegateException;
52
53 /*** retreive a list of all jobs (pending, runing and completed) for a particylar user */
54 public WorkflowSummaryType[] listJobs(Account acc) throws JesDelegateException;
55 /*** retrive the workflow document for a job.
56 *
57 * @param urn unique identifier for a job.
58 * @return annotated workflow document - will contains details of step execution, etc.
59 * @throws JesDelegateException
60 */
61 public Workflow readJob(JobURN urn) throws JesDelegateException;
62 }
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110