dsto.dfc.databeans.io
Class DataObjectPersister2.CleanupTask

java.lang.Object
  extended by dsto.dfc.util.Scheduler.Task
      extended by 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

Field Summary
 
Fields inherited from class dsto.dfc.util.Scheduler.Task
runAt, scheduler
 
Constructor Summary
protected DataObjectPersister2.CleanupTask()
           
 
Method Summary
protected  void keep(List<File> dontDelete, File f)
           
 void run()
           
 
Methods inherited from class dsto.dfc.util.Scheduler.Task
dispose, scheduled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataObjectPersister2.CleanupTask

protected DataObjectPersister2.CleanupTask()
Method Detail

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