org.apache.ignite.maintenance

## Interface MaintenanceAction<T>

-     public interface MaintenanceAction<T>

  Maintenance action interface enables user to execute operations related to a particular `MaintenanceTask`. 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 by `MaintenanceWorkflowCallback`. `MaintenanceRegistry` provides an access to maintenance actions for a `MaintenanceTask` with call `MaintenanceRegistry.actionsForMaintenanceTask(String)`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `@Nullable String` | `description()`
    `T` | `execute()` Executes operations of current maintenance action.
    `@NotNull String` | `name()`

- - ### 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 `MaintenanceWorkflowCallback` should have unique names.

    - #### description

          @Nullable
          @Nullable String description()

      Returns:
        Optional user-readable description of maintenance action.

${current.year} Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.16.0
Release Date | : December 15 2023