Class RepositoriesService.UnregisterRepositoryTask

java.lang.Object
org.elasticsearch.cluster.ClusterStateUpdateTask
org.elasticsearch.cluster.AckedClusterStateUpdateTask
org.elasticsearch.repositories.RepositoriesService.UnregisterRepositoryTask
All Implemented Interfaces:
ClusterStateAckListener, ClusterStateTaskListener
Enclosing class:
RepositoriesService

public static class RepositoriesService.UnregisterRepositoryTask extends AckedClusterStateUpdateTask
Task class that extracts the 'execute' part of the functionality for unregistering repositories.
  • Field Details

    • deletedRepositories

      protected final List<String> deletedRepositories
  • Constructor Details

    • UnregisterRepositoryTask

      public UnregisterRepositoryTask(String name)
      Constructor used by ReservedRepositoryAction
      Parameters:
      name - the repository name
  • Method Details

    • execute

      public ClusterState execute(ClusterState currentState)
      Description copied from class: ClusterStateUpdateTask
      Computes the cluster state that results from executing this task on the given state. Returns the *same instance* if no change is required, which is an important and valuable optimisation since it short-circuits the whole publication process and saves a bunch of time and effort.
      Specified by:
      execute in class ClusterStateUpdateTask