uk.ac.ed.inf.ogsaconfig.garm.collections.policies
Class FreshenPolicy

java.lang.Object
  |
  +--uk.ac.ed.inf.ogsaconfig.garm.collections.policies.FreshenPolicy
All Implemented Interfaces:
Policy

public class FreshenPolicy
extends java.lang.Object
implements Policy

This policy mandates that a file should be overwritten only if the new file has a strictly newer modification time


Constructor Summary
FreshenPolicy()
           
 
Method Summary
 boolean replace(VFile cf, VFile nf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FreshenPolicy

public FreshenPolicy()
Method Detail

replace

public boolean replace(VFile cf,
                       VFile nf)
Specified by:
replace in interface Policy
Parameters:
cf - is the file currently in place
nf - is the file that is a candidate to replace it
Returns:
true if the replacement should occur, false otherwise