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, indexNameExpressionResolver, threadPool, transportService
-
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, logger, 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 ClusterBlockExceptioncheckBlock(CloseIndexRequest request, ClusterState state)protected voiddoExecute(Task task, CloseIndexRequest request, ActionListener<CloseIndexResponse> listener)protected java.lang.Stringexecutor()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 neededprotected CloseIndexResponsenewResponse()protected CloseIndexResponseread(StreamInput in)-
Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
getMasterActionName, localExecute
-
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
-
-
-
Field Detail
-
CLUSTER_INDICES_CLOSE_ENABLE_SETTING
public static final Setting<java.lang.Boolean> CLUSTER_INDICES_CLOSE_ENABLE_SETTING
-
-
Constructor Detail
-
TransportCloseIndexAction
@Inject public TransportCloseIndexAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetaDataIndexStateService indexStateService, ClusterSettings clusterSettings, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, DestructiveOperations destructiveOperations)
-
-
Method Detail
-
executor
protected java.lang.String executor()
- Specified by:
executorin classTransportMasterNodeAction<CloseIndexRequest,CloseIndexResponse>
-
newResponse
protected CloseIndexResponse newResponse()
- Specified by:
newResponsein classTransportMasterNodeAction<CloseIndexRequest,CloseIndexResponse>- Returns:
- a new response instance. Typically this is used for serialization using the
Streamable.readFrom(StreamInput)method.
-
read
protected CloseIndexResponse read(StreamInput in) throws java.io.IOException
- Overrides:
readin classTransportMasterNodeAction<CloseIndexRequest,CloseIndexResponse>- Throws:
java.io.IOException
-
doExecute
protected void doExecute(Task task, CloseIndexRequest request, ActionListener<CloseIndexResponse> listener)
- Overrides:
doExecutein classTransportMasterNodeAction<CloseIndexRequest,CloseIndexResponse>
-
checkBlock
protected ClusterBlockException checkBlock(CloseIndexRequest request, ClusterState state)
- 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 java.lang.Exception
Description copied from class:TransportMasterNodeActionOverride this operation if access to the task parameter is needed- Overrides:
masterOperationin classTransportMasterNodeAction<CloseIndexRequest,CloseIndexResponse>- Throws:
java.lang.Exception
-
-