Module org.elasticsearch.server
Package org.elasticsearch.repositories
Class RepositoriesService.UnregisterRepositoryTask
java.lang.Object
org.elasticsearch.cluster.ClusterStateUpdateTask
org.elasticsearch.cluster.AckedClusterStateUpdateTask
org.elasticsearch.repositories.RepositoriesService.UnregisterRepositoryTask
- All Implemented Interfaces:
ClusterStateAckListener
,ClusterStateTaskConfig
,ClusterStateTaskListener
- Enclosing class:
- RepositoriesService
public static class RepositoriesService.UnregisterRepositoryTask
extends AckedClusterStateUpdateTask
Task class that extracts the 'execute' part of the functionality for unregistering
repositories.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.cluster.ClusterStateTaskConfig
ClusterStateTaskConfig.Basic
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionexecute
(ClusterState currentState) Computes the cluster state that results from executing this task on the given state.Methods inherited from class org.elasticsearch.cluster.AckedClusterStateUpdateTask
ackTimeout, mustAck, newResponse, onAckFailure, onAckTimeout, onAllNodesAcked, onFailure
Methods inherited from class org.elasticsearch.cluster.ClusterStateUpdateTask
clusterStateProcessed, priority, timeout
-
Field Details
-
deletedRepositories
-
-
Constructor Details
-
UnregisterRepositoryTask
Constructor used byReservedRepositoryAction
- Parameters:
name
- the repository name
-
-
Method Details
-
execute
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 classClusterStateUpdateTask
-