Class TransportResizeAction
- java.lang.Object
-
- 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
-
public class TransportResizeAction extends TransportMasterNodeAction<ResizeRequest,ResizeResponse>
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, indexNameExpressionResolver, threadPool, transportService
-
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, taskManager
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TransportResizeAction(java.lang.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 Type Method Description protected ClusterBlockException
checkBlock(ResizeRequest request, ClusterState state)
protected java.lang.String
executor()
protected java.lang.String
getMasterActionName(DiscoveryNode node)
Allows to conditionally return a different master node action name in the case an action gets renamed.protected void
masterOperation(ResizeRequest resizeRequest, ClusterState state, ActionListener<ResizeResponse> listener)
protected ResizeResponse
read(StreamInput in)
-
Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, localExecute, masterOperation
-
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
-
-
-
Constructor Detail
-
TransportResizeAction
@Inject public TransportResizeAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetaDataCreateIndexService createIndexService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, Client client)
-
TransportResizeAction
protected TransportResizeAction(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:
executor
in classTransportMasterNodeAction<ResizeRequest,ResizeResponse>
-
read
protected ResizeResponse read(StreamInput in) throws java.io.IOException
- Specified by:
read
in classTransportMasterNodeAction<ResizeRequest,ResizeResponse>
- Throws:
java.io.IOException
-
checkBlock
protected ClusterBlockException checkBlock(ResizeRequest request, ClusterState state)
- Specified by:
checkBlock
in classTransportMasterNodeAction<ResizeRequest,ResizeResponse>
-
masterOperation
protected void masterOperation(ResizeRequest resizeRequest, ClusterState state, ActionListener<ResizeResponse> listener)
- Specified by:
masterOperation
in classTransportMasterNodeAction<ResizeRequest,ResizeResponse>
-
getMasterActionName
protected java.lang.String getMasterActionName(DiscoveryNode node)
Description copied from class:TransportMasterNodeAction
Allows 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:
getMasterActionName
in classTransportMasterNodeAction<ResizeRequest,ResizeResponse>
-
-