Class TransportRolloverAction
- 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<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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.action.support.HandledTransportAction
HandledTransportAction.ChannelActionListener<Response extends TransportResponse,Request extends TransportRequest>
-
-
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 TransportRolloverAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetaDataCreateIndexService createIndexService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, MetaDataIndexAliasesService indexAliasesService, Client client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ClusterBlockException
checkBlock(RolloverRequest request, ClusterState state)
protected java.lang.String
executor()
protected void
masterOperation(RolloverRequest rolloverRequest, ClusterState state, ActionListener<RolloverResponse> listener)
protected RolloverResponse
newResponse()
-
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
-
TransportRolloverAction
@Inject public TransportRolloverAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetaDataCreateIndexService createIndexService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, MetaDataIndexAliasesService indexAliasesService, Client client)
-
-
Method Detail
-
executor
protected java.lang.String executor()
- Specified by:
executor
in classTransportMasterNodeAction<RolloverRequest,RolloverResponse>
-
newResponse
protected RolloverResponse newResponse()
- Specified by:
newResponse
in classTransportMasterNodeAction<RolloverRequest,RolloverResponse>
- Returns:
- a new response instance. Typically this is used for serialization using the
Streamable.readFrom(StreamInput)
method.
-
checkBlock
protected ClusterBlockException checkBlock(RolloverRequest request, ClusterState state)
- Specified by:
checkBlock
in classTransportMasterNodeAction<RolloverRequest,RolloverResponse>
-
masterOperation
protected void masterOperation(RolloverRequest rolloverRequest, ClusterState state, ActionListener<RolloverResponse> listener)
- Specified by:
masterOperation
in classTransportMasterNodeAction<RolloverRequest,RolloverResponse>
-
-