@Deprecated public abstract class TransportSingleItemBulkWriteAction<Request extends ReplicatedWriteRequest<Request>,Response extends ReplicationResponse & WriteResponse> extends TransportWriteAction<Request,Request,Response>
TransportWriteAction.WritePrimaryResult<ReplicaRequest extends ReplicatedWriteRequest<ReplicaRequest>,Response extends ReplicationResponse & WriteResponse>, TransportWriteAction.WriteReplicaResult<ReplicaRequest extends ReplicatedWriteRequest<ReplicaRequest>>
TransportReplicationAction.ConcreteShardRequest<R extends ReplicationRequest<?>>, TransportReplicationAction.PrimaryResult<ReplicaRequest extends ReplicationRequest<ReplicaRequest>,Response extends ReplicationResponse>, TransportReplicationAction.ReplicaResult, TransportReplicationAction.RetryOnReplicaException
clusterService
actionName, indexNameExpressionResolver, taskManager, threadPool
deprecationLogger, logger, settings
Modifier | Constructor and Description |
---|---|
protected |
TransportSingleItemBulkWriteAction(Settings settings,
java.lang.String actionName,
TransportService transportService,
ClusterService clusterService,
IndicesService indicesService,
ThreadPool threadPool,
ShardStateAction shardStateAction,
ActionFilters actionFilters,
IndexNameExpressionResolver indexNameExpressionResolver,
java.util.function.Supplier<Request> request,
java.util.function.Supplier<Request> replicaRequest,
java.lang.String executor,
TransportBulkAction bulkAction,
TransportShardBulkAction shardBulkAction)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doExecute(Task task,
Request request,
ActionListener<Response> listener)
Deprecated.
|
protected TransportWriteAction.WritePrimaryResult<Request,Response> |
shardOperationOnPrimary(Request request,
IndexShard primary)
Deprecated.
Called on the primary with a reference to the primary IndexShard to modify.
|
protected TransportWriteAction.WriteReplicaResult<Request> |
shardOperationOnReplica(Request replicaRequest,
IndexShard replica)
Deprecated.
Called once per replica with a reference to the replica IndexShard to modify.
|
static BulkRequest |
toSingleItemBulkRequest(ReplicatedWriteRequest request)
Deprecated.
|
globalBlockLevel, indexBlockLevel
doExecute, newResponseInstance, resolveIndex, resolveRequest, retryPrimaryException, shouldExecuteReplication, transportOptions
execute, execute, execute, execute
logDeprecatedSetting, logRemovedSetting, nodeName
protected TransportSingleItemBulkWriteAction(Settings settings, java.lang.String actionName, TransportService transportService, ClusterService clusterService, IndicesService indicesService, ThreadPool threadPool, ShardStateAction shardStateAction, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, java.util.function.Supplier<Request> request, java.util.function.Supplier<Request> replicaRequest, java.lang.String executor, TransportBulkAction bulkAction, TransportShardBulkAction shardBulkAction)
protected void doExecute(Task task, Request request, ActionListener<Response> listener)
doExecute
in class TransportReplicationAction<Request extends ReplicatedWriteRequest<Request>,Request extends ReplicatedWriteRequest<Request>,Response extends ReplicationResponse & WriteResponse>
protected TransportWriteAction.WritePrimaryResult<Request,Response> shardOperationOnPrimary(Request request, IndexShard primary) throws java.lang.Exception
TransportWriteAction
shardOperationOnPrimary
in class TransportWriteAction<Request extends ReplicatedWriteRequest<Request>,Request extends ReplicatedWriteRequest<Request>,Response extends ReplicationResponse & WriteResponse>
request
- the request to the primary shardprimary
- the primary shard to perform the operation onprimary
shard according to the Request
refresh policyjava.lang.Exception
protected TransportWriteAction.WriteReplicaResult<Request> shardOperationOnReplica(Request replicaRequest, IndexShard replica) throws java.lang.Exception
TransportWriteAction
shardOperationOnReplica
in class TransportWriteAction<Request extends ReplicatedWriteRequest<Request>,Request extends ReplicatedWriteRequest<Request>,Response extends ReplicationResponse & WriteResponse>
replicaRequest
- the request to the replica shardreplica
- the replica shard to perform the operation onreplica
shard according to the ReplicaRequest
refresh policyjava.lang.Exception
public static BulkRequest toSingleItemBulkRequest(ReplicatedWriteRequest request)