public interface MaintenanceWorkflowCallback
MaintenanceRegistryand components that may require maintenance. If a component may cause node to enter maintenance mode, it should register this callback in
MaintenanceRegistryduring its workflow will collect necessary information about maintenance for components without knowing implementation details of the components.
|Modifier and Type||Method and Description|
Supplies list of
MaintenanceRegistryand enables it to check if maintenance is still needed for component that provided this callback. User may fix maintenance situation by hand when node was down thus before going to maintenance mode we should be able to check if it is still necessary.
Trueif maintenance is still needed for the component.
@NotNull @NotNull List<MaintenanceAction<?>> allActions()
MaintenanceActions that user can call to fix maintenance situation for the component or get information about ongoing actions. Should not be null or empty.
@Nullable @Nullable MaintenanceAction<?> automaticAction()
MaintenanceActionthat will be executed automatically by
MaintenanceRegistrywhen node enters maintenance mode. If no automatic actions are provided
MaintenanceRegistrywill wait for user to trigger
MaintenanceActionwith logic to fix the maintenance situation.
MaintenanceActionfor automatic execution or null if maintenance situation should not be fixed automatically.