org.elasticsearch.action.delete
Class TransportDeleteAction

java.lang.Object
  extended by org.elasticsearch.util.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.ShardOperationRequest
 
Field Summary
 
Fields inherited from class org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction
clusterService, indicesService, shardStateAction, threadPool, transportService
 
Fields inherited from class org.elasticsearch.util.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
TransportDeleteAction(Settings settings, TransportService transportService, ClusterService clusterService, IndicesService indicesService, ThreadPool threadPool, ShardStateAction shardStateAction, TransportCreateIndexAction createIndexAction)
           
 
Method Summary
protected  void doExecute(DeleteRequest deleteRequest, ActionListener<DeleteResponse> listener)
           
protected  DeleteRequest newRequestInstance()
           
protected  DeleteResponse newResponseInstance()
           
protected  void shardOperationOnBackup(TransportShardReplicationOperationAction.ShardOperationRequest shardRequest)
           
protected  DeleteResponse shardOperationOnPrimary(TransportShardReplicationOperationAction.ShardOperationRequest shardRequest)
           
protected  ShardsIterator shards(ClusterState clusterState, DeleteRequest request)
           
protected  java.lang.String transportAction()
           
 
Methods inherited from class org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction
ignoreBackups, indexShard
 
Methods inherited from class org.elasticsearch.action.support.BaseAction
execute, execute
 
Methods inherited from class org.elasticsearch.util.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)
Method Detail

doExecute

protected void doExecute(DeleteRequest deleteRequest,
                         ActionListener<DeleteResponse> listener)
Overrides:
doExecute 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>

shardOperationOnPrimary

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

shardOperationOnBackup

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

shards

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