Class WorkspaceFileSizeResult


  • public class WorkspaceFileSizeResult
    extends java.lang.Object
    • Constructor Detail

      • WorkspaceFileSizeResult

        public WorkspaceFileSizeResult()
    • Method Detail

      • getWorkspace

        public Workspace getWorkspace()
      • setWorkspace

        public void setWorkspace​(Workspace workspace)
      • getFileSizeMap

        public ObjectLongTreeMap getFileSizeMap()
        Retrieve a the file analyzis information for the current Workspace.

        This method retrieve a the underlying ObjectLongTreeMap which is NOT thread safe.
        Always synchronize iteration or modification on the returned map.

        Returns:
        a ObjectLongTreeMap instance, never return null
      • setFileSizeMap

        @Deprecated
        public void setFileSizeMap​(ObjectLongTreeMap fileSizeMap)
        Deprecated.
      • incrementFileSize

        public void incrementFileSize​(java.lang.String contentType,
                                      long increment)
        Increment the filesize analysis for the specified key.

        This method is thread safe.

        Parameters:
        contentType - the content type for which increment operation is performed
        increment - the increment value
        Since:
        jcms-10.0.3
      • getFileSizeMapWithSatellite

        public ObjectLongTreeMap getFileSizeMapWithSatellite()
        Retrieve a the file analyzis information for the current Workspace.

        This method retrieve a the underlying ObjectLongTreeMap which is NOT thread safe.
        Always synchronize iteration or modification on the returned map.

        Returns:
        a ObjectLongTreeMap instance, never return null
      • setFileSizeMapWithSatellite

        @Deprecated
        public void setFileSizeMapWithSatellite​(ObjectLongTreeMap fileSizeMapWithSatellite)
        Deprecated.
      • incrementFileSizeWithSatellite

        public void incrementFileSizeWithSatellite​(java.lang.String contentType,
                                                   long increment)
        Increment the filesize analysis for the specified contentType.

        This method is thread safe.

        Parameters:
        contentType - the content type for which increment operation is performed
        increment - the increment value
        Since:
        jcms-10.0.3