org.opengts.util
Class OSTools.MemoryUsage
java.lang.Object
org.opengts.util.OSTools.MemoryUsage
- Direct Known Subclasses:
- OSTools.DiskUsage
- Enclosing class:
- OSTools
public static class OSTools.MemoryUsage
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
OSTools.MemoryUsage
public OSTools.MemoryUsage()
OSTools.MemoryUsage
public OSTools.MemoryUsage(long max,
long total,
long free)
OSTools.MemoryUsage
public OSTools.MemoryUsage(long total,
long free)
getName
public java.lang.String getName()
set
public void set(long max,
long total,
long free)
set
public void set(long total,
long free)
getMaximum
public long getMaximum()
getTotal
public long getTotal()
getFree
public long getFree()
getUsed
public long getUsed()
getMaximum
public double getMaximum(double D)
getTotal
public double getTotal(double D)
getFree
public double getFree(double D)
getUsed
public double getUsed(double D)
getMaximum
public double getMaximum(long D)
getTotal
public double getTotal(long D)
getFree
public double getFree(long D)
getUsed
public double getUsed(long D)
getMaximum_Kb
public double getMaximum_Kb()
getTotal_Kb
public double getTotal_Kb()
getFree_Kb
public double getFree_Kb()
getUsed_Kb
public double getUsed_Kb()
getMaximum_Mb
public double getMaximum_Mb()
getTotal_Mb
public double getTotal_Mb()
getFree_Mb
public double getFree_Mb()
getUsed_Mb
public double getUsed_Mb()
getMaximum_Gb
public double getMaximum_Gb()
getTotal_Gb
public double getTotal_Gb()
getFree_Gb
public double getFree_Gb()
getUsed_Gb
public double getUsed_Gb()
getUtilization
public double getUtilization()
getUsage
public double getUsage()
getUsagePercent
public java.lang.String getUsagePercent()
getTotalFieldLength
public int getTotalFieldLength(long D)
getTotalFieldLength
public int getTotalFieldLength(long D,
OSTools.MemoryUsage mainMu)
toString
public java.lang.String toString(long D,
boolean longFmt)
toString
public java.lang.String toString(long D)
toString
public java.lang.String toString(boolean longFmt)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object