org.elasticsearch.action.bulk
Class TransportShardBulkAction
java.lang.Object
org.elasticsearch.common.component.AbstractComponent
org.elasticsearch.action.support.BaseAction<Request,Response>
org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction<BulkShardRequest,BulkShardRequest,BulkShardResponse>
org.elasticsearch.action.bulk.TransportShardBulkAction
- All Implemented Interfaces:
- Action<BulkShardRequest,BulkShardResponse>
public class TransportShardBulkAction
- extends TransportShardReplicationOperationAction<BulkShardRequest,BulkShardRequest,BulkShardResponse>
Performs the index operation.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransportShardBulkAction
@Inject
public TransportShardBulkAction(Settings settings,
TransportService transportService,
ClusterService clusterService,
IndicesService indicesService,
ThreadPool threadPool,
ShardStateAction shardStateAction,
MappingUpdatedAction mappingUpdatedAction)
executor
protected java.lang.String executor()
- Specified by:
executor
in class TransportShardReplicationOperationAction<BulkShardRequest,BulkShardRequest,BulkShardResponse>
checkWriteConsistency
protected boolean checkWriteConsistency()
- Specified by:
checkWriteConsistency
in class TransportShardReplicationOperationAction<BulkShardRequest,BulkShardRequest,BulkShardResponse>
transportOptions
protected TransportRequestOptions transportOptions()
- Overrides:
transportOptions
in class TransportShardReplicationOperationAction<BulkShardRequest,BulkShardRequest,BulkShardResponse>
newRequestInstance
protected BulkShardRequest newRequestInstance()
- Specified by:
newRequestInstance
in class TransportShardReplicationOperationAction<BulkShardRequest,BulkShardRequest,BulkShardResponse>
newReplicaRequestInstance
protected BulkShardRequest newReplicaRequestInstance()
- Specified by:
newReplicaRequestInstance
in class TransportShardReplicationOperationAction<BulkShardRequest,BulkShardRequest,BulkShardResponse>
newResponseInstance
protected BulkShardResponse newResponseInstance()
- Specified by:
newResponseInstance
in class TransportShardReplicationOperationAction<BulkShardRequest,BulkShardRequest,BulkShardResponse>
transportAction
protected java.lang.String transportAction()
- Specified by:
transportAction
in class TransportShardReplicationOperationAction<BulkShardRequest,BulkShardRequest,BulkShardResponse>
checkBlock
protected void checkBlock(BulkShardRequest request,
ClusterState state)
- Overrides:
checkBlock
in class TransportShardReplicationOperationAction<BulkShardRequest,BulkShardRequest,BulkShardResponse>
shards
protected ShardIterator shards(ClusterState clusterState,
BulkShardRequest request)
- Specified by:
shards
in class TransportShardReplicationOperationAction<BulkShardRequest,BulkShardRequest,BulkShardResponse>
shardOperationOnPrimary
protected TransportShardReplicationOperationAction.PrimaryResponse<BulkShardResponse,BulkShardRequest> shardOperationOnPrimary(ClusterState clusterState,
TransportShardReplicationOperationAction.PrimaryOperationRequest shardRequest)
- Specified by:
shardOperationOnPrimary
in class TransportShardReplicationOperationAction<BulkShardRequest,BulkShardRequest,BulkShardResponse>
postPrimaryOperation
protected void postPrimaryOperation(BulkShardRequest request,
TransportShardReplicationOperationAction.PrimaryResponse<BulkShardResponse,BulkShardRequest> response)
- Description copied from class:
TransportShardReplicationOperationAction
- Called once replica operations have been dispatched on the
- Overrides:
postPrimaryOperation
in class TransportShardReplicationOperationAction<BulkShardRequest,BulkShardRequest,BulkShardResponse>
shardOperationOnReplica
protected void shardOperationOnReplica(TransportShardReplicationOperationAction.ReplicaOperationRequest shardRequest)
- Specified by:
shardOperationOnReplica
in class TransportShardReplicationOperationAction<BulkShardRequest,BulkShardRequest,BulkShardResponse>