NASA World Wind

gov.nasa.worldwind.cache
Class FileStoreDataSet

java.lang.Object
  extended by gov.nasa.worldwind.cache.FileStoreDataSet

public class FileStoreDataSet
extends java.lang.Object


Field Summary
static java.lang.String DAY
           
static java.lang.String HOUR
           
static java.lang.String MONTH
           
static java.lang.String WEEK
           
static java.lang.String YEAR
           
 
Constructor Summary
FileStoreDataSet(java.io.File root, java.lang.String cacheRootPath)
           
 
Method Summary
 void delete(boolean echo)
           
 void deleteOutOfScopeFiles(java.lang.String unit, int interval, boolean echo)
           
static java.util.List<FileStoreDataSet> getDataSets(java.io.File cacheRoot)
           
 java.util.List<java.io.File> getExclusions()
           
 long getLastModified()
           
 java.lang.String getName()
           
 long getOutOfScopeSize(java.lang.String unit, int interval)
           
 java.lang.String getPath()
           
 long getSize()
           
 boolean isFileGranularity()
           
 void setExclusions(java.lang.Iterable<? extends java.io.File> exclusions)
           
 void setFileGranularity(boolean fileGranularity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DAY

public static final java.lang.String DAY
See Also:
Constant Field Values

HOUR

public static final java.lang.String HOUR
See Also:
Constant Field Values

MONTH

public static final java.lang.String MONTH
See Also:
Constant Field Values

WEEK

public static final java.lang.String WEEK
See Also:
Constant Field Values

YEAR

public static final java.lang.String YEAR
See Also:
Constant Field Values
Constructor Detail

FileStoreDataSet

public FileStoreDataSet(java.io.File root,
                        java.lang.String cacheRootPath)
Method Detail

delete

public void delete(boolean echo)

deleteOutOfScopeFiles

public void deleteOutOfScopeFiles(java.lang.String unit,
                                  int interval,
                                  boolean echo)

getDataSets

public static java.util.List<FileStoreDataSet> getDataSets(java.io.File cacheRoot)

getExclusions

public java.util.List<java.io.File> getExclusions()

getLastModified

public long getLastModified()

getName

public java.lang.String getName()

getOutOfScopeSize

public long getOutOfScopeSize(java.lang.String unit,
                              int interval)

getPath

public java.lang.String getPath()

getSize

public long getSize()

isFileGranularity

public boolean isFileGranularity()

setExclusions

public void setExclusions(java.lang.Iterable<? extends java.io.File> exclusions)

setFileGranularity

public void setFileGranularity(boolean fileGranularity)

NASA World Wind