Package io.camunda.zeebe.util.health
Interface HealthMonitor
- All Superinterfaces:
HealthMonitorable
A HealthMonitor keeps tracks of all components it should monitor and calculates aggregate health
status.
-
Method Summary
Modifier and TypeMethodDescriptionvoidmonitorComponent(String componentName) Add a component name to be monitored.voidregisterComponent(String componentName, HealthMonitorable component) Register the component to be monitoredvoidremoveComponent(String componentName) Stop monitoring the component.voidStarts necessary services for monitoring.Methods inherited from interface io.camunda.zeebe.util.health.HealthMonitorable
addFailureListener, getHealthReport, getName, removeFailureListener
-
Method Details
-
startMonitoring
void startMonitoring()Starts necessary services for monitoring. Typically implemented by a monitor to start periodic monitoring. -
monitorComponent
Add a component name to be monitored. The component will be marked not healthy until the component is registered usingregisterComponent(String, HealthMonitorable) -
removeComponent
Stop monitoring the component.- Parameters:
componentName-
-
registerComponent
Register the component to be monitored- Parameters:
componentName-component-
-