Class DriveSpaceInfo


  • public class DriveSpaceInfo
    extends java.lang.Object
    Encapsulates drive space information to callback responding to events fired by FreeSpaceMonitor.
    • Constructor Detail

      • DriveSpaceInfo

        public DriveSpaceInfo​(java.lang.String pathString)
        Creates a new instance for the specified file path.
        Parameters:
        pathString - The file path
    • Method Detail

      • refresh

        public void refresh()
        Causes this instance to refresh values for total bytes and free bytes returned by methods getTotalBytes() and getFreeBytes().
      • getPathString

        public java.lang.String getPathString()
        Gets the path this instance is associated with.
        Returns:
        The associate path string
      • getTotalBytes

        public long getTotalBytes()
      • getFreeBytes

        public long getFreeBytes()
      • hadError

        public boolean hadError()
      • getError

        public java.lang.Exception getError()
      • getTotalGigaBytes

        public double getTotalGigaBytes()
      • getFreeGigaBytes

        public double getFreeGigaBytes()
      • getLastUpdated

        public org.joda.time.DateTime getLastUpdated()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object