Class DiskItem

java.lang.Object
com.cloudbees.simplediskusage.DiskItem
All Implemented Interfaces:
Comparable<DiskItem>
Direct Known Subclasses:
JobDiskItem

@ExportedBean public class DiskItem extends Object implements Comparable<DiskItem>
A directory path on the disk with its usage information
Author:
Nicolas De Loof
  • Constructor Details

  • Method Details

    • getPath

      public File getPath()
    • getUsage

      @Exported(name="usageKB") public Long getUsage()
    • getCount

      @Exported public Long getCount()
    • getDisplayName

      @Exported public String getDisplayName()
    • getPathString

      @Exported public String getPathString()
    • getUsageInMB

      public String getUsageInMB()
      Returns the usage value in MB
      Returns:
      disk usage in MB
    • compareTo

      public int compareTo(DiskItem o)
      Specified by:
      compareTo in interface Comparable<DiskItem>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object