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

public class TransportShardDeleteByQueryAction
extends TransportShardReplicationOperationAction<ShardDeleteByQueryRequest,ShardDeleteByQueryRequest,ShardDeleteByQueryResponse>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction
TransportShardReplicationOperationAction.AsyncShardOperationAction, TransportShardReplicationOperationAction.PrimaryOperationRequest, TransportShardReplicationOperationAction.PrimaryResponse<Response,ReplicaRequest>, TransportShardReplicationOperationAction.ReplicaOperationRequest
 
Field Summary
 
Fields inherited from class org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction
clusterService, defaultReplicationType, defaultWriteConsistencyLevel, indicesService, shardStateAction, transportService
 
Fields inherited from class org.elasticsearch.action.support.BaseAction
threadPool
 
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  java.lang.String executor()
           
protected  ShardDeleteByQueryRequest newReplicaRequestInstance()
           
protected  ShardDeleteByQueryRequest newRequestInstance()
           
protected  ShardDeleteByQueryResponse newResponseInstance()
           
protected  TransportShardReplicationOperationAction.PrimaryResponse<ShardDeleteByQueryResponse,ShardDeleteByQueryRequest> shardOperationOnPrimary(ClusterState clusterState, TransportShardReplicationOperationAction.PrimaryOperationRequest shardRequest)
           
protected  void shardOperationOnReplica(TransportShardReplicationOperationAction.ReplicaOperationRequest shardRequest)
           
protected  ShardIterator shards(ClusterState clusterState, ShardDeleteByQueryRequest request)
           
protected  java.lang.String transportAction()
           
 
Methods inherited from class org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction
doExecute, ignoreReplicas, postPrimaryOperation, retryPrimaryException, 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,ShardDeleteByQueryRequest,ShardDeleteByQueryResponse>

executor

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

newRequestInstance

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

newReplicaRequestInstance

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

newResponseInstance

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

transportAction

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

checkBlock

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

shardOperationOnPrimary

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

shardOperationOnReplica

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

shards

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