public class TransportShardFlushAction extends TransportReplicationAction<ShardFlushRequest,ShardFlushRequest,ActionWriteResponse>
TransportReplicationAction.RetryOnPrimaryException, TransportReplicationAction.RetryOnReplicaException, TransportReplicationAction.WriteResult<T extends ActionWriteResponse>
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
clusterService, defaultWriteConsistencyLevel, indicesService, mappingUpdatedAction, shardStateAction, transportOptions, transportService
actionName, indexNameExpressionResolver, parseFieldMatcher, taskManager, threadPool
deprecationLogger, logger, settings
Constructor and Description |
---|
TransportShardFlushAction(Settings settings,
TransportService transportService,
ClusterService clusterService,
IndicesService indicesService,
ThreadPool threadPool,
ShardStateAction shardStateAction,
MappingUpdatedAction mappingUpdatedAction,
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 ActionWriteResponse |
newResponseInstance() |
protected Tuple<ActionWriteResponse,ShardFlushRequest> |
shardOperationOnPrimary(MetaData metaData,
ShardFlushRequest shardRequest)
Primary operation on node with primary copy, the provided metadata should be used for request validation if needed
|
protected void |
shardOperationOnReplica(ShardFlushRequest 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, getIndexShardOperationsCounter, ignoreReplicaException, isConflictException, processAfterWrite, resolveIndex, resolveRequest, retryPrimaryException, transportOptions
execute, execute, execute, execute
logDeprecatedSetting, logRemovedSetting, nodeName
public static final String NAME
@Inject public TransportShardFlushAction(Settings settings, TransportService transportService, ClusterService clusterService, IndicesService indicesService, ThreadPool threadPool, ShardStateAction shardStateAction, MappingUpdatedAction mappingUpdatedAction, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
protected ActionWriteResponse newResponseInstance()
newResponseInstance
in class TransportReplicationAction<ShardFlushRequest,ShardFlushRequest,ActionWriteResponse>
protected Tuple<ActionWriteResponse,ShardFlushRequest> shardOperationOnPrimary(MetaData metaData, ShardFlushRequest shardRequest) throws Throwable
TransportReplicationAction
shardOperationOnPrimary
in class TransportReplicationAction<ShardFlushRequest,ShardFlushRequest,ActionWriteResponse>
Throwable
protected void shardOperationOnReplica(ShardFlushRequest request)
TransportReplicationAction
shardOperationOnReplica
in class TransportReplicationAction<ShardFlushRequest,ShardFlushRequest,ActionWriteResponse>
protected boolean checkWriteConsistency()
TransportReplicationAction
checkWriteConsistency
in class TransportReplicationAction<ShardFlushRequest,ShardFlushRequest,ActionWriteResponse>
protected ClusterBlockLevel globalBlockLevel()
TransportReplicationAction
globalBlockLevel
in class TransportReplicationAction<ShardFlushRequest,ShardFlushRequest,ActionWriteResponse>
protected ClusterBlockLevel indexBlockLevel()
TransportReplicationAction
indexBlockLevel
in class TransportReplicationAction<ShardFlushRequest,ShardFlushRequest,ActionWriteResponse>
protected boolean shouldExecuteReplication(Settings settings)
TransportReplicationAction
Copyright © 2009–2016. All rights reserved.