Package com.nuix.superutilities.misc
Class DriveSpaceInfo
- java.lang.Object
-
- com.nuix.superutilities.misc.DriveSpaceInfo
-
public class DriveSpaceInfo extends java.lang.Object
Encapsulates 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.Exception
getError()
long
getFreeBytes()
double
getFreeGigaBytes()
org.joda.time.DateTime
getLastUpdated()
java.lang.String
getPathString()
Gets the path this instance is associated with.long
getTotalBytes()
double
getTotalGigaBytes()
boolean
hadError()
void
refresh()
Causes this instance to refresh values for total bytes and free bytes returned by methodsgetTotalBytes()
andgetFreeBytes()
.java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
-