org.elasticsearch.action.deletebyquery
Class TransportShardDeleteByQueryAction

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<ShardDeleteByQueryRequest,ShardDeleteByQueryResponse>
              extended by org.elasticsearch.action.deletebyquery.TransportShardDeleteByQueryAction
All Implemented Interfaces:
Action<ShardDeleteByQueryRequest,ShardDeleteByQueryResponse>

public class TransportShardDeleteByQueryAction
extends TransportShardReplicationOperationAction<ShardDeleteByQueryRequest,ShardDeleteByQueryResponse>


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
TransportShardDeleteByQueryAction(Settings settings, TransportService transportService, ClusterService clusterService, IndicesService indicesService, ThreadPool threadPool, ShardStateAction shardStateAction)
           
 
Method Summary
protected  void checkBlock(ShardDeleteByQueryRequest request, ClusterState state)
           
protected  boolean checkWriteConsistency()
           
protected  ShardDeleteByQueryRequest newRequestInstance()
           
protected  ShardDeleteByQueryResponse newResponseInstance()
           
protected  ShardDeleteByQueryResponse shardOperationOnPrimary(ClusterState clusterState, TransportShardReplicationOperationAction.ShardOperationRequest shardRequest)
           
protected  void shardOperationOnReplica(TransportShardReplicationOperationAction.ShardOperationRequest shardRequest)
           
protected  ShardsIterator shards(ClusterState clusterState, ShardDeleteByQueryRequest request)
           
protected  java.lang.String transportAction()
           
 
Methods inherited from class org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction
doExecute, ignoreReplicas, indexShard, transportOptions
 
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

TransportShardDeleteByQueryAction

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

checkWriteConsistency

protected boolean checkWriteConsistency()
Specified by:
checkWriteConsistency in class TransportShardReplicationOperationAction<ShardDeleteByQueryRequest,ShardDeleteByQueryResponse>

newRequestInstance

protected ShardDeleteByQueryRequest newRequestInstance()
Specified by:
newRequestInstance in class TransportShardReplicationOperationAction<ShardDeleteByQueryRequest,ShardDeleteByQueryResponse>

newResponseInstance

protected ShardDeleteByQueryResponse newResponseInstance()
Specified by:
newResponseInstance in class TransportShardReplicationOperationAction<ShardDeleteByQueryRequest,ShardDeleteByQueryResponse>

transportAction

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

checkBlock

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

shardOperationOnPrimary

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

shardOperationOnReplica

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

shards

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