com.quadrique.jbuildingblocks.core.process
Class JbbProcessMemory
java.lang.Object
com.quadrique.jbuildingblocks.core.process.JbbProcessMemory
public class JbbProcessMemory
- extends Object
This class keeps track of the amount of memory available as well as the corresponding changes
between 2 consecutive calls to update()
JbbProcessMemory
public JbbProcessMemory()
- constructor
update
public void update()
- update the data
getFreeMemory
public long getFreeMemory()
- Returns:
- long
getFreeMemoryDelta
public long getFreeMemoryDelta()
- Returns:
- the free memory delta between the 2 consecutive calls to update()
(<0 if the amount of free memory has been reduced)
getFreeMemoryStr
public String getFreeMemoryStr()
- Returns:
- string
getFreeMemoryDeltaStr
public String getFreeMemoryDeltaStr()
- Returns:
- string
getTotalMemory
public long getTotalMemory()
- Returns:
- long
getTotalMemoryDelta
public long getTotalMemoryDelta()
- Returns:
- the total memory delta between the 2 consecutive calls to update()
(<0 if the amount of total memory has been reduced, 0 if the same)
getTotalMemoryStr
public String getTotalMemoryStr()
- Returns:
- string
getMemoryUsed
public long getMemoryUsed()
- Returns:
- long
getMemoryUsedDelta
public long getMemoryUsedDelta()
- Returns:
- the memory used delta between the 2 consecutive calls to update() (<0 if the memory used has been reduced)
getMemoryUsedDeltaStr
public String getMemoryUsedDeltaStr()
- Returns:
- string
getMemoryUsedStr
public String getMemoryUsedStr()
- Returns:
- string
getMaxMemory
public long getMaxMemory()
- Returns:
- long
getMaxMemoryStr
public String getMaxMemoryStr()
- Returns:
- string
Copyright © 2001-2008 Quadrique Corporation. All Rights Reserved.