Package org.opencms.monitor
Class CmsMemoryStatus
java.lang.Object
org.opencms.monitor.CmsMemoryStatus
- All Implemented Interfaces:
- Serializable
Data structure for dealing with memory status information.
- Since:
- 6.0.0
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionInitializes a new instance of the memory status with the current memory values.
- 
Method SummaryModifier and TypeMethodDescriptionvoidcalculateAverage(CmsMemoryStatus currentStatus) Calculates the average memory consumption by updating the stored information with the provided current information.intgetCount()Returns the count used to calculate the average.longReturns the current free memory, in megabytes.longReturns the maximum available memory, in megabytes.longReturns the amount of memory currently availble to the JVM, in megabytes.longgetUsage()Returns the current memory usage, in percent.longReturns the amount of memory currently used, in megabytes.voidupdate()Updates this memory status with the current memory information.
- 
Constructor Details- 
CmsMemoryStatuspublic CmsMemoryStatus()Initializes a new instance of the memory status with the current memory values.
 
- 
- 
Method Details- 
calculateAverageCalculates the average memory consumption by updating the stored information with the provided current information.- Parameters:
- currentStatus- the memory status to update the average with
 
- 
getCountReturns the count used to calculate the average.- Returns:
- the count used to calculate the average
 
- 
getFreeMemoryReturns the current free memory, in megabytes.- Returns:
- the current free memory, in megabytes
 
- 
getMaxMemoryReturns the maximum available memory, in megabytes.- Returns:
- the maximum available memory, in megabytes
 
- 
getTotalMemoryReturns the amount of memory currently availble to the JVM, in megabytes.- Returns:
- the amount of memory currently availble to the JVM, in megabytes
 
- 
getUsageReturns the current memory usage, in percent.- Returns:
- the current memory usage, in percent
 
- 
getUsedMemoryReturns the amount of memory currently used, in megabytes.- Returns:
- the amount of memory currently used, in megabytes
 
- 
updateUpdates this memory status with the current memory information.
 
-