Class AbstractMemoryHealthIndicator
java.lang.Object
org.springframework.boot.actuate.health.AbstractHealthIndicator
com.cumulocity.microservice.monitoring.health.indicator.memory.AbstractMemoryHealthIndicator
- All Implemented Interfaces:
org.springframework.boot.actuate.health.HealthContributor,org.springframework.boot.actuate.health.HealthIndicator
- Direct Known Subclasses:
HeapMemoryHealthIndicator,NonHeapMemoryHealthIndicator
public abstract class AbstractMemoryHealthIndicator
extends org.springframework.boot.actuate.health.AbstractHealthIndicator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voiddoHealthCheck(org.springframework.boot.actuate.health.Health.Builder builder) protected abstract MemoryUsagegetMemoryUsage(MemoryMXBean memoryMXBean) Returns theMemoryUsageto perform the health check on.Methods 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
-
AbstractMemoryHealthIndicator
Create a newAbstractMemoryHealthIndicator.- Parameters:
properties- the memory properties
-
-
Method Details
-
doHealthCheck
protected final void doHealthCheck(org.springframework.boot.actuate.health.Health.Builder builder) throws Exception - Specified by:
doHealthCheckin classorg.springframework.boot.actuate.health.AbstractHealthIndicator- Throws:
Exception
-
getMemoryUsage
Returns theMemoryUsageto perform the health check on.- Parameters:
memoryMXBean- the configuredMemoryMXBeanto extract theMemoryUsagefrom- Returns:
- the
MemoryUsageto perform the health check on
-