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, indexNameExpressionResolver, threadPool, transportService
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, taskManager
-
Constructor Summary
Constructors Constructor Description TransportRolloverAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetaDataCreateIndexService createIndexService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, MetaDataIndexAliasesService indexAliasesService, Client client)
-
Method Summary
Modifier and Type Method Description protected ClusterBlockException
checkBlock(RolloverRequest request, ClusterState state)
protected java.lang.String
executor()
protected void
masterOperation(RolloverRequest request, ClusterState state, ActionListener<RolloverResponse> listener)
protected void
masterOperation(Task task, RolloverRequest rolloverRequest, ClusterState state, ActionListener<RolloverResponse> listener)
Override this operation if access to the task parameter is neededprotected RolloverResponse
read(StreamInput in)
Methods 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, MetaDataCreateIndexService createIndexService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, MetaDataIndexAliasesService indexAliasesService, Client client)
-
-
Method Details
-
executor
protected java.lang.String executor()- Specified by:
executor
in classTransportMasterNodeAction<RolloverRequest,RolloverResponse>
-
read
- Specified by:
read
in classTransportMasterNodeAction<RolloverRequest,RolloverResponse>
- Throws:
java.io.IOException
-
checkBlock
- Specified by:
checkBlock
in classTransportMasterNodeAction<RolloverRequest,RolloverResponse>
-
masterOperation
protected void masterOperation(RolloverRequest request, ClusterState state, ActionListener<RolloverResponse> listener) throws java.lang.Exception- Specified by:
masterOperation
in classTransportMasterNodeAction<RolloverRequest,RolloverResponse>
- Throws:
java.lang.Exception
-
masterOperation
protected void masterOperation(Task task, RolloverRequest rolloverRequest, ClusterState state, ActionListener<RolloverResponse> listener)Description copied from class:TransportMasterNodeAction
Override this operation if access to the task parameter is needed- Overrides:
masterOperation
in classTransportMasterNodeAction<RolloverRequest,RolloverResponse>
-