Class TransportIndicesAliasesAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.HandledTransportAction<Request,Response>
org.elasticsearch.action.support.master.TransportMasterNodeAction<IndicesAliasesRequest,AcknowledgedResponse>
org.elasticsearch.action.admin.indices.alias.TransportIndicesAliasesAction
public class TransportIndicesAliasesAction extends TransportMasterNodeAction<IndicesAliasesRequest,AcknowledgedResponse>
Add/remove aliases action
-
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 Constructor Description TransportIndicesAliasesAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetaDataIndexAliasesService indexAliasesService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, RequestValidators<IndicesAliasesRequest> requestValidators)
-
Method Summary
Modifier and Type Method Description protected ClusterBlockException
checkBlock(IndicesAliasesRequest request, ClusterState state)
protected java.lang.String
executor()
protected void
masterOperation(IndicesAliasesRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener)
protected AcknowledgedResponse
read(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 Details
-
TransportIndicesAliasesAction
@Inject public TransportIndicesAliasesAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetaDataIndexAliasesService indexAliasesService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, RequestValidators<IndicesAliasesRequest> requestValidators)
-
-
Method Details
-
executor
protected java.lang.String executor()- Specified by:
executor
in classTransportMasterNodeAction<IndicesAliasesRequest,AcknowledgedResponse>
-
read
- Specified by:
read
in classTransportMasterNodeAction<IndicesAliasesRequest,AcknowledgedResponse>
- Throws:
java.io.IOException
-
checkBlock
- Specified by:
checkBlock
in classTransportMasterNodeAction<IndicesAliasesRequest,AcknowledgedResponse>
-
masterOperation
protected void masterOperation(IndicesAliasesRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener)- Specified by:
masterOperation
in classTransportMasterNodeAction<IndicesAliasesRequest,AcknowledgedResponse>
-