|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.weborganic.ox.util.PeriodicCleaner
public final class PeriodicCleaner
Periodically removes old packages from the temporary directory.
Field Summary | |
---|---|
static long |
INITIAL_DELAY_MINUTES
Initial delay before the first cleanup (2 minutes). |
Method Summary | |
---|---|
static int |
clean()
Delete temporary files created by this application which are at least an hour old. |
static int |
clean(File dir)
|
static void |
setDirectory(File directory)
|
static void |
setDownload(File directory)
|
static void |
start(int rate)
Start the cleaning thread. |
static void |
stop()
Stops the cleaning thread. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long INITIAL_DELAY_MINUTES
Method Detail |
---|
public static void start(int rate)
rate
- the period in minutes between clean upspublic static void stop()
public static void setDirectory(File directory)
directory
- the directory to setpublic static void setDownload(File directory)
directory
- the directory to setpublic static int clean()
public static int clean(File dir)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |