View Javadoc

1   /*$Id: DatacenterApplicationDescriptionLibrary.java,v 1.1.1.1 2005/02/17 18:37:35 mch Exp $
2    * Created on 12-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.dataservice.service.cea;
12  
13  import org.astrogrid.applications.description.BaseApplicationDescriptionLibrary;
14  import org.astrogrid.applications.description.base.ApplicationDescriptionEnvironment;
15  import org.astrogrid.dataservice.service.DataServer;
16  
17  import EDU.oswego.cs.dl.util.concurrent.QueuedExecutor;
18  
19  /*** Application description library for datacenters - initialized with a single instance of a {@link DatacenterApplicationDescription}
20   * @author Noel Winstanley nw@jb.man.ac.uk 12-Jul-2004
21   *
22   */
23  public class DatacenterApplicationDescriptionLibrary extends BaseApplicationDescriptionLibrary {
24      /*** configuration interface describing the configurable metadata for a datacenter
25       * at moment just the name the datacenter application will take.
26       * possibly more to add later.
27       * @author Noel Winstanley nw@jb.man.ac.uk 16-Jul-2004
28       *
29       */
30      public interface DatacenterMetadata {
31          /*** determines the name of the single application in this library */
32          public String getName();
33      }
34      /*** Construct a new DatacenterApplicationDescriptionLibrary
35       *
36       */
37      public DatacenterApplicationDescriptionLibrary(DatacenterMetadata md,DataServer ds,ApplicationDescriptionEnvironment env,QueuedExecutor qe) {
38          super(env);
39          addApplicationDescription(new DatacenterApplicationDescription(md.getName(), ds,env,qe));
40      }
41      /***
42       * @see org.astrogrid.component.descriptor.ComponentDescriptor#getName()
43       */
44      public String getName() {
45          return "Datacenter Application Description Library";
46      }
47  
48  }
49  
50  
51  /*
52  $Log: DatacenterApplicationDescriptionLibrary.java,v $
53  Revision 1.1.1.1  2005/02/17 18:37:35  mch
54  Initial checkin
55  
56  Revision 1.1.1.1  2005/02/16 17:11:24  mch
57  Initial checkin
58  
59  Revision 1.1.30.1  2005/01/13 18:57:31  mch
60  Fixes to metadata mostly
61  
62  Revision 1.1  2004/09/28 15:02:13  mch
63  Merged PAL and server packages
64  
65  Revision 1.3  2004/09/17 01:27:21  nw
66  added thread management.
67  
68  Revision 1.2  2004/07/20 02:14:48  nw
69  final implementaiton of itn06 Datacenter CEA interface
70  
71  Revision 1.1  2004/07/13 17:11:09  nw
72  first draft of an itn06 CEA implementation for datacenter
73   
74  */