Class TransportResizeAction
- java.lang.Object
-
- org.elasticsearch.common.component.AbstractComponent
-
- org.elasticsearch.action.support.TransportAction<Request,Response>
-
- org.elasticsearch.action.support.HandledTransportAction<Request,Response>
-
- org.elasticsearch.action.support.master.TransportMasterNodeAction<ResizeRequest,ResizeResponse>
-
- org.elasticsearch.action.admin.indices.shrink.TransportResizeAction
-
- Direct Known Subclasses:
TransportShrinkAction
public class TransportResizeAction extends TransportMasterNodeAction<ResizeRequest,ResizeResponse>
Main class to initiate resizing (shrink / split) an index into a new index
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.action.support.HandledTransportAction
HandledTransportAction.ChannelActionListener<Response extends TransportResponse,Request extends TransportRequest>
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
clusterService, transportService
-
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, indexNameExpressionResolver, taskManager, threadPool
-
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
logger
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTransportResizeAction(Settings settings, java.lang.String actionName, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetaDataCreateIndexService createIndexService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, Client client)TransportResizeAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetaDataCreateIndexService createIndexService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, Client client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ClusterBlockExceptioncheckBlock(ResizeRequest request, ClusterState state)protected java.lang.Stringexecutor()protected java.lang.StringgetMasterActionName(DiscoveryNode node)Allows to conditionally return a different master node action name in the case an action gets renamed.protected voidmasterOperation(ResizeRequest resizeRequest, ClusterState state, ActionListener<ResizeResponse> listener)protected ResizeResponsenewResponse()-
Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, doExecute, localExecute, masterOperation, read
-
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute, execute
-
-
-
-
Constructor Detail
-
TransportResizeAction
@Inject public TransportResizeAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetaDataCreateIndexService createIndexService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, Client client)
-
TransportResizeAction
protected TransportResizeAction(Settings settings, java.lang.String actionName, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetaDataCreateIndexService createIndexService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, Client client)
-
-
Method Detail
-
executor
protected java.lang.String executor()
- Specified by:
executorin classTransportMasterNodeAction<ResizeRequest,ResizeResponse>
-
newResponse
protected ResizeResponse newResponse()
- Specified by:
newResponsein classTransportMasterNodeAction<ResizeRequest,ResizeResponse>- Returns:
- a new response instance. Typically this is used for serialization using the
Streamable.readFrom(StreamInput)method.
-
checkBlock
protected ClusterBlockException checkBlock(ResizeRequest request, ClusterState state)
- Specified by:
checkBlockin classTransportMasterNodeAction<ResizeRequest,ResizeResponse>
-
masterOperation
protected void masterOperation(ResizeRequest resizeRequest, ClusterState state, ActionListener<ResizeResponse> listener)
- Specified by:
masterOperationin classTransportMasterNodeAction<ResizeRequest,ResizeResponse>
-
getMasterActionName
protected java.lang.String getMasterActionName(DiscoveryNode node)
Description copied from class:TransportMasterNodeActionAllows to conditionally return a different master node action name in the case an action gets renamed. This mainly for backwards compatibility should be used rarely- Overrides:
getMasterActionNamein classTransportMasterNodeAction<ResizeRequest,ResizeResponse>
-
-