public class CorruptedPdsMaintenanceCallback extends Object implements MaintenanceWorkflowCallback
| Constructor and Description |
|---|
CorruptedPdsMaintenanceCallback(@NotNull File workDir,
@NotNull List<String> cacheStoreDirs) |
| Modifier and Type | Method and Description |
|---|---|
List<MaintenanceAction<?>> |
allActions()
Supplies list of
MaintenanceActions that user can call to fix maintenance situation for the component or
get information about ongoing actions. |
MaintenanceAction<?> |
automaticAction()
Component can provide optional
MaintenanceAction that will be executed automatically
by MaintenanceRegistry when node enters maintenance mode. |
boolean |
shouldProceedWithMaintenance()
Called by
MaintenanceRegistry and enables it to check if maintenance is still needed
for component that provided this callback. |
public boolean shouldProceedWithMaintenance()
MaintenanceRegistry and 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.shouldProceedWithMaintenance in interface MaintenanceWorkflowCallbackTrue if maintenance is still needed for the component.public 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.allActions in interface MaintenanceWorkflowCallbackList of MaintenanceAction.public MaintenanceAction<?> automaticAction()
MaintenanceAction that will be executed automatically
by MaintenanceRegistry when node enters maintenance mode.
If no automatic actions are provided MaintenanceRegistry will wait for user
to trigger MaintenanceAction with logic to fix the maintenance situation.automaticAction in interface MaintenanceWorkflowCallbackMaintenanceAction for automatic execution or null if maintenance situation
should not be fixed automatically.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021