org.elasticsearch.action.support.replication
Class TransportShardReplicationOperationAction<Request extends ShardReplicationOperationRequest,Response extends ActionResponse>
java.lang.Object
org.elasticsearch.util.component.AbstractComponent
org.elasticsearch.action.support.BaseAction<Request,Response>
org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction<Request,Response>
- All Implemented Interfaces:
- Action<Request,Response>
- Direct Known Subclasses:
- TransportDeleteAction, TransportIndexAction, TransportShardDeleteByQueryAction, TransportShardGatewaySnapshotAction, TransportShardReplicationPingAction
public abstract class TransportShardReplicationOperationAction<Request extends ShardReplicationOperationRequest,Response extends ActionResponse>
- extends BaseAction<Request,Response>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
transportService
protected final TransportService transportService
clusterService
protected final ClusterService clusterService
indicesService
protected final IndicesService indicesService
threadPool
protected final ThreadPool threadPool
shardStateAction
protected final ShardStateAction shardStateAction
TransportShardReplicationOperationAction
protected TransportShardReplicationOperationAction(Settings settings,
TransportService transportService,
ClusterService clusterService,
IndicesService indicesService,
ThreadPool threadPool,
ShardStateAction shardStateAction)
doExecute
protected void doExecute(Request request,
ActionListener<Response> listener)
- Specified by:
doExecute
in class BaseAction<Request extends ShardReplicationOperationRequest,Response extends ActionResponse>
newRequestInstance
protected abstract Request newRequestInstance()
newResponseInstance
protected abstract Response newResponseInstance()
transportAction
protected abstract java.lang.String transportAction()
shardOperationOnPrimary
protected abstract Response shardOperationOnPrimary(TransportShardReplicationOperationAction.ShardOperationRequest shardRequest)
shardOperationOnBackup
protected abstract void shardOperationOnBackup(TransportShardReplicationOperationAction.ShardOperationRequest shardRequest)
shards
protected abstract ShardsIterator shards(ClusterState clusterState,
Request request)
throws ElasticSearchException
- Throws:
ElasticSearchException
ignoreBackups
protected boolean ignoreBackups()
- Should the operations be performed on the backups as well. Defaults to false meaning operations
will be executed on the backup.
indexShard
protected IndexShard indexShard(TransportShardReplicationOperationAction.ShardOperationRequest shardRequest)