com.quadrique.jbuildingblocks.core.process
Class JbbProcessMemory

java.lang.Object
  extended by 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()


Constructor Summary
JbbProcessMemory()
          constructor
 
Method Summary
 long getFreeMemory()
           
 long getFreeMemoryDelta()
           
 String getFreeMemoryDeltaStr()
           
 String getFreeMemoryStr()
           
 long getMaxMemory()
           
 String getMaxMemoryStr()
           
 long getMemoryUsed()
           
 long getMemoryUsedDelta()
           
 String getMemoryUsedDeltaStr()
           
 String getMemoryUsedStr()
           
 long getTotalMemory()
           
 long getTotalMemoryDelta()
           
 String getTotalMemoryStr()
           
 void update()
          update the data
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JbbProcessMemory

public JbbProcessMemory()
constructor

Method Detail

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.