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 Details

  • Method Details

    • doHealthCheck

      protected final void doHealthCheck(org.springframework.boot.actuate.health.Health.Builder builder) throws Exception
      Specified by:
      doHealthCheck in class org.springframework.boot.actuate.health.AbstractHealthIndicator
      Throws:
      Exception
    • getMemoryUsage

      protected abstract MemoryUsage getMemoryUsage(MemoryMXBean memoryMXBean)
      Returns the MemoryUsage to perform the health check on.
      Parameters:
      memoryMXBean - the configured MemoryMXBean to extract the MemoryUsage from
      Returns:
      the MemoryUsage to perform the health check on