Class HeapMemoryHealthIndicator
java.lang.Object
org.springframework.boot.actuate.health.AbstractHealthIndicator
com.cumulocity.microservice.monitoring.health.indicator.memory.AbstractMemoryHealthIndicator
com.cumulocity.microservice.monitoring.health.indicator.memory.HeapMemoryHealthIndicator
- All Implemented Interfaces:
org.springframework.boot.actuate.health.HealthContributor,org.springframework.boot.actuate.health.HealthIndicator
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a newHeapMemoryHealthIndicator. -
Method Summary
Modifier and TypeMethodDescriptionprotected MemoryUsagegetMemoryUsage(MemoryMXBean memoryMXBean) Returns theMemoryUsageto perform the health check on.Methods inherited from class com.cumulocity.microservice.monitoring.health.indicator.memory.AbstractMemoryHealthIndicator
doHealthCheckMethods inherited from class org.springframework.boot.actuate.health.AbstractHealthIndicator
healthMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.boot.actuate.health.HealthIndicator
getHealth
-
Constructor Details
-
HeapMemoryHealthIndicator
Create a newHeapMemoryHealthIndicator.- Parameters:
properties- the memory properties
-
-
Method Details
-
getMemoryUsage
Description copied from class:AbstractMemoryHealthIndicatorReturns theMemoryUsageto perform the health check on.- Specified by:
getMemoryUsagein classAbstractMemoryHealthIndicator- Parameters:
memoryMXBean- the configuredMemoryMXBeanto extract theMemoryUsagefrom- Returns:
- the
MemoryUsageto perform the health check on
-