Package org.elasticsearch.index.seqno
Class RetentionLeaseActions.Add.TransportAction
- java.lang.Object
-
- org.elasticsearch.action.support.TransportAction<Request,Response>
-
- org.elasticsearch.action.support.single.shard.TransportSingleShardAction<T,RetentionLeaseActions.Response>
-
- org.elasticsearch.index.seqno.RetentionLeaseActions.Add.TransportAction
-
- Enclosing class:
- RetentionLeaseActions.Add
public static class RetentionLeaseActions.Add.TransportAction extends TransportSingleShardAction<T,RetentionLeaseActions.Response>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.action.support.single.shard.TransportSingleShardAction
TransportSingleShardAction.InternalRequest
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.action.support.single.shard.TransportSingleShardAction
clusterService, indexNameExpressionResolver, threadPool, transportService
-
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, logger, taskManager
-
-
Constructor Summary
Constructors Constructor Description TransportAction(ThreadPool threadPool, ClusterService clusterService, TransportService transportService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, IndicesService indicesService)
-
Method Summary
Modifier and Type Method Description protected voidasyncShardOperation(T request, ShardId shardId, ActionListener<RetentionLeaseActions.Response> listener)protected Writeable.Reader<RetentionLeaseActions.Response>getResponseReader()protected booleanresolveIndex(T request)protected RetentionLeaseActions.ResponseshardOperation(T request, ShardId shardId)protected ShardsIteratorshards(ClusterState state, TransportSingleShardAction.InternalRequest request)Returns the candidate shards to execute the operation on ornullthe execute the operation locally (the node that received the request)-
Methods inherited from class org.elasticsearch.action.support.single.shard.TransportSingleShardAction
checkGlobalBlock, checkRequestBlock, doExecute, getExecutor, isSubAction, resolveRequest
-
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
-
-
-
Constructor Detail
-
TransportAction
@Inject public TransportAction(ThreadPool threadPool, ClusterService clusterService, TransportService transportService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, IndicesService indicesService)
-
-
Method Detail
-
getResponseReader
protected Writeable.Reader<RetentionLeaseActions.Response> getResponseReader()
-
shards
protected ShardsIterator shards(ClusterState state, TransportSingleShardAction.InternalRequest request)
Description copied from class:TransportSingleShardActionReturns the candidate shards to execute the operation on ornullthe execute the operation locally (the node that received the request)- Specified by:
shardsin classTransportSingleShardAction<T extends org.elasticsearch.index.seqno.RetentionLeaseActions.Request<T>,RetentionLeaseActions.Response>
-
asyncShardOperation
protected void asyncShardOperation(T request, ShardId shardId, ActionListener<RetentionLeaseActions.Response> listener)- Overrides:
asyncShardOperationin classTransportSingleShardAction<T extends org.elasticsearch.index.seqno.RetentionLeaseActions.Request<T>,RetentionLeaseActions.Response>
-
shardOperation
protected RetentionLeaseActions.Response shardOperation(T request, ShardId shardId)
- Specified by:
shardOperationin classTransportSingleShardAction<T extends org.elasticsearch.index.seqno.RetentionLeaseActions.Request<T>,RetentionLeaseActions.Response>
-
resolveIndex
protected boolean resolveIndex(T request)
- Specified by:
resolveIndexin classTransportSingleShardAction<T extends org.elasticsearch.index.seqno.RetentionLeaseActions.Request<T>,RetentionLeaseActions.Response>
-
-