Class DirectorySizeComputer
- java.lang.Object
-
- org.silverpeas.core.silverstatistics.volume.service.DirectorySizeComputer
-
- All Implemented Interfaces:
Callable<DirectoryStats>
public class DirectorySizeComputer extends Object
Compute the total size of a directory.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DirectoryStats
call()
protected void
handleTransverseFile(Path file, BasicFileAttributes attrs)
protected void
setSpecificResult(DirectoryStats result, ComponentStatisticsProvider componentStatistics)
protected void
setTransverseResult(DirectoryStats result)
-
-
-
Field Detail
-
directory
protected final File directory
-
-
Method Detail
-
handleTransverseFile
protected void handleTransverseFile(Path file, BasicFileAttributes attrs)
-
setTransverseResult
protected void setTransverseResult(DirectoryStats result)
-
setSpecificResult
protected void setSpecificResult(DirectoryStats result, ComponentStatisticsProvider componentStatistics)
-
call
public final DirectoryStats call()
- Specified by:
call
in interfaceCallable<DirectoryStats>
-
-