org.silverpeas.silverstatistics.volume
Class DirectoryVolumeService

java.lang.Object
  extended by org.silverpeas.silverstatistics.volume.DirectoryVolumeService

public class DirectoryVolumeService
extends Object

Compute the size in terms of number of files and total size of all the components available for a specified user.


Constructor Summary
DirectoryVolumeService()
           
DirectoryVolumeService(File workspace)
           
 
Method Summary
 Map<String,String[]> getFileNumberVentilation(String userId)
           
 Map<String,String[]> getSizeVentilation(String userId)
           
 long getTotalSize(String userId)
           
 List<DirectoryStats> getVolumes(String userId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryVolumeService

public DirectoryVolumeService()

DirectoryVolumeService

public DirectoryVolumeService(File workspace)
Method Detail

getVolumes

public List<DirectoryStats> getVolumes(String userId)
                                throws InterruptedException,
                                       ExecutionException
Throws:
InterruptedException
ExecutionException

getTotalSize

public long getTotalSize(String userId)
                  throws InterruptedException,
                         ExecutionException
Throws:
InterruptedException
ExecutionException

getSizeVentilation

public Map<String,String[]> getSizeVentilation(String userId)
                                        throws InterruptedException,
                                               ExecutionException
Throws:
InterruptedException
ExecutionException

getFileNumberVentilation

public Map<String,String[]> getFileNumberVentilation(String userId)
                                              throws InterruptedException,
                                                     ExecutionException
Throws:
InterruptedException
ExecutionException


Copyright © 2016 Silverpeas. All Rights Reserved.