Package org.opensearch.index.seqno
Class RetentionLeaseActions.Add.TransportAction
java.lang.Object
org.opensearch.action.support.TransportAction<RetentionLeaseActions.AddRequest,RetentionLeaseActions.Response>
org.opensearch.action.support.single.shard.TransportSingleShardAction<RetentionLeaseActions.AddRequest,RetentionLeaseActions.Response>
org.opensearch.index.seqno.RetentionLeaseActions.Add.TransportAction
- Enclosing class:
RetentionLeaseActions.Add
public static class RetentionLeaseActions.Add.TransportAction
extends TransportSingleShardAction<RetentionLeaseActions.AddRequest,RetentionLeaseActions.Response>
Internal transport action
- Opensearch.internal:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensearch.action.support.single.shard.TransportSingleShardAction
TransportSingleShardAction.InternalRequest
-
Field Summary
Fields inherited from class org.opensearch.action.support.single.shard.TransportSingleShardAction
clusterService, indexNameExpressionResolver, threadPool, transportService
Fields inherited from class org.opensearch.action.support.TransportAction
actionName, logger, taskManager
-
Constructor Summary
ConstructorsConstructorDescriptionTransportAction
(ThreadPool threadPool, ClusterService clusterService, TransportService transportService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, IndicesService indicesService) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
asyncShardOperation
(RetentionLeaseActions.AddRequest request, org.opensearch.core.index.shard.ShardId shardId, org.opensearch.core.action.ActionListener<RetentionLeaseActions.Response> listener) protected org.opensearch.core.common.io.stream.Writeable.Reader
<RetentionLeaseActions.Response> protected boolean
protected RetentionLeaseActions.Response
shardOperation
(RetentionLeaseActions.AddRequest request, org.opensearch.core.index.shard.ShardId shardId) protected ShardsIterator
shards
(ClusterState state, TransportSingleShardAction<RetentionLeaseActions.AddRequest, RetentionLeaseActions.Response>.InternalRequest request) Returns the candidate shards to execute the operation on ornull
the execute the operation locally (the node that received the request)Methods inherited from class org.opensearch.action.support.single.shard.TransportSingleShardAction
checkGlobalBlock, checkRequestBlock, doExecute, getExecutor, isSubAction, resolveRequest
Methods inherited from class org.opensearch.action.support.TransportAction
execute, execute, execute
-
Constructor Details
-
TransportAction
@Inject public TransportAction(ThreadPool threadPool, ClusterService clusterService, TransportService transportService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, IndicesService indicesService)
-
-
Method Details
-
getResponseReader
protected org.opensearch.core.common.io.stream.Writeable.Reader<RetentionLeaseActions.Response> getResponseReader() -
shards
protected ShardsIterator shards(ClusterState state, TransportSingleShardAction<RetentionLeaseActions.AddRequest, RetentionLeaseActions.Response>.InternalRequest request) Description copied from class:TransportSingleShardAction
Returns the candidate shards to execute the operation on ornull
the execute the operation locally (the node that received the request)- Specified by:
shards
in classTransportSingleShardAction<T extends org.opensearch.index.seqno.RetentionLeaseActions.Request<T>,
RetentionLeaseActions.Response>
-
asyncShardOperation
protected void asyncShardOperation(RetentionLeaseActions.AddRequest request, org.opensearch.core.index.shard.ShardId shardId, org.opensearch.core.action.ActionListener<RetentionLeaseActions.Response> listener) - Overrides:
asyncShardOperation
in classTransportSingleShardAction<T extends org.opensearch.index.seqno.RetentionLeaseActions.Request<T>,
RetentionLeaseActions.Response>
-
shardOperation
protected RetentionLeaseActions.Response shardOperation(RetentionLeaseActions.AddRequest request, org.opensearch.core.index.shard.ShardId shardId) - Specified by:
shardOperation
in classTransportSingleShardAction<T extends org.opensearch.index.seqno.RetentionLeaseActions.Request<T>,
RetentionLeaseActions.Response>
-
resolveIndex
- Specified by:
resolveIndex
in classTransportSingleShardAction<T extends org.opensearch.index.seqno.RetentionLeaseActions.Request<T>,
RetentionLeaseActions.Response>
-