Class TransportAddVotingConfigExclusionsAction
- java.lang.Object
-
- org.elasticsearch.action.support.TransportAction<Request,Response>
-
- org.elasticsearch.action.support.HandledTransportAction<Request,Response>
-
- org.elasticsearch.action.support.master.TransportMasterNodeAction<AddVotingConfigExclusionsRequest,AddVotingConfigExclusionsResponse>
-
- org.elasticsearch.action.admin.cluster.configuration.TransportAddVotingConfigExclusionsAction
-
public class TransportAddVotingConfigExclusionsAction extends TransportMasterNodeAction<AddVotingConfigExclusionsRequest,AddVotingConfigExclusionsResponse>
-
-
Field Summary
Fields Modifier and Type Field Description static Setting<java.lang.Integer>MAXIMUM_VOTING_CONFIG_EXCLUSIONS_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 TransportAddVotingConfigExclusionsAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
Method Summary
Modifier and Type Method Description protected ClusterBlockExceptioncheckBlock(AddVotingConfigExclusionsRequest request, ClusterState state)protected java.lang.Stringexecutor()protected voidmasterOperation(AddVotingConfigExclusionsRequest request, ClusterState state, ActionListener<AddVotingConfigExclusionsResponse> listener)protected AddVotingConfigExclusionsResponsenewResponse()protected AddVotingConfigExclusionsResponseread(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
-
-
-
-
Field Detail
-
MAXIMUM_VOTING_CONFIG_EXCLUSIONS_SETTING
public static final Setting<java.lang.Integer> MAXIMUM_VOTING_CONFIG_EXCLUSIONS_SETTING
-
-
Constructor Detail
-
TransportAddVotingConfigExclusionsAction
@Inject public TransportAddVotingConfigExclusionsAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
-
Method Detail
-
executor
protected java.lang.String executor()
- Specified by:
executorin classTransportMasterNodeAction<AddVotingConfigExclusionsRequest,AddVotingConfigExclusionsResponse>
-
newResponse
protected AddVotingConfigExclusionsResponse newResponse()
- Specified by:
newResponsein classTransportMasterNodeAction<AddVotingConfigExclusionsRequest,AddVotingConfigExclusionsResponse>- Returns:
- a new response instance. Typically this is used for serialization using the
Streamable.readFrom(StreamInput)method.
-
read
protected AddVotingConfigExclusionsResponse read(StreamInput in) throws java.io.IOException
- Overrides:
readin classTransportMasterNodeAction<AddVotingConfigExclusionsRequest,AddVotingConfigExclusionsResponse>- Throws:
java.io.IOException
-
masterOperation
protected void masterOperation(AddVotingConfigExclusionsRequest request, ClusterState state, ActionListener<AddVotingConfigExclusionsResponse> listener) throws java.lang.Exception
- Specified by:
masterOperationin classTransportMasterNodeAction<AddVotingConfigExclusionsRequest,AddVotingConfigExclusionsResponse>- Throws:
java.lang.Exception
-
checkBlock
protected ClusterBlockException checkBlock(AddVotingConfigExclusionsRequest request, ClusterState state)
- Specified by:
checkBlockin classTransportMasterNodeAction<AddVotingConfigExclusionsRequest,AddVotingConfigExclusionsResponse>
-
-