Module org.elasticsearch.server
Class TransportRolloverAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<RolloverRequest,RolloverResponse>
org.elasticsearch.action.support.HandledTransportAction<RolloverRequest,RolloverResponse>
org.elasticsearch.action.support.master.TransportMasterNodeAction<RolloverRequest,RolloverResponse>
org.elasticsearch.action.admin.indices.rollover.TransportRolloverAction
- All Implemented Interfaces:
ActionWithReservedState<RolloverRequest>
- Direct Known Subclasses:
LazyRolloverAction.TransportLazyRolloverAction
public class TransportRolloverAction
extends TransportMasterNodeAction<RolloverRequest,RolloverResponse>
Main class to swap the index pointed to by an alias, given some conditions
-
Field Summary
Fields inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
clusterService, executor, threadPool, transportServiceFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, taskManager -
Constructor Summary
ConstructorsConstructorDescriptionTransportRolloverAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, MetadataRolloverService rolloverService, Client client, AllocationService allocationService, MetadataDataStreamsService metadataDataStreamsService, DataStreamAutoShardingService dataStreamAutoShardingService) -
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockExceptioncheckBlock(RolloverRequest request, ClusterState state) protected voidmasterOperation(Task task, RolloverRequest rolloverRequest, ClusterState clusterState, ActionListener<RolloverResponse> listener) Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, localExecuteMethods inherited from class org.elasticsearch.action.support.TransportAction
execute, executeDirect, localOnlyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.reservedstate.ActionWithReservedState
modifiedKeys, reservedStateHandlerName, validateForReservedState
-
Constructor Details
-
TransportRolloverAction
@Inject public TransportRolloverAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, MetadataRolloverService rolloverService, Client client, AllocationService allocationService, MetadataDataStreamsService metadataDataStreamsService, DataStreamAutoShardingService dataStreamAutoShardingService)
-
-
Method Details
-
checkBlock
- Specified by:
checkBlockin classTransportMasterNodeAction<RolloverRequest,RolloverResponse>
-
masterOperation
protected void masterOperation(Task task, RolloverRequest rolloverRequest, ClusterState clusterState, ActionListener<RolloverResponse> listener) throws Exception - Specified by:
masterOperationin classTransportMasterNodeAction<RolloverRequest,RolloverResponse> - Throws:
Exception
-