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
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
deprecationLogger, logger, settings
-
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, indexNameExpressionResolver, taskManager, threadPool
-
Fields inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
clusterService, transportService
-
-
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.common.component.AbstractComponent
logDeprecatedSetting, logRemovedSetting, nodeName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute, execute
-
Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, doExecute, getMasterActionName, localExecute, masterOperation
-
-
-
-
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>
-
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>
-
-