com.sun.enterprise.deploy.shared
Interface FileArchive.StaleFileManager

Enclosing class:
FileArchive

public static interface FileArchive.StaleFileManager

API which FileArchive methods should use for dealing with the StaleFileManager implementation.


Nested Class Summary
static class FileArchive.StaleFileManager.Util
           
 
Method Summary
 void flush()
           
 boolean isEntryMarkerFile(File f)
          Returns whether the specified file is for the hidden timestamp file which FileArchive uses internally.
 boolean isEntryValid(File f, boolean isLogging)
          Returns whether the specified file is valid - that is, is dated after the archive was created.
 boolean isEntryValid(File f, boolean isLogging, Logger logger)
           
 void recordDeletedEntry(File f)
           
 void recordValidEntry(File f)
           
 

Method Detail

isEntryValid

boolean isEntryValid(File f,
                     boolean isLogging)
Returns whether the specified file is valid - that is, is dated after the archive was created.

Parameters:
f - the file to check
isLogging - whether to log a warning about the check of the entry
Returns:
true if the file is valid; false otherwise

isEntryValid

boolean isEntryValid(File f,
                     boolean isLogging,
                     Logger logger)

isEntryMarkerFile

boolean isEntryMarkerFile(File f)
Returns whether the specified file is for the hidden timestamp file which FileArchive uses internally.

Parameters:
f - the file to check
Returns:
true if the File is the hidden timestamp file; false otherwise

recordValidEntry

void recordValidEntry(File f)

recordDeletedEntry

void recordDeletedEntry(File f)

flush

void flush()


Copyright © 2012 GlassFish Community. All Rights Reserved.