Package org.compiere.util
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 Summary
Constructors Constructor Description CMemoryUsage(long init, long used, long committed, long max)
Detail ConstructorCMemoryUsage(MemoryUsage usage)
Parent Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCommittedPercent()
Get Committed (Max-Committed) Memory Percentlong
getFree()
Get Free (Committed-Used) Memoryint
getFreePercent()
Get Free (Committed-Used) Memory PercentString
toString()
String Representation-
Methods inherited from class java.lang.management.MemoryUsage
from, getCommitted, getInit, getMax, getUsed
-
-
-
-
Constructor Detail
-
CMemoryUsage
public CMemoryUsage(long init, long used, long committed, long max)
Detail Constructor- Parameters:
init
- initused
- usedcommitted
- committedmax
- max
-
CMemoryUsage
public CMemoryUsage(MemoryUsage usage)
Parent Constructor- Parameters:
usage
- usage
-
-
Method Detail
-
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 classMemoryUsage
- Returns:
- info
-
-