Class TransportClusterUpdateSettingsAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.HandledTransportAction<Request,Response>
org.elasticsearch.action.support.master.TransportMasterNodeAction<ClusterUpdateSettingsRequest,ClusterUpdateSettingsResponse>
org.elasticsearch.action.admin.cluster.settings.TransportClusterUpdateSettingsAction
public class TransportClusterUpdateSettingsAction
extends TransportMasterNodeAction<ClusterUpdateSettingsRequest,ClusterUpdateSettingsResponse>
-
Field Summary
Fields inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
clusterService, executor, indexNameExpressionResolver, threadPool, transportService
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, taskManager
-
Constructor Summary
ConstructorDescriptionTransportClusterUpdateSettingsAction
(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, AllocationService allocationService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, ClusterSettings clusterSettings) -
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockException
checkBlock
(ClusterUpdateSettingsRequest request, ClusterState state) skip check block if: Only at least one of cluster.blocks.read_only or cluster.blocks.read_only_allow_delete is being cleared (set to null or false).protected void
masterOperation
(Task task, ClusterUpdateSettingsRequest request, ClusterState state, ActionListener<ClusterUpdateSettingsResponse> listener) Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, localExecute
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute
-
Constructor Details
-
TransportClusterUpdateSettingsAction
@Inject public TransportClusterUpdateSettingsAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, AllocationService allocationService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, ClusterSettings clusterSettings)
-
-
Method Details
-
checkBlock
protected ClusterBlockException checkBlock(ClusterUpdateSettingsRequest request, ClusterState state) skip check block if: Only at least one of cluster.blocks.read_only or cluster.blocks.read_only_allow_delete is being cleared (set to null or false). Or all of the following are true: 1. At least one of cluster.blocks.read_only or cluster.blocks.read_only_allow_delete is being cleared (set to null or false). 2. Neither cluster.blocks.read_only nor cluster.blocks.read_only_allow_delete is being set to true. 3. The only other settings in this update are archived ones being set to null.- Specified by:
checkBlock
in classTransportMasterNodeAction<ClusterUpdateSettingsRequest,
ClusterUpdateSettingsResponse>
-
masterOperation
protected void masterOperation(Task task, ClusterUpdateSettingsRequest request, ClusterState state, ActionListener<ClusterUpdateSettingsResponse> listener) - Specified by:
masterOperation
in classTransportMasterNodeAction<ClusterUpdateSettingsRequest,
ClusterUpdateSettingsResponse>
-