org.elasticsearch.action.delete
Class TransportDeleteAction

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<DeleteRequest,DeleteResponse>
              extended by org.elasticsearch.action.delete.TransportDeleteAction
All Implemented Interfaces:
Action<DeleteRequest,DeleteResponse>

public class TransportDeleteAction
extends TransportShardReplicationOperationAction<DeleteRequest,DeleteResponse>

Performs the delete operation.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction
TransportShardReplicationOperationAction.AsyncShardOperationAction, TransportShardReplicationOperationAction.PrimaryResponse<T>, TransportShardReplicationOperationAction.ShardOperationRequest
 
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
TransportDeleteAction(Settings settings, TransportService transportService, ClusterService clusterService, IndicesService indicesService, ThreadPool threadPool, ShardStateAction shardStateAction, TransportCreateIndexAction createIndexAction, TransportIndexDeleteAction indexDeleteAction)
           
 
Method Summary
protected  void checkBlock(DeleteRequest request, ClusterState state)
           
protected  boolean checkWriteConsistency()
           
protected  void doExecute(DeleteRequest request, ActionListener<DeleteResponse> listener)
           
protected  java.lang.String executor()
           
protected  DeleteRequest newRequestInstance()
           
protected  DeleteResponse newResponseInstance()
           
protected  TransportShardReplicationOperationAction.PrimaryResponse<DeleteResponse> shardOperationOnPrimary(ClusterState clusterState, TransportShardReplicationOperationAction.ShardOperationRequest shardRequest)
           
protected  void shardOperationOnReplica(TransportShardReplicationOperationAction.ShardOperationRequest shardRequest)
           
protected  ShardIterator shards(ClusterState clusterState, DeleteRequest request)
           
protected  java.lang.String transportAction()
           
 
Methods inherited from class org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction
ignoreReplicas, indexShard, postPrimaryOperation, 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

TransportDeleteAction

@Inject
public TransportDeleteAction(Settings settings,
                                    TransportService transportService,
                                    ClusterService clusterService,
                                    IndicesService indicesService,
                                    ThreadPool threadPool,
                                    ShardStateAction shardStateAction,
                                    TransportCreateIndexAction createIndexAction,
                                    TransportIndexDeleteAction indexDeleteAction)
Method Detail

executor

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

doExecute

protected void doExecute(DeleteRequest request,
                         ActionListener<DeleteResponse> listener)
Overrides:
doExecute in class TransportShardReplicationOperationAction<DeleteRequest,DeleteResponse>

checkWriteConsistency

protected boolean checkWriteConsistency()
Specified by:
checkWriteConsistency in class TransportShardReplicationOperationAction<DeleteRequest,DeleteResponse>

newRequestInstance

protected DeleteRequest newRequestInstance()
Specified by:
newRequestInstance in class TransportShardReplicationOperationAction<DeleteRequest,DeleteResponse>

newResponseInstance

protected DeleteResponse newResponseInstance()
Specified by:
newResponseInstance in class TransportShardReplicationOperationAction<DeleteRequest,DeleteResponse>

transportAction

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

checkBlock

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

shardOperationOnPrimary

protected TransportShardReplicationOperationAction.PrimaryResponse<DeleteResponse> shardOperationOnPrimary(ClusterState clusterState,
                                                                                                           TransportShardReplicationOperationAction.ShardOperationRequest shardRequest)
Specified by:
shardOperationOnPrimary in class TransportShardReplicationOperationAction<DeleteRequest,DeleteResponse>

shardOperationOnReplica

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

shards

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