Class TransportCloseIndexAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.HandledTransportAction<Request,Response>
org.elasticsearch.action.support.master.TransportMasterNodeAction<CloseIndexRequest,CloseIndexResponse>
org.elasticsearch.action.admin.indices.close.TransportCloseIndexAction
public class TransportCloseIndexAction extends TransportMasterNodeAction<CloseIndexRequest,CloseIndexResponse>
Close index action
-
Field Summary
Fields Modifier and Type Field Description static Setting<java.lang.Boolean>
CLUSTER_INDICES_CLOSE_ENABLE_SETTING
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, localConnection, taskManager
-
Constructor Summary
Constructors Constructor Description TransportCloseIndexAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetadataIndexStateService indexStateService, ClusterSettings clusterSettings, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, DestructiveOperations destructiveOperations)
-
Method Summary
Modifier and Type Method Description protected ClusterBlockException
checkBlock(CloseIndexRequest request, ClusterState state)
protected void
doExecute(Task task, CloseIndexRequest request, ActionListener<CloseIndexResponse> listener)
protected void
masterOperation(CloseIndexRequest request, ClusterState state, ActionListener<CloseIndexResponse> listener)
protected void
masterOperation(Task task, CloseIndexRequest request, ClusterState state, ActionListener<CloseIndexResponse> listener)
Override this operation if access to the task parameter is neededMethods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
getMasterActionName, localExecute
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
CLUSTER_INDICES_CLOSE_ENABLE_SETTING
-
-
Constructor Details
-
TransportCloseIndexAction
@Inject public TransportCloseIndexAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetadataIndexStateService indexStateService, ClusterSettings clusterSettings, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, DestructiveOperations destructiveOperations)
-
-
Method Details
-
doExecute
protected void doExecute(Task task, CloseIndexRequest request, ActionListener<CloseIndexResponse> listener)- Overrides:
doExecute
in classTransportMasterNodeAction<CloseIndexRequest,CloseIndexResponse>
-
checkBlock
- Specified by:
checkBlock
in classTransportMasterNodeAction<CloseIndexRequest,CloseIndexResponse>
-
masterOperation
protected void masterOperation(CloseIndexRequest request, ClusterState state, ActionListener<CloseIndexResponse> listener)- Specified by:
masterOperation
in classTransportMasterNodeAction<CloseIndexRequest,CloseIndexResponse>
-
masterOperation
protected void masterOperation(Task task, CloseIndexRequest request, ClusterState state, ActionListener<CloseIndexResponse> listener) throws java.lang.ExceptionDescription copied from class:TransportMasterNodeAction
Override this operation if access to the task parameter is needed- Overrides:
masterOperation
in classTransportMasterNodeAction<CloseIndexRequest,CloseIndexResponse>
- Throws:
java.lang.Exception
-