public class TransportShardFlushAction extends TransportReplicationAction<ShardFlushRequest,ShardFlushRequest,ReplicationResponse>
TransportReplicationAction.ConcreteShardRequest<R extends ReplicationRequest<?>>, TransportReplicationAction.PrimaryResult<ReplicaRequest extends ReplicationRequest<ReplicaRequest>,Response extends ReplicationResponse>, TransportReplicationAction.ReplicaResult, TransportReplicationAction.RetryOnReplicaException
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
clusterService
actionName, indexNameExpressionResolver, taskManager, threadPool
deprecationLogger, logger, settings
Constructor and Description |
---|
TransportShardFlushAction(Settings settings,
TransportService transportService,
ClusterService clusterService,
IndicesService indicesService,
ThreadPool threadPool,
ShardStateAction shardStateAction,
ActionFilters actionFilters,
IndexNameExpressionResolver indexNameExpressionResolver) |
Modifier and Type | Method and Description |
---|---|
protected ReplicationResponse |
newResponseInstance() |
protected TransportReplicationAction.PrimaryResult |
shardOperationOnPrimary(ShardFlushRequest shardRequest,
IndexShard primary)
Primary operation on node with primary copy.
|
protected TransportReplicationAction.ReplicaResult |
shardOperationOnReplica(ShardFlushRequest request,
IndexShard replica)
Synchronous replica operation on nodes with replica copies.
|
protected boolean |
shouldExecuteReplication(IndexMetaData indexMetaData)
Indicated whether this operation should be replicated to shadow replicas or not.
|
doExecute, doExecute, globalBlockLevel, indexBlockLevel, resolveIndex, resolveRequest, retryPrimaryException, transportOptions
execute, execute, execute, execute
logDeprecatedSetting, logRemovedSetting, nodeName
public static final java.lang.String NAME
@Inject public TransportShardFlushAction(Settings settings, TransportService transportService, ClusterService clusterService, IndicesService indicesService, ThreadPool threadPool, ShardStateAction shardStateAction, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
protected ReplicationResponse newResponseInstance()
newResponseInstance
in class TransportReplicationAction<ShardFlushRequest,ShardFlushRequest,ReplicationResponse>
protected TransportReplicationAction.PrimaryResult shardOperationOnPrimary(ShardFlushRequest shardRequest, IndexShard primary)
TransportReplicationAction
shardOperationOnPrimary
in class TransportReplicationAction<ShardFlushRequest,ShardFlushRequest,ReplicationResponse>
shardRequest
- the request to the primary shardprimary
- the primary shard to perform the operation onprotected TransportReplicationAction.ReplicaResult shardOperationOnReplica(ShardFlushRequest request, IndexShard replica)
TransportReplicationAction
IndexShard.acquireReplicaOperationLock(long, ActionListener, String)
shardOperationOnReplica
in class TransportReplicationAction<ShardFlushRequest,ShardFlushRequest,ReplicationResponse>
request
- the request to the replica shardreplica
- the replica shard to perform the operation onprotected boolean shouldExecuteReplication(IndexMetaData indexMetaData)
TransportReplicationAction