View Javadoc

1   /*
2    * $Id: CommonExecutionConnectorDummyDelegate.java,v 1.4 2004/08/18 12:36:36 nw Exp $
3    * 
4    * Created on 11-Mar-2004 by Paul Harrison (pah@jb.man.ac.uk)
5    *
6    * Copyright 2004 AstroGrid. All rights reserved.
7    *
8    * This software is published under the terms of the AstroGrid 
9    * Software License version 1.2, a copy of which has been included 
10   * with this distribution in the LICENSE.txt file.  
11   *
12   */ 
13  
14  package org.astrogrid.applications.delegate.impl;
15  
16  import org.astrogrid.applications.beans.v1.ApplicationList;
17  import org.astrogrid.applications.beans.v1.cea.castor.ExecutionSummaryType;
18  import org.astrogrid.applications.beans.v1.cea.castor.MessageType;
19  import org.astrogrid.applications.beans.v1.cea.castor.ResultListType;
20  import org.astrogrid.applications.delegate.CEADelegateException;
21  import org.astrogrid.jes.types.v1.cea.axis.JobIdentifierType;
22  import org.astrogrid.workflow.beans.v1.Tool;
23  
24  import java.net.URI;
25  
26  /***
27   * @author Paul Harrison (pah@jb.man.ac.uk) 11-Mar-2004
28   * @version $Name:  $
29   * @since iteration5
30   */
31  public class CommonExecutionConnectorDummyDelegate extends CommonExecutionConnectorDelegate {
32  
33     /***
34      * 
35      */
36     public CommonExecutionConnectorDummyDelegate() {
37        super();
38     }
39  
40     /* (non-Javadoc)
41      * @see org.astrogrid.applications.delegate.CommonExecutionConnectorClient#abort(java.lang.String)
42      */
43     public boolean abort(final String executionId) throws CEADelegateException {
44         return true;
45     }
46  
47     /* (non-Javadoc)
48      * @see org.astrogrid.applications.delegate.CommonExecutionConnectorClient#queryExecutionStatus(java.lang.String)
49      */
50     public MessageType queryExecutionStatus(final String executionId) throws CEADelegateException {
51        // TODO Auto-generated method stub
52        throw new  UnsupportedOperationException("CommonExecutionConnectorDummyDelegate.queryExecutionStatus() not implemented");
53     }
54  
55     /* (non-Javadoc)
56      * @see org.astrogrid.applications.delegate.CommonExecutionConnectorClient#returnRegistryEntry()
57      */
58     public String returnRegistryEntry() throws CEADelegateException {
59        // TODO Auto-generated method stub
60        throw new  UnsupportedOperationException("CommonExecutionConnectorDummyDelegate.returnRegistryEntry() not implemented");
61     }
62  
63  /***
64   * @see org.astrogrid.applications.delegate.CommonExecutionConnectorClient#init(org.astrogrid.workflow.beans.v1.Tool, org.astrogrid.jes.types.v1.cea.axis.JobIdentifierType)
65   */
66  public String init(Tool tool, JobIdentifierType jobstepID) throws CEADelegateException {
67      return "dummy";
68   
69  }
70  
71  /***
72   * @see org.astrogrid.applications.delegate.CommonExecutionConnectorClient#registerProgressListener(java.lang.String, java.net.URI)
73   */
74  public void registerProgressListener(String executionId, URI listenerEndpoint) throws CEADelegateException {
75    }
76  
77  /***
78   * @see org.astrogrid.applications.delegate.CommonExecutionConnectorClient#registerResultsListener(java.lang.String, java.net.URI)
79   */
80  public void registerResultsListener(String executionId, URI listenerEndpoint) throws CEADelegateException {
81    }
82  
83  /***
84   * @see org.astrogrid.applications.delegate.CommonExecutionConnectorClient#execute(java.lang.String)
85   */
86  public boolean execute(String executionId) throws CEADelegateException {
87      return true;
88  }
89  
90  /***
91   * @see org.astrogrid.applications.delegate.CommonExecutionConnectorClient#getResults(java.lang.String)
92   */
93  public ResultListType getResults(String executionId) throws CEADelegateException {
94      // TODO Auto-generated method stub
95       throw new  UnsupportedOperationException("CommonExecutionConnectorDummyDelegate.getResults() not implemented");
96   
97  }
98  
99  /***
100  * @see org.astrogrid.applications.delegate.CommonExecutionConnectorClient#getExecutionSumary(java.lang.String)
101  */
102 public ExecutionSummaryType getExecutionSumary(String executionId) throws CEADelegateException {
103     // TODO Auto-generated method stub
104      throw new  UnsupportedOperationException("CommonExecutionConnectorDummyDelegate.getExecutionSummary() not implemented");
105  
106 }
107 
108 
109 }