dsto.dfc.databeans.io
Class DataObjectPersister2.CleanupTask
java.lang.Object
dsto.dfc.util.Scheduler.Task
dsto.dfc.databeans.io.DataObjectPersister2.CleanupTask
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- DataObjectPersister2
protected class DataObjectPersister2.CleanupTask
- extends Scheduler.Task
Cleans up old backups according to the following rules
Preserve a trail of backups, daily backups for 1 week
weekly backups of 1 month and monthly backups for 1 year.
Delete all other backups.
- Author:
- KarunarD
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataObjectPersister2.CleanupTask
protected DataObjectPersister2.CleanupTask()
keep
protected void keep(List<File> dontDelete,
File f)
run
public void run()
- Specified by:
run
in interface Runnable
- Specified by:
run
in class Scheduler.Task
Copyright © 2008 Commonwealth of Australia