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, transportServiceactionName, indexNameExpressionResolver, parseFieldMatcher, taskManager, threadPooldeprecationLogger, 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 boolean |
mustFailReplica(Throwable e)
Returns
true iff the replica must be failed if it threw the given exception. |
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, transportOptionsexecute, execute, execute, executelogDeprecatedSetting, logRemovedSetting, nodeNamepublic 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
TransportReplicationActionshardOperationOnPrimary in class TransportReplicationAction<ShardFlushRequest,ShardFlushRequest,ActionWriteResponse>Throwableprotected void shardOperationOnReplica(ShardFlushRequest request)
TransportReplicationActionshardOperationOnReplica in class TransportReplicationAction<ShardFlushRequest,ShardFlushRequest,ActionWriteResponse>protected boolean checkWriteConsistency()
TransportReplicationActioncheckWriteConsistency in class TransportReplicationAction<ShardFlushRequest,ShardFlushRequest,ActionWriteResponse>protected ClusterBlockLevel globalBlockLevel()
TransportReplicationActionglobalBlockLevel in class TransportReplicationAction<ShardFlushRequest,ShardFlushRequest,ActionWriteResponse>protected ClusterBlockLevel indexBlockLevel()
TransportReplicationActionindexBlockLevel in class TransportReplicationAction<ShardFlushRequest,ShardFlushRequest,ActionWriteResponse>protected boolean shouldExecuteReplication(Settings settings)
TransportReplicationActionprotected boolean mustFailReplica(Throwable e)
TransportReplicationActiontrue iff the replica must be failed if it threw the given exception.
This defaults to the inverse of TransportReplicationAction.ignoreReplicaException(Throwable)mustFailReplica in class TransportReplicationAction<ShardFlushRequest,ShardFlushRequest,ActionWriteResponse>Copyright © 2009–2017. All rights reserved.