Class RepositoriesService.RegisterRepositoryTask

All Implemented Interfaces:
ClusterStateAckListener, ClusterStateTaskListener
Enclosing class:
RepositoriesService

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

    • found

      protected boolean found
    • changed

      protected boolean changed
  • Constructor Details

  • 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