Module org.elasticsearch.server
Class TransportResizeAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<ResizeRequest,CreateIndexResponse>
org.elasticsearch.action.support.HandledTransportAction<ResizeRequest,CreateIndexResponse>
org.elasticsearch.action.support.master.TransportMasterNodeAction<ResizeRequest,CreateIndexResponse>
org.elasticsearch.action.admin.indices.shrink.TransportResizeAction
- All Implemented Interfaces:
ActionWithReservedState<ResizeRequest>
public class TransportResizeAction
extends TransportMasterNodeAction<ResizeRequest,CreateIndexResponse>
Main class to initiate resizing (shrink / split) an index into a new index
-
Field Summary
Fields inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
clusterService, executor, threadPool, transportServiceFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, taskManager -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTransportResizeAction(String actionName, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetadataCreateIndexService createIndexService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, Client client) TransportResizeAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetadataCreateIndexService createIndexService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, Client client) -
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockExceptioncheckBlock(ResizeRequest request, ClusterState state) protected voidmasterOperation(Task task, ResizeRequest resizeRequest, ClusterState state, ActionListener<CreateIndexResponse> listener) Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, localExecuteMethods inherited from class org.elasticsearch.action.support.TransportAction
execute, executeDirect, localOnlyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.reservedstate.ActionWithReservedState
modifiedKeys, reservedStateHandlerName, validateForReservedState
-
Constructor Details
-
TransportResizeAction
@Inject public TransportResizeAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetadataCreateIndexService createIndexService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, Client client) -
TransportResizeAction
protected TransportResizeAction(String actionName, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetadataCreateIndexService createIndexService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, Client client)
-
-
Method Details
-
checkBlock
- Specified by:
checkBlockin classTransportMasterNodeAction<ResizeRequest,CreateIndexResponse>
-
masterOperation
protected void masterOperation(Task task, ResizeRequest resizeRequest, ClusterState state, ActionListener<CreateIndexResponse> listener) - Specified by:
masterOperationin classTransportMasterNodeAction<ResizeRequest,CreateIndexResponse>
-