Class DropwizardHealthMonitor

java.lang.Object
io.appform.ranger.core.healthservice.monitor.IsolatedHealthMonitor<io.appform.ranger.core.healthcheck.HealthcheckStatus>
io.appform.ranger.discovery.bundle.monitors.DropwizardHealthMonitor
All Implemented Interfaces:
io.appform.ranger.core.healthservice.monitor.Monitor<io.appform.ranger.core.healthcheck.HealthcheckStatus>, Runnable

public class DropwizardHealthMonitor extends io.appform.ranger.core.healthservice.monitor.IsolatedHealthMonitor<io.appform.ranger.core.healthcheck.HealthcheckStatus>
This monitor calls dropwizard healthchecks every few secs.
  • Field Summary

    Fields inherited from class io.appform.ranger.core.healthservice.monitor.IsolatedHealthMonitor

    name
  • Constructor Summary

    Constructors
    Constructor
    Description
    DropwizardHealthMonitor(io.appform.ranger.core.healthservice.TimeEntity runInterval, long stalenessAllowedInMillis, io.dropwizard.setup.Environment environment)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.appform.ranger.core.healthcheck.HealthcheckStatus
     

    Methods inherited from class io.appform.ranger.core.healthservice.monitor.IsolatedHealthMonitor

    disable, enable, getHealthStatus, getName, getRunInterval, hasValidUpdatedTime, isDisabled, run

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DropwizardHealthMonitor

      public DropwizardHealthMonitor(io.appform.ranger.core.healthservice.TimeEntity runInterval, long stalenessAllowedInMillis, io.dropwizard.setup.Environment environment)
  • Method Details

    • monitor

      public io.appform.ranger.core.healthcheck.HealthcheckStatus monitor()