Package org.compiere.util
Class CMemoryUsage
java.lang.Object
java.lang.management.MemoryUsage
org.compiere.util.CMemoryUsage
Memory Usage Info
- Version:
- $Id: CMemoryUsage.java,v 1.2 2006/07/30 00:54:35 jjanke Exp $
- Author:
- Jorg Janke
-
Constructor Summary
ConstructorDescriptionCMemoryUsage
(long init, long used, long committed, long max) Detail ConstructorCMemoryUsage
(MemoryUsage usage) Parent Constructor -
Method Summary
Methods inherited from class java.lang.management.MemoryUsage
from, getCommitted, getInit, getMax, getUsed
-
Constructor Details
-
CMemoryUsage
public CMemoryUsage(long init, long used, long committed, long max) Detail Constructor- Parameters:
init
- initused
- usedcommitted
- committedmax
- max
-
CMemoryUsage
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
String Representation- Overrides:
toString
in classMemoryUsage
- Returns:
- info
-