View Javadoc

1   /*$Id: CeaQueuedExecutor.java,v 1.1.1.1 2005/02/17 18:37:35 mch Exp $
2    * Created on 17-Sep-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.component.descriptor.ComponentDescriptor;
14  
15  import org.picocontainer.Startable;
16  
17  import junit.framework.Test;
18  
19  import EDU.oswego.cs.dl.util.concurrent.Channel;
20  import EDU.oswego.cs.dl.util.concurrent.QueuedExecutor;
21  
22  /*** simple extension of hte standard queued executor - so it fits in with the cea component system.
23   * @author Noel Winstanley nw@jb.man.ac.uk 17-Sep-2004
24   *
25   */
26  public class CeaQueuedExecutor extends QueuedExecutor implements
27          ComponentDescriptor, Startable {
28  
29      /*** Construct a new CeaQueuedExecutor
30       * @param arg0
31       */
32      public CeaQueuedExecutor(Channel arg0) {
33          super(arg0);
34      }
35  
36      /*** Construct a new CeaQueuedExecutor
37       * 
38       */
39      public CeaQueuedExecutor() {
40          super();
41      }
42  
43      /***
44       * @see org.astrogrid.component.descriptor.ComponentDescriptor#getName()
45       */
46      public String getName() {
47          return "Queued Executor";
48      }
49  
50      /***
51       * @see org.astrogrid.component.descriptor.ComponentDescriptor#getDescription()
52       */
53      public String getDescription() {
54          return "";
55      }
56  
57      /***
58       * @see org.astrogrid.component.descriptor.ComponentDescriptor#getInstallationTest()
59       */
60      public Test getInstallationTest() {
61          return null;
62      }
63  
64      /***
65       * @see org.picocontainer.Startable#start()
66       */
67      public void start() {
68      }
69  
70      /***
71       * @see org.picocontainer.Startable#stop()
72       */
73      public void stop() {
74          super.shutdownNow();
75      }
76  
77  }
78  
79  
80  /* 
81  $Log: CeaQueuedExecutor.java,v $
82  Revision 1.1.1.1  2005/02/17 18:37:35  mch
83  Initial checkin
84  
85  Revision 1.1.1.1  2005/02/16 17:11:24  mch
86  Initial checkin
87  
88  Revision 1.1  2004/09/28 15:02:13  mch
89  Merged PAL and server packages
90  
91  Revision 1.1  2004/09/17 01:27:21  nw
92  added thread management.
93   
94  */