Class TransportIndicesAliasesAction
- 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<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, 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 Constructor Description TransportIndicesAliasesAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetaDataIndexAliasesService indexAliasesService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
Method Summary
Modifier and Type Method Description protected ClusterBlockExceptioncheckBlock(IndicesAliasesRequest request, ClusterState state)protected java.lang.Stringexecutor()protected voidmasterOperation(IndicesAliasesRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener)protected AcknowledgedResponsenewResponse()-
Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, doExecute, getMasterActionName, localExecute, masterOperation, read
-
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute, execute
-
-
-
-
Constructor Detail
-
TransportIndicesAliasesAction
@Inject public TransportIndicesAliasesAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetaDataIndexAliasesService indexAliasesService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
-
Method Detail
-
executor
protected java.lang.String executor()
- Specified by:
executorin classTransportMasterNodeAction<IndicesAliasesRequest,AcknowledgedResponse>
-
newResponse
protected AcknowledgedResponse newResponse()
- Specified by:
newResponsein classTransportMasterNodeAction<IndicesAliasesRequest,AcknowledgedResponse>- Returns:
- a new response instance. Typically this is used for serialization using the
Streamable.readFrom(StreamInput)method.
-
checkBlock
protected ClusterBlockException checkBlock(IndicesAliasesRequest request, ClusterState state)
- Specified by:
checkBlockin classTransportMasterNodeAction<IndicesAliasesRequest,AcknowledgedResponse>
-
masterOperation
protected void masterOperation(IndicesAliasesRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener)
- Specified by:
masterOperationin classTransportMasterNodeAction<IndicesAliasesRequest,AcknowledgedResponse>
-
-