View Javadoc

1   /*$Id: Locator.java,v 1.7 2005/03/13 07:13:39 clq2 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  
16  /*** Interface to a component that will retreive details / location for a tool
17   * @author Noel Winstanley nw@jb.man.ac.uk 12-Feb-2004
18   *
19   */
20  public interface Locator {
21      /*** resolve a tool name into a list of equivalent endpoints of services that provides the tool 
22       * @todo return url? or something more abstract
23       * */
24      String[] locateTool(Tool  js) throws JesException;
25  }
26  
27  
28  /* 
29  $Log: Locator.java,v $
30  Revision 1.7  2005/03/13 07:13:39  clq2
31  merging jes-nww-686 common-nww-686 workflow-nww-996 scripting-nww-995 cea-nww-994
32  
33  Revision 1.6.92.1  2005/03/11 15:21:35  nw
34  adjusted locator so that it returns a list of endpoints to connect to.
35  we can get round-robin by shuffling the list.
36  dispatcher tries each endpoint in the list until can connect to one wihout throwing an exception.
37  
38  Revision 1.6  2004/08/13 09:07:58  nw
39  tidied imports
40  
41  Revision 1.5  2004/08/03 16:31:25  nw
42  simplified interface to dispatcher and locator components.
43  removed redundant implementations.
44  
45  Revision 1.4  2004/03/15 23:45:07  nw
46  improved javadoc
47  
48  Revision 1.3  2004/03/04 01:57:35  nw
49  major refactor.
50  upgraded to latest workflow object model.
51  removed internal facade
52  replaced community snippet with objects
53  
54  Revision 1.2  2004/02/27 00:46:03  nw
55  merged branch nww-itn05-bz#91
56  
57  Revision 1.1.2.1  2004/02/27 00:28:14  nw
58  rearranging code
59  
60  Revision 1.1.2.3  2004/02/19 13:38:17  nw
61  started implementation of an alternative tool locator
62  
63  Revision 1.1.2.2  2004/02/17 12:25:38  nw
64  improved javadocs for classes
65  
66  Revision 1.1.2.1  2004/02/12 12:56:39  nw
67  factored out two components, concerned with accessing tool details
68  and talking with the application controller
69   
70  */