org.opengts.util
Class OSTools.MemoryUsage

java.lang.Object
  extended by org.opengts.util.OSTools.MemoryUsage
Direct Known Subclasses:
OSTools.DiskUsage
Enclosing class:
OSTools

public static class OSTools.MemoryUsage
extends java.lang.Object


Constructor Summary
OSTools.MemoryUsage()
           
OSTools.MemoryUsage(long total, long free)
           
OSTools.MemoryUsage(long max, long total, long free)
           
 
Method Summary
 double getFree_Gb()
           
 double getFree_Kb()
           
 double getFree_Mb()
           
 long getFree()
           
 double getFree(double D)
           
 double getFree(long D)
           
 double getMaximum_Gb()
           
 double getMaximum_Kb()
           
 double getMaximum_Mb()
           
 long getMaximum()
           
 double getMaximum(double D)
           
 double getMaximum(long D)
           
 java.lang.String getName()
           
 double getTotal_Gb()
           
 double getTotal_Kb()
           
 double getTotal_Mb()
           
 long getTotal()
           
 double getTotal(double D)
           
 double getTotal(long D)
           
 int getTotalFieldLength(long D)
           
 int getTotalFieldLength(long D, OSTools.MemoryUsage mainMu)
           
 double getUsage()
           
 java.lang.String getUsagePercent()
           
 double getUsed_Gb()
           
 double getUsed_Kb()
           
 double getUsed_Mb()
           
 long getUsed()
           
 double getUsed(double D)
           
 double getUsed(long D)
           
 double getUtilization()
           
 void set(long total, long free)
           
 void set(long max, long total, long free)
           
 java.lang.String toString()
           
 java.lang.String toString(boolean longFmt)
           
 java.lang.String toString(long D)
           
 java.lang.String toString(long D, boolean longFmt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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