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
FieldsFields inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
clusterService, executor, indexNameExpressionResolver, threadPool, transportServiceFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, localConnection, taskManager -
Constructor Summary
ConstructorsConstructorDescriptionTransportCloseIndexAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetadataIndexStateService indexStateService, ClusterSettings clusterSettings, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, DestructiveOperations destructiveOperations) -
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockExceptioncheckBlock(CloseIndexRequest request, ClusterState state)protected voiddoExecute(Task task, CloseIndexRequest request, ActionListener<CloseIndexResponse> listener)protected voidmasterOperation(CloseIndexRequest request, ClusterState state, ActionListener<CloseIndexResponse> listener)protected voidmasterOperation(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, localExecuteMethods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
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:
doExecutein classTransportMasterNodeAction<CloseIndexRequest,CloseIndexResponse>
-
checkBlock
- Specified by:
checkBlockin classTransportMasterNodeAction<CloseIndexRequest,CloseIndexResponse>
-
masterOperation
protected void masterOperation(CloseIndexRequest request, ClusterState state, ActionListener<CloseIndexResponse> listener)- Specified by:
masterOperationin classTransportMasterNodeAction<CloseIndexRequest,CloseIndexResponse>
-
masterOperation
protected void masterOperation(Task task, CloseIndexRequest request, ClusterState state, ActionListener<CloseIndexResponse> listener) throws ExceptionDescription copied from class:TransportMasterNodeActionOverride this operation if access to the task parameter is needed- Overrides:
masterOperationin classTransportMasterNodeAction<CloseIndexRequest,CloseIndexResponse>- Throws:
Exception
-