View Javadoc

1   /*$Id: Dispatcher.java,v 1.8 2004/08/13 09:07:58 nw Exp $
2    * Created on 12-Feb-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.jobscheduler;
12  
13  import org.astrogrid.jes.JesException;
14  import org.astrogrid.workflow.beans.v1.Tool;
15  import org.astrogrid.workflow.beans.v1.Workflow;
16  /*** Interface to a component that dispatches (executes) a job step.
17   * This may be done by communicating with a remote service, such as an application controller, to by other means. 
18   * @author Noel Winstanley nw@jb.man.ac.uk 12-Feb-2004
19   *
20   */
21  public interface Dispatcher {
22      /*** execute the tool entry defined within a job step.
23       * <p>
24       * Implementations should not alter the workflow and step objects - recording execution information is the responsibility of the scheduler engine. 
25       * @param wf workflow document the step is from
26       * @param tool the tool to use to perform the call.
27       * @param id identifier of the job step that is being executed.
28       * @throws JesException
29       */
30      void dispatchStep(Workflow wf,Tool tool, String id) throws JesException;
31  }
32  
33  
34  /* 
35  $Log: Dispatcher.java,v $
36  Revision 1.8  2004/08/13 09:07:58  nw
37  tidied imports
38  
39  Revision 1.7  2004/08/09 17:31:11  nw
40  adjusted interface, to work better with dynamically-generated states.
41  
42  Revision 1.6  2004/08/03 16:31:25  nw
43  simplified interface to dispatcher and locator components.
44  removed redundant implementations.
45  
46  Revision 1.5  2004/03/15 23:45:07  nw
47  improved javadoc
48  
49  Revision 1.4  2004/03/05 16:16:23  nw
50  worked now object model through jes.
51  implemented basic scheduling policy
52  removed internal facade
53  
54  Revision 1.3  2004/03/04 01:57:35  nw
55  major refactor.
56  upgraded to latest workflow object model.
57  removed internal facade
58  replaced community snippet with objects
59  
60  Revision 1.2  2004/02/27 00:46:03  nw
61  merged branch nww-itn05-bz#91
62  
63  Revision 1.1.2.3  2004/02/27 00:28:14  nw
64  rearranging code
65  
66  Revision 1.1.2.2  2004/02/17 12:25:38  nw
67  improved javadocs for classes
68  
69  Revision 1.1.2.1  2004/02/12 12:56:39  nw
70  factored out two components, concerned with accessing tool details
71  and talking with the application controller
72   
73  */