org.elasticsearch.action.delete.index
Class TransportShardDeleteAction

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<ShardDeleteRequest,ShardDeleteResponse>
              extended by org.elasticsearch.action.delete.index.TransportShardDeleteAction
All Implemented Interfaces:
Action<ShardDeleteRequest,ShardDeleteResponse>

public class TransportShardDeleteAction
extends TransportShardReplicationOperationAction<ShardDeleteRequest,ShardDeleteResponse>


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
TransportShardDeleteAction(Settings settings, TransportService transportService, ClusterService clusterService, IndicesService indicesService, ThreadPool threadPool, ShardStateAction shardStateAction)
           
 
Method Summary
protected  void checkBlock(ShardDeleteRequest request, ClusterState state)
           
protected  boolean checkWriteConsistency()
           
protected  ShardDeleteRequest newRequestInstance()
           
protected  ShardDeleteResponse newResponseInstance()
           
protected  ShardDeleteResponse shardOperationOnPrimary(ClusterState clusterState, TransportShardReplicationOperationAction.ShardOperationRequest shardRequest)
           
protected  void shardOperationOnReplica(TransportShardReplicationOperationAction.ShardOperationRequest shardRequest)
           
protected  ShardsIterator shards(ClusterState clusterState, ShardDeleteRequest 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

TransportShardDeleteAction

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

checkWriteConsistency

protected boolean checkWriteConsistency()
Specified by:
checkWriteConsistency in class TransportShardReplicationOperationAction<ShardDeleteRequest,ShardDeleteResponse>

newRequestInstance

protected ShardDeleteRequest newRequestInstance()
Specified by:
newRequestInstance in class TransportShardReplicationOperationAction<ShardDeleteRequest,ShardDeleteResponse>

newResponseInstance

protected ShardDeleteResponse newResponseInstance()
Specified by:
newResponseInstance in class TransportShardReplicationOperationAction<ShardDeleteRequest,ShardDeleteResponse>

transportAction

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

checkBlock

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

shardOperationOnPrimary

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

shardOperationOnReplica

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

shards

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