Class TransportRolloverAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.HandledTransportAction<Request,Response>
org.elasticsearch.action.support.master.TransportMasterNodeAction<RolloverRequest,RolloverResponse>
org.elasticsearch.action.admin.indices.rollover.TransportRolloverAction
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, indexNameExpressionResolver, threadPool, transportService
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, localConnection, taskManager
-
Constructor Summary
ConstructorDescriptionTransportRolloverAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, MetadataRolloverService rolloverService, Client client)
-
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockException
checkBlock(RolloverRequest request, ClusterState state)
protected void
masterOperation(RolloverRequest request, ClusterState state, ActionListener<RolloverResponse> listener)
protected void
masterOperation(Task task, RolloverRequest rolloverRequest, ClusterState oldState, ActionListener<RolloverResponse> listener)
Override this operation if access to the task parameter is neededMethods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, getMasterActionName, localExecute
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
Constructor Details
-
TransportRolloverAction
@Inject public TransportRolloverAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, MetadataRolloverService rolloverService, Client client)
-
-
Method Details
-
checkBlock
- Specified by:
checkBlock
in classTransportMasterNodeAction<RolloverRequest,RolloverResponse>
-
masterOperation
protected void masterOperation(RolloverRequest request, ClusterState state, ActionListener<RolloverResponse> listener) throws Exception- Specified by:
masterOperation
in classTransportMasterNodeAction<RolloverRequest,RolloverResponse>
- Throws:
Exception
-
masterOperation
protected void masterOperation(Task task, RolloverRequest rolloverRequest, ClusterState oldState, ActionListener<RolloverResponse> listener) throws ExceptionDescription copied from class:TransportMasterNodeAction
Override this operation if access to the task parameter is needed- Overrides:
masterOperation
in classTransportMasterNodeAction<RolloverRequest,RolloverResponse>
- Throws:
Exception
-