public class TransportShardRefreshAction extends TransportReplicationAction<BasicReplicationRequest,BasicReplicationRequest,ReplicationResponse>
TransportReplicationAction.RetryOnPrimaryException, TransportReplicationAction.RetryOnReplicaException, TransportReplicationAction.WriteResult<T extends ReplicationResponse>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
clusterService, defaultWriteConsistencyLevel, indicesService, shardStateAction, transportOptions, 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 boolean |
checkWriteConsistency()
True if write consistency should be checked for an implementation
|
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 Tuple<ReplicationResponse,BasicReplicationRequest> |
shardOperationOnPrimary(MetaData metaData,
BasicReplicationRequest shardRequest)
Primary operation on node with primary copy, the provided metadata should be used for request validation if needed
|
protected void |
shardOperationOnReplica(BasicReplicationRequest request)
Replica operation on nodes with replica copies
|
protected boolean |
shouldExecuteReplication(Settings settings)
Indicated whether this operation should be replicated to shadow replicas or not.
|
doExecute, doExecute, getIndexShardReferenceOnPrimary, getIndexShardReferenceOnReplica, ignoreReplicaException, isConflictException, processAfterWrite, 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 Tuple<ReplicationResponse,BasicReplicationRequest> shardOperationOnPrimary(MetaData metaData, BasicReplicationRequest shardRequest)
TransportReplicationAction
shardOperationOnPrimary
in class TransportReplicationAction<BasicReplicationRequest,BasicReplicationRequest,ReplicationResponse>
protected void shardOperationOnReplica(BasicReplicationRequest request)
TransportReplicationAction
protected boolean checkWriteConsistency()
TransportReplicationAction
protected ClusterBlockLevel globalBlockLevel()
TransportReplicationAction
protected ClusterBlockLevel indexBlockLevel()
TransportReplicationAction
protected boolean shouldExecuteReplication(Settings settings)
TransportReplicationAction