View Javadoc

1   /***
2    * JobControllerServiceSoapBindingImpl.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis WSDL2Java emitter.
6    * 
7    * Edited by NWW to construct and then delegate to a {@link org.astrogrid.jes.jobcontroller.JobController}
8    *  
9    */
10  
11  package org.astrogrid.jes.delegate.v1.jobcontroller;
12  
13  import org.astrogrid.community.beans.v1.axis._Account;
14  import org.astrogrid.jes.beans.v1.axis.executionrecord.JobURN;
15  import org.astrogrid.jes.beans.v1.axis.executionrecord.WorkflowString;
16  import org.astrogrid.jes.beans.v1.axis.executionrecord._workflowSummaryList;
17  import org.astrogrid.jes.component.JesComponentManagerFactory;
18  
19  import org.apache.commons.logging.Log;
20  import org.apache.commons.logging.LogFactory;
21  
22  import java.rmi.RemoteException;
23  
24  public class JobControllerServiceSoapBindingImpl implements org.astrogrid.jes.delegate.v1.jobcontroller.JobController{
25      /***
26       * Commons Logger for this class
27       */
28      private static final Log logger = LogFactory.getLog(JobControllerServiceSoapBindingImpl.class);
29  
30      public JobControllerServiceSoapBindingImpl() {
31          JobController tmpJc = null;
32          try {
33              tmpJc = JesComponentManagerFactory.getInstance().getController();
34          } catch (Throwable t) {
35              logger.fatal("Could not acquire job controller",t);
36          }
37          jc = tmpJc;
38      }
39      protected final JobController jc;
40  
41  
42      /***
43       * @see org.astrogrid.jes.delegate.v1.jobcontroller.JobController#submitWorkflow(java.lang.String)
44       */
45      public JobURN submitWorkflow(WorkflowString arg0) throws RemoteException {
46          return jc.submitWorkflow(arg0);
47      }
48  
49      /***
50       * @see org.astrogrid.jes.delegate.v1.jobcontroller.JobController#cancelJob(org.astrogrid.jes.types.v1.JobURN)
51       */
52      public void cancelJob(JobURN arg0) throws RemoteException {
53          jc.cancelJob(arg0);
54      }
55  
56      /***
57       * @see org.astrogrid.jes.delegate.v1.jobcontroller.JobController#deleteJob(org.astrogrid.jes.types.v1.JobURN)
58       */
59      public void deleteJob(JobURN arg0) throws RemoteException {
60          jc.deleteJob(arg0);
61      }
62  
63  
64  
65      /***
66       * @see org.astrogrid.jes.delegate.v1.jobcontroller.JobController#readJob(org.astrogrid.jes.types.v1.JobURN)
67       */
68      public WorkflowString readJob(JobURN arg0) throws RemoteException {
69          return jc.readJob(arg0);
70      }
71  
72  
73      /***
74       * @see org.astrogrid.jes.delegate.v1.jobcontroller.JobController#readJobList(org.astrogrid.community.beans.v1.axis._Account)
75       */
76      public _workflowSummaryList readJobList(_Account arg0) throws RemoteException, JesFault {
77          return jc.readJobList(arg0);
78      }
79  
80  }