Package com.nuix.superutilities.misc
Class DriveSpaceInfo
- java.lang.Object
-
- com.nuix.superutilities.misc.DriveSpaceInfo
-
public class DriveSpaceInfo extends java.lang.ObjectEncapsulates drive space information to callback responding to events fired byFreeSpaceMonitor.
-
-
Constructor Summary
Constructors Constructor Description DriveSpaceInfo(java.lang.String pathString)Creates a new instance for the specified file path.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ExceptiongetError()longgetFreeBytes()doublegetFreeGigaBytes()org.joda.time.DateTimegetLastUpdated()java.lang.StringgetPathString()Gets the path this instance is associated with.longgetTotalBytes()doublegetTotalGigaBytes()booleanhadError()voidrefresh()Causes this instance to refresh values for total bytes and free bytes returned by methodsgetTotalBytes()andgetFreeBytes().java.lang.StringtoString()
-
-
-
Method Detail
-
refresh
public void refresh()
Causes this instance to refresh values for total bytes and free bytes returned by methodsgetTotalBytes()andgetFreeBytes().
-
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:
toStringin classjava.lang.Object
-
-