Class TransportClusterRerouteAction
- java.lang.Object
-
- org.elasticsearch.action.support.TransportAction<Request,Response>
-
- org.elasticsearch.action.support.HandledTransportAction<Request,Response>
-
- org.elasticsearch.action.support.master.TransportMasterNodeAction<ClusterRerouteRequest,ClusterRerouteResponse>
-
- org.elasticsearch.action.admin.cluster.reroute.TransportClusterRerouteAction
-
public class TransportClusterRerouteAction extends TransportMasterNodeAction<ClusterRerouteRequest,ClusterRerouteResponse>
-
-
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, logger, taskManager
-
-
Constructor Summary
Constructors Constructor Description TransportClusterRerouteAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, AllocationService allocationService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
Method Summary
Modifier and Type Method Description protected ClusterBlockExceptioncheckBlock(ClusterRerouteRequest request, ClusterState state)protected java.lang.Stringexecutor()protected voidmasterOperation(ClusterRerouteRequest request, ClusterState state, ActionListener<ClusterRerouteResponse> listener)protected ClusterRerouteResponsenewResponse()protected ClusterRerouteResponseread(StreamInput in)-
Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, getMasterActionName, localExecute, masterOperation
-
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
-
-
-
Constructor Detail
-
TransportClusterRerouteAction
@Inject public TransportClusterRerouteAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, AllocationService allocationService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
-
Method Detail
-
executor
protected java.lang.String executor()
- Specified by:
executorin classTransportMasterNodeAction<ClusterRerouteRequest,ClusterRerouteResponse>
-
checkBlock
protected ClusterBlockException checkBlock(ClusterRerouteRequest request, ClusterState state)
- Specified by:
checkBlockin classTransportMasterNodeAction<ClusterRerouteRequest,ClusterRerouteResponse>
-
newResponse
protected ClusterRerouteResponse newResponse()
- Specified by:
newResponsein classTransportMasterNodeAction<ClusterRerouteRequest,ClusterRerouteResponse>- Returns:
- a new response instance. Typically this is used for serialization using the
Streamable.readFrom(StreamInput)method.
-
read
protected ClusterRerouteResponse read(StreamInput in) throws java.io.IOException
- Overrides:
readin classTransportMasterNodeAction<ClusterRerouteRequest,ClusterRerouteResponse>- Throws:
java.io.IOException
-
masterOperation
protected void masterOperation(ClusterRerouteRequest request, ClusterState state, ActionListener<ClusterRerouteResponse> listener)
- Specified by:
masterOperationin classTransportMasterNodeAction<ClusterRerouteRequest,ClusterRerouteResponse>
-
-