View Javadoc

1   /*$Id: ResultsListenerSoapBindingImpl.java,v 1.3 2004/07/09 09:30:28 nw Exp $
2    * Created on 01-Jul-2004
3    *
4    * Copyright (C) AstroGrid. All rights reserved.
5    *
6    * This software is published under the terms of the AstroGrid 
7    * Software License version 1.2, a copy of which has been included 
8    * with this distribution in the LICENSE.txt file.  
9    *
10  **/
11  package org.astrogrid.jes.resultlistener;
12  
13  import org.astrogrid.jes.component.JesComponentManagerFactory;
14  import org.astrogrid.jes.service.v1.cearesults.ResultsListener;
15  import org.astrogrid.jes.types.v1.cea.axis.JobIdentifierType;
16  import org.astrogrid.jes.types.v1.cea.axis.ResultListType;
17  
18  import org.apache.commons.logging.Log;
19  import org.apache.commons.logging.LogFactory;
20  
21  import java.rmi.RemoteException;
22  
23  /*** soap skeleton - just delegates on to real method in container.
24   * @author Noel Winstanley nw@jb.man.ac.uk 01-Jul-2004
25   *
26   */
27  public class ResultsListenerSoapBindingImpl implements ResultsListener {
28      /***
29       * Commons Logger for this class
30       */
31      private static final Log logger = LogFactory.getLog(ResultsListenerSoapBindingImpl.class);
32  
33      /*** Construct a new ResultsListenerSoapBindingImple
34       * 
35       */
36      public ResultsListenerSoapBindingImpl() {
37          ResultsListener tmpListener = null;
38          try {
39              tmpListener = JesComponentManagerFactory.getInstance().getResultsListener();
40          } catch (Throwable t) {
41              logger.fatal("Could not acquire results listener",t);
42          }
43          listener = tmpListener;
44      }
45      protected final ResultsListener listener;
46      /***
47       * @see org.astrogrid.jes.service.v1.cearesults.ResultsListener#putResults(org.astrogrid.jes.types.v1.cea.axis.JobIdentifierType, org.astrogrid.jes.types.v1.cea.axis.ResultListType)
48       */
49      public void putResults(JobIdentifierType arg0, ResultListType arg1) throws RemoteException {
50          listener.putResults(arg0,arg1);
51      }
52  }
53  
54  
55  /* 
56  $Log: ResultsListenerSoapBindingImpl.java,v $
57  Revision 1.3  2004/07/09 09:30:28  nw
58  merged in scripting workflow interpreter from branch
59  nww-x-workflow-extensions
60  
61  Revision 1.2  2004/07/02 09:08:52  nw
62  improved logging
63  
64  Revision 1.1  2004/07/01 21:15:00  nw
65  added results-listener interface to jes
66   
67  */