Uses of Interface
io.appform.ranger.core.healthservice.monitor.Monitor
Packages that use Monitor
Package
Description
-
Uses of Monitor in io.appform.ranger.core.healthservice
Methods in io.appform.ranger.core.healthservice with parameters of type MonitorModifier and TypeMethodDescriptionvoidHealthService.addInlineMonitor(Monitor<T> monitor) Add a monitor which will be run in the same thread.voidServiceHealthAggregator.addInlineMonitor(Monitor<HealthcheckStatus> monitor) this method can be used to add aMonitorthis monitor will not be scheduled in a separate isolated thread, but instead its execution will happen inline, in a single thread, along with other inline monitors -
Uses of Monitor in io.appform.ranger.core.healthservice.monitor
Classes in io.appform.ranger.core.healthservice.monitor that implement MonitorModifier and TypeClassDescriptionclassMethods in io.appform.ranger.core.healthservice.monitor that return MonitorModifier and TypeMethodDescriptionstatic Monitor<HealthcheckStatus>Monitors.defaultHealthyMonitor()static Monitor<HealthcheckStatus>Monitors.fileExistenceCheckMonitor(String filePath) -
Uses of Monitor in io.appform.ranger.core.healthservice.monitor.sample
Classes in io.appform.ranger.core.healthservice.monitor.sample that implement MonitorModifier and TypeClassDescriptionclassA monitor that can be used as a counting monitor to check if any countable entity breaches a threashhold Eg: 1.classA simple monitor to keep track of the disk space in a partitionclassA Ping checking monitor, which executes aHttpRequestat regular intervals Maintains every healthcheck in aRollingWindowHealthQueueto prevent continuous flaps of healthclassThis is a simple service in/out rotation check monitor Initialize this class with a filePath (location of the file) This monitor then: Marks service as unhealthy when the file does not exist Marks service as healthy when the file exists