View Javadoc

1   /*
2    * $Id: ControlService.java,v 1.2 2005/08/10 14:45:37 clq2 Exp $
3    * 
4    * Created on 20-Jul-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  /***
16   * Provides functions to control the functioning of the Common Exection Controller.
17   * @author Paul Harrison (pharriso@eso.org) 20-Jul-2005
18   * @version $Name: HEAD $
19   * @since initial Coding
20   */
21  public interface ControlService {
22     /***
23      * Deletes any temporary files associated with execution of applications. The time before which files should be deleted is 
24      * expressed as a delta time from the current time.
25      * @TODO this currently returns a string with a summary of what has been deleted - it probably should return a bean with this information - string was chosen for ease of implementation in jsp etc.
26      * @param days The delta time in days before which the files should be deleted. Should be positive, e.g. a value of 2 means delete files which are nore than 3 days old.
27      * @return summary of what has been deleted.
28      */
29     public String deleteOldRuntimeWorkFiles(int days);
30  
31  }
32  
33  
34  /*
35   * $Log: ControlService.java,v $
36   * Revision 1.2  2005/08/10 14:45:37  clq2
37   * cea_pah_1317
38   *
39   * Revision 1.1.2.1  2005/07/21 15:09:19  pah
40   * new control component - provided methods for controlling the CEC
41   *
42   */