my-lib 20041108

my.yaep.files
Class FilePurge

java.lang.Object
  extended bymy.yaca.helpers.LogUser
      extended bymy.yaep.files.FilePurge
All Implemented Interfaces:
Executable, java.io.FileFilter

public class FilePurge
extends LogUser
implements java.io.FileFilter, Executable

Purge a directory. Purge is compression and/or deletion of older file. ]]>

Author:
D.Bernard(dwayne@java-fan.com)
Version:
20040816
Source :
my.yaep.files.FilePurge
my.yaep.files.FilePurgeTestCase
Diagrams :

Field Summary
protected static long DAY_DURATION
          number of millisecond in one day
 
Fields inherited from class my.yaca.helpers.LogUser
logger_
 
Constructor Summary
FilePurge()
           
 
Method Summary
 boolean accept(java.io.File file)
          Always return false to avoid add of the File in an unused array.
 void enable(Configuration config)
          Apply the configuration and enable the service.
 boolean execute()
           
 
Methods inherited from class my.yaca.helpers.LogUser
use
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DAY_DURATION

protected static final long DAY_DURATION
number of millisecond in one day

See Also:
Constant Field Values
Constructor Detail

FilePurge

public FilePurge()
Method Detail

enable

public void enable(Configuration config)
            throws java.lang.Exception
Apply the configuration and enable the service.

Parameters:
config - the configuration to read.
Throws:
java.lang.Exception

execute

public boolean execute()
                throws java.lang.Exception
Specified by:
execute in interface Executable
Throws:
java.lang.Exception

accept

public boolean accept(java.io.File file)
Always return false to avoid add of the File in an unused array.

Specified by:
accept in interface java.io.FileFilter

my-lib 20041108

Copyright ? 2004 D. Bernard. All Rights Reserved.