|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.monitor.CmsMemoryStatus
public class CmsMemoryStatus
Data structure for dealing with memory status information.
| Constructor Summary | |
|---|---|
CmsMemoryStatus()
Initializes a new instance of the memory status with the current memory values. |
|
| Method Summary | |
|---|---|
void |
calculateAverage(CmsMemoryStatus currentStatus)
Calculates the average memory consumption by updating the stored information with the provided current information. |
int |
getCount()
Returns the count used to calculate the average. |
long |
getFreeMemory()
Returns the current free memory, in megabytes. |
long |
getMaxMemory()
Returns the maximum available memory, in megabytes. |
long |
getTotalMemory()
Returns the amount of memory currently availble to the JVM, in megabytes. |
long |
getUsage()
Returns the current memory usage, in percent. |
long |
getUsedMemory()
Returns the amount of memory currently used, in megabytes. |
void |
update()
Updates this memory status with the current memory information. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmsMemoryStatus()
| Method Detail |
|---|
public void calculateAverage(CmsMemoryStatus currentStatus)
currentStatus - the memory status to update the average withpublic int getCount()
public long getFreeMemory()
public long getMaxMemory()
public long getTotalMemory()
public long getUsage()
public long getUsedMemory()
public void update()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||