View Javadoc

1   /*
2    * $Id: ApplicationEnvironmentRetriver.java,v 1.2 2005/07/05 08:27:00 clq2 Exp $
3    * 
4    * Created on 02-Jun-2005 by Paul Harrison (pharriso@eso.org)
5    * Copyright 2005 ESO. All rights reserved.
6    *
7    * This software is published under the terms of the ESO 
8    * Software License, a copy of which has been included 
9    * with this distribution in the LICENSE.txt file.  
10   *
11   */ 
12  
13  package org.astrogrid.applications.manager;
14  
15  import java.io.File;
16  import java.io.FileNotFoundException;
17  
18  import org.astrogrid.applications.ApplicationEnvironmentUnavailableException;
19  import org.astrogrid.applications.ApplicationStillRunningException;
20  import org.astrogrid.applications.manager.persist.ExecutionIDNotFoundException;
21  import org.astrogrid.applications.manager.persist.PersistenceException;
22  
23  
24  /***
25   * @author Paul Harrison (pharriso@eso.org) 02-Jun-2005
26   * @version $Name: HEAD $
27   * @since initial Coding
28   */
29  public interface ApplicationEnvironmentRetriver {
30     public static final class StdIOType
31     {
32        private final int val;
33        private StdIOType(final int s)
34        {
35           val = s;
36        }
37        public static final StdIOType err = new StdIOType(0);
38        public static final StdIOType out = new StdIOType(1);
39     }
40  
41    public File retrieveStdOut(String executionId) throws ExecutionIDNotFoundException, PersistenceException, FileNotFoundException, ApplicationStillRunningException, ApplicationEnvironmentUnavailableException;
42    public File retrieveStdErr(String executionId) throws ExecutionIDNotFoundException, PersistenceException, FileNotFoundException, ApplicationStillRunningException, ApplicationEnvironmentUnavailableException;
43  }
44  
45  
46  /*
47   * $Log: ApplicationEnvironmentRetriver.java,v $
48   * Revision 1.2  2005/07/05 08:27:00  clq2
49   * paul's 559b and 559c for wo/apps and jes
50   *
51   * Revision 1.1.4.2  2005/06/09 22:17:58  pah
52   * tweaking the log getter
53   *
54   * Revision 1.1.4.1  2005/06/09 08:47:32  pah
55   * result of merging branch cea_pah_559b into HEAD
56   *
57   * Revision 1.1.2.1  2005/06/03 16:01:48  pah
58   * first try at getting commandline execution log bz#1058
59   *
60   */