1
2
3
4
5
6
7
8
9
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
36
37
38
39
40
41
42