org.elasticsearch.action.bulk
Class TransportShardBulkAction

java.lang.Object
  extended by org.elasticsearch.common.component.AbstractComponent
      extended by org.elasticsearch.action.support.BaseAction<Request,Response>
          extended by org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction<BulkShardRequest,BulkShardResponse>
              extended by org.elasticsearch.action.bulk.TransportShardBulkAction
All Implemented Interfaces:
Action<BulkShardRequest,BulkShardResponse>

public class TransportShardBulkAction
extends TransportShardReplicationOperationAction<BulkShardRequest,BulkShardResponse>

Performs the index operation.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction
TransportShardReplicationOperationAction.AsyncShardOperationAction, TransportShardReplicationOperationAction.ShardOperationRequest
 
Field Summary
 
Fields inherited from class org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction
clusterService, defaultReplicationType, defaultWriteConsistencyLevel, indicesService, shardStateAction, threadPool, transportService
 
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
TransportShardBulkAction(Settings settings, TransportService transportService, ClusterService clusterService, IndicesService indicesService, ThreadPool threadPool, ShardStateAction shardStateAction, MappingUpdatedAction mappingUpdatedAction)
           
 
Method Summary
protected  void checkBlock(BulkShardRequest request, ClusterState state)
           
protected  boolean checkWriteConsistency()
           
protected  BulkShardRequest newRequestInstance()
           
protected  BulkShardResponse newResponseInstance()
           
protected  BulkShardResponse shardOperationOnPrimary(ClusterState clusterState, TransportShardReplicationOperationAction.ShardOperationRequest shardRequest)
           
protected  void shardOperationOnReplica(TransportShardReplicationOperationAction.ShardOperationRequest shardRequest)
           
protected  ShardsIterator shards(ClusterState clusterState, BulkShardRequest request)
           
protected  java.lang.String transportAction()
           
protected  TransportRequestOptions transportOptions()
           
 
Methods inherited from class org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction
doExecute, ignoreReplicas, indexShard
 
Methods inherited from class org.elasticsearch.action.support.BaseAction
execute, execute
 
Methods inherited from class org.elasticsearch.common.component.AbstractComponent
nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransportShardBulkAction

@Inject
public TransportShardBulkAction(Settings settings,
                                       TransportService transportService,
                                       ClusterService clusterService,
                                       IndicesService indicesService,
                                       ThreadPool threadPool,
                                       ShardStateAction shardStateAction,
                                       MappingUpdatedAction mappingUpdatedAction)
Method Detail

checkWriteConsistency

protected boolean checkWriteConsistency()
Specified by:
checkWriteConsistency in class TransportShardReplicationOperationAction<BulkShardRequest,BulkShardResponse>

transportOptions

protected TransportRequestOptions transportOptions()
Overrides:
transportOptions in class TransportShardReplicationOperationAction<BulkShardRequest,BulkShardResponse>

newRequestInstance

protected BulkShardRequest newRequestInstance()
Specified by:
newRequestInstance in class TransportShardReplicationOperationAction<BulkShardRequest,BulkShardResponse>

newResponseInstance

protected BulkShardResponse newResponseInstance()
Specified by:
newResponseInstance in class TransportShardReplicationOperationAction<BulkShardRequest,BulkShardResponse>

transportAction

protected java.lang.String transportAction()
Specified by:
transportAction in class TransportShardReplicationOperationAction<BulkShardRequest,BulkShardResponse>

checkBlock

protected void checkBlock(BulkShardRequest request,
                          ClusterState state)
Overrides:
checkBlock in class TransportShardReplicationOperationAction<BulkShardRequest,BulkShardResponse>

shards

protected ShardsIterator shards(ClusterState clusterState,
                                BulkShardRequest request)
Specified by:
shards in class TransportShardReplicationOperationAction<BulkShardRequest,BulkShardResponse>

shardOperationOnPrimary

protected BulkShardResponse shardOperationOnPrimary(ClusterState clusterState,
                                                    TransportShardReplicationOperationAction.ShardOperationRequest shardRequest)
Specified by:
shardOperationOnPrimary in class TransportShardReplicationOperationAction<BulkShardRequest,BulkShardResponse>

shardOperationOnReplica

protected void shardOperationOnReplica(TransportShardReplicationOperationAction.ShardOperationRequest shardRequest)
Specified by:
shardOperationOnReplica in class TransportShardReplicationOperationAction<BulkShardRequest,BulkShardResponse>