1 /***
2 * JobMonitorServiceSoapBindingImpl.java
3 *
4 * This file was auto-generated from WSDL
5 * by the Apache Axis WSDL2Java emitter.
6 *
7 * Edited by NWW to construt and then delegate to a {@link org.astrogrid.jes.jobmonitor.JobMonitor}
8 */
9
10 package org.astrogrid.jes.delegate.v1.jobmonitor;
11
12 import org.astrogrid.jes.component.JesComponentManagerFactory;
13 import org.astrogrid.jes.types.v1.cea.axis.JobIdentifierType;
14 import org.astrogrid.jes.types.v1.cea.axis.MessageType;
15
16 import org.apache.commons.logging.Log;
17 import org.apache.commons.logging.LogFactory;
18
19 import java.rmi.RemoteException;
20
21 public class JobMonitorServiceSoapBindingImpl implements org.astrogrid.jes.delegate.v1.jobmonitor.JobMonitor{
22 /***
23 * Commons Logger for this class
24 */
25 private static final Log logger = LogFactory.getLog(JobMonitorServiceSoapBindingImpl.class);
26
27 public JobMonitorServiceSoapBindingImpl() {
28 JobMonitor tmpMonitor = null;
29 try {
30 tmpMonitor = JesComponentManagerFactory.getInstance().getMonitor();
31 } catch (Throwable t) {
32 logger.fatal("Could not acquire monitor service",t);
33 }
34 monitor = tmpMonitor;
35 }
36 protected final JobMonitor monitor;
37
38 /***
39 * @see org.astrogrid.jes.delegate.v1.jobmonitor.JobMonitor#monitorJob(org.astrogrid.jes.types.v1.cea.axis.JobIdentifierType, org.astrogrid.jes.types.v1.cea.axis.MessageType)
40 */
41 public void monitorJob(JobIdentifierType arg0, MessageType arg1) throws RemoteException {
42 monitor.monitorJob(arg0,arg1);
43 }
44
45
46 }