Package org.apache.ignite.maintenance
Interface MaintenanceAction<T>
-
public interface MaintenanceAction<T>Maintenance action interface enables user to execute operations related to a particularMaintenanceTask. These operations may resolve maintenance situation (e.g. remove corrupted data files), get information about other ongoing maintenance action (e.g. if some action requires a lot of time and user wants to know current progress of the action) or cancel other ongoing action. List of maintenance actions available for each task is defined byMaintenanceWorkflowCallback.MaintenanceRegistryprovides an access to maintenance actions for aMaintenanceTaskwith callMaintenanceRegistry.actionsForMaintenanceTask(String)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable Stringdescription()Texecute()Executes operations of current maintenance action.@NotNull Stringname()
-
-
-
Method Detail
-
execute
T execute()
Executes operations of current maintenance action.- Returns:
- Result of the maintenance action.
-
name
@NotNull @NotNull String name()
- Returns:
- Mandatory human-readable name of maintenance action.
All actions of single
MaintenanceWorkflowCallbackshould have unique names.
-
description
@Nullable @Nullable String description()
- Returns:
- Optional user-readable description of maintenance action.
-
-