org.elasticsearch.action.delete.index
Class TransportShardDeleteAction

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

public class TransportShardDeleteAction
extends TransportShardReplicationOperationAction<ShardDeleteRequest,ShardDeleteRequest,ShardDeleteResponse>


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
TransportShardDeleteAction(Settings settings, TransportService transportService, ClusterService clusterService, IndicesService indicesService, ThreadPool threadPool, ShardStateAction shardStateAction)
           
 
Method Summary
protected  ClusterBlockException checkGlobalBlock(ClusterState state, ShardDeleteRequest request)
           
protected  ClusterBlockException checkRequestBlock(ClusterState state, ShardDeleteRequest request)
           
protected  boolean checkWriteConsistency()
           
protected  String executor()
           
protected  ShardDeleteRequest newReplicaRequestInstance()
           
protected  ShardDeleteRequest newRequestInstance()
           
protected  ShardDeleteResponse newResponseInstance()
           
protected  TransportShardReplicationOperationAction.PrimaryResponse<ShardDeleteResponse,ShardDeleteRequest> shardOperationOnPrimary(ClusterState clusterState, TransportShardReplicationOperationAction.PrimaryOperationRequest shardRequest)
           
protected  void shardOperationOnReplica(TransportShardReplicationOperationAction.ReplicaOperationRequest shardRequest)
           
protected  ShardIterator shards(ClusterState clusterState, ShardDeleteRequest 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

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,ShardDeleteRequest,ShardDeleteResponse>

newRequestInstance

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

newReplicaRequestInstance

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

newResponseInstance

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

transportAction

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

executor

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

checkGlobalBlock

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

checkRequestBlock

protected ClusterBlockException checkRequestBlock(ClusterState state,
                                                  ShardDeleteRequest request)
Specified by:
checkRequestBlock in class TransportShardReplicationOperationAction<ShardDeleteRequest,ShardDeleteRequest,ShardDeleteResponse>

shardOperationOnPrimary

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

shardOperationOnReplica

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

shards

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


Copyright © 2009-2012. All Rights Reserved.