Class CMemoryUsage

java.lang.Object
java.lang.management.MemoryUsage
org.compiere.util.CMemoryUsage

public class CMemoryUsage extends MemoryUsage
Memory Usage Info
Version:
$Id: CMemoryUsage.java,v 1.2 2006/07/30 00:54:35 jjanke Exp $
Author:
Jorg Janke
  • Constructor Details

    • CMemoryUsage

      public CMemoryUsage(long init, long used, long committed, long max)
      Detail Constructor
      Parameters:
      init - init
      used - used
      committed - committed
      max - max
    • CMemoryUsage

      public CMemoryUsage(MemoryUsage usage)
      Parent Constructor
      Parameters:
      usage - usage
  • Method Details

    • getFree

      public long getFree()
      Get Free (Committed-Used) Memory
      Returns:
      memory
    • getFreePercent

      public int getFreePercent()
      Get Free (Committed-Used) Memory Percent
      Returns:
      memory
    • getCommittedPercent

      public int getCommittedPercent()
      Get Committed (Max-Committed) Memory Percent
      Returns:
      memory
    • toString

      public String toString()
      String Representation
      Overrides:
      toString in class MemoryUsage
      Returns:
      info