org.elasticsearch.action.deletebyquery
Class TransportShardDeleteByQueryAction

java.lang.Object
  extended by org.elasticsearch.common.component.AbstractComponent
      extended by org.elasticsearch.action.support.TransportAction<Request,Response>
          extended by org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction<ShardDeleteByQueryRequest,ShardDeleteByQueryRequest,ShardDeleteByQueryResponse>
              extended by org.elasticsearch.action.deletebyquery.TransportShardDeleteByQueryAction

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, transportOptions, transportService
 
Fields inherited from class org.elasticsearch.action.support.TransportAction
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  ClusterBlockException checkGlobalBlock(ClusterState state, ShardDeleteByQueryRequest request)
           
protected  ClusterBlockException checkRequestBlock(ClusterState state, ShardDeleteByQueryRequest request)
           
protected  boolean checkWriteConsistency()
           
protected  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  String transportAction()
           
 
Methods inherited from class org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction
doExecute, ignoreReplicas, postPrimaryOperation, resolveRequest, retryPrimaryException, transportOptions
 
Methods inherited from class org.elasticsearch.action.support.TransportAction
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 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 String transportAction()
Specified by:
transportAction in class TransportShardReplicationOperationAction<ShardDeleteByQueryRequest,ShardDeleteByQueryRequest,ShardDeleteByQueryResponse>

checkGlobalBlock

protected ClusterBlockException checkGlobalBlock(ClusterState state,
                                                 ShardDeleteByQueryRequest request)
Specified by:
checkGlobalBlock in class TransportShardReplicationOperationAction<ShardDeleteByQueryRequest,ShardDeleteByQueryRequest,ShardDeleteByQueryResponse>

checkRequestBlock

protected ClusterBlockException checkRequestBlock(ClusterState state,
                                                  ShardDeleteByQueryRequest request)
Specified by:
checkRequestBlock 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>


Copyright © 2009-2012. All Rights Reserved.