public class TransportShardRefreshAction extends TransportReplicationAction<BasicReplicationRequest,BasicReplicationRequest,ReplicationResponse>
TransportReplicationAction.ConcreteShardRequest<R extends TransportRequest>, TransportReplicationAction.PrimaryResult, TransportReplicationAction.ReplicaResult, TransportReplicationAction.RetryOnReplicaException
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
clusterService, indicesService, transportService
actionName, indexNameExpressionResolver, parseFieldMatcher, taskManager, threadPool
deprecationLogger, logger, settings
Constructor and Description |
---|
TransportShardRefreshAction(Settings settings,
TransportService transportService,
ClusterService clusterService,
IndicesService indicesService,
ThreadPool threadPool,
ShardStateAction shardStateAction,
ActionFilters actionFilters,
IndexNameExpressionResolver indexNameExpressionResolver) |
Modifier and Type | Method and Description |
---|---|
protected ClusterBlockLevel |
globalBlockLevel()
Cluster level block to check before request execution
|
protected ClusterBlockLevel |
indexBlockLevel()
Index level block to check before request execution
|
protected ReplicationResponse |
newResponseInstance() |
protected TransportReplicationAction.PrimaryResult |
shardOperationOnPrimary(BasicReplicationRequest shardRequest)
Primary operation on node with primary copy.
|
protected TransportReplicationAction.ReplicaResult |
shardOperationOnReplica(BasicReplicationRequest request)
Synchronous replica operation on nodes with replica copies.
|
protected boolean |
shouldExecuteReplication(Settings settings)
Indicated whether this operation should be replicated to shadow replicas or not.
|
acquirePrimaryShardReference, acquireReplicaOperationLock, doExecute, doExecute, resolveIndex, resolveRequest, retryPrimaryException, transportOptions
execute, execute, execute, execute
logDeprecatedSetting, logRemovedSetting, nodeName
public static final java.lang.String NAME
@Inject public TransportShardRefreshAction(Settings settings, TransportService transportService, ClusterService clusterService, IndicesService indicesService, ThreadPool threadPool, ShardStateAction shardStateAction, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
protected ReplicationResponse newResponseInstance()
newResponseInstance
in class TransportReplicationAction<BasicReplicationRequest,BasicReplicationRequest,ReplicationResponse>
protected TransportReplicationAction.PrimaryResult shardOperationOnPrimary(BasicReplicationRequest shardRequest)
TransportReplicationAction
shardOperationOnPrimary
in class TransportReplicationAction<BasicReplicationRequest,BasicReplicationRequest,ReplicationResponse>
shardRequest
- the request to the primary shardprotected TransportReplicationAction.ReplicaResult shardOperationOnReplica(BasicReplicationRequest request)
TransportReplicationAction
TransportReplicationAction.acquireReplicaOperationLock(ShardId, long, String, ActionListener)
.protected ClusterBlockLevel globalBlockLevel()
TransportReplicationAction
protected ClusterBlockLevel indexBlockLevel()
TransportReplicationAction
protected boolean shouldExecuteReplication(Settings settings)
TransportReplicationAction