public class TransportRecoveryAction extends TransportBroadcastOperationAction<RecoveryRequest,RecoveryResponse,org.elasticsearch.action.admin.indices.recovery.TransportRecoveryAction.ShardRecoveryRequest,ShardRecoveryResponse>
TransportBroadcastOperationAction.AsyncBroadcastActionclusterService, threadPool, transportServiceactionNamecomponentSettings, logger, settings| Constructor and Description |
|---|
TransportRecoveryAction(Settings settings,
ThreadPool threadPool,
ClusterService clusterService,
TransportService transportService,
IndicesService indicesService,
ActionFilters actionFilters) |
| Modifier and Type | Method and Description |
|---|---|
protected ClusterBlockException |
checkGlobalBlock(ClusterState state,
RecoveryRequest request) |
protected ClusterBlockException |
checkRequestBlock(ClusterState state,
RecoveryRequest request,
String[] concreteIndices) |
protected String |
executor() |
protected RecoveryRequest |
newRequest() |
protected RecoveryResponse |
newResponse(RecoveryRequest request,
AtomicReferenceArray shardsResponses,
ClusterState clusterState) |
protected org.elasticsearch.action.admin.indices.recovery.TransportRecoveryAction.ShardRecoveryRequest |
newShardRequest() |
protected org.elasticsearch.action.admin.indices.recovery.TransportRecoveryAction.ShardRecoveryRequest |
newShardRequest(int numShards,
ShardRouting shard,
RecoveryRequest request) |
protected ShardRecoveryResponse |
newShardResponse() |
protected ShardRecoveryResponse |
shardOperation(org.elasticsearch.action.admin.indices.recovery.TransportRecoveryAction.ShardRecoveryRequest request) |
protected GroupShardsIterator |
shards(ClusterState state,
RecoveryRequest request,
String[] concreteIndices)
Determines the shards this operation will be executed on.
|
doExecuteexecute, execute, forceThreadedListenernodeName@Inject public TransportRecoveryAction(Settings settings, ThreadPool threadPool, ClusterService clusterService, TransportService transportService, IndicesService indicesService, ActionFilters actionFilters)
protected String executor()
executor in class TransportBroadcastOperationAction<RecoveryRequest,RecoveryResponse,org.elasticsearch.action.admin.indices.recovery.TransportRecoveryAction.ShardRecoveryRequest,ShardRecoveryResponse>protected RecoveryRequest newRequest()
newRequest in class TransportBroadcastOperationAction<RecoveryRequest,RecoveryResponse,org.elasticsearch.action.admin.indices.recovery.TransportRecoveryAction.ShardRecoveryRequest,ShardRecoveryResponse>protected RecoveryResponse newResponse(RecoveryRequest request, AtomicReferenceArray shardsResponses, ClusterState clusterState)
newResponse in class TransportBroadcastOperationAction<RecoveryRequest,RecoveryResponse,org.elasticsearch.action.admin.indices.recovery.TransportRecoveryAction.ShardRecoveryRequest,ShardRecoveryResponse>protected org.elasticsearch.action.admin.indices.recovery.TransportRecoveryAction.ShardRecoveryRequest newShardRequest()
newShardRequest in class TransportBroadcastOperationAction<RecoveryRequest,RecoveryResponse,org.elasticsearch.action.admin.indices.recovery.TransportRecoveryAction.ShardRecoveryRequest,ShardRecoveryResponse>protected org.elasticsearch.action.admin.indices.recovery.TransportRecoveryAction.ShardRecoveryRequest newShardRequest(int numShards,
ShardRouting shard,
RecoveryRequest request)
newShardRequest in class TransportBroadcastOperationAction<RecoveryRequest,RecoveryResponse,org.elasticsearch.action.admin.indices.recovery.TransportRecoveryAction.ShardRecoveryRequest,ShardRecoveryResponse>protected ShardRecoveryResponse newShardResponse()
newShardResponse in class TransportBroadcastOperationAction<RecoveryRequest,RecoveryResponse,org.elasticsearch.action.admin.indices.recovery.TransportRecoveryAction.ShardRecoveryRequest,ShardRecoveryResponse>protected ShardRecoveryResponse shardOperation(org.elasticsearch.action.admin.indices.recovery.TransportRecoveryAction.ShardRecoveryRequest request) throws ElasticsearchException
shardOperation in class TransportBroadcastOperationAction<RecoveryRequest,RecoveryResponse,org.elasticsearch.action.admin.indices.recovery.TransportRecoveryAction.ShardRecoveryRequest,ShardRecoveryResponse>ElasticsearchExceptionprotected GroupShardsIterator shards(ClusterState state, RecoveryRequest request, String[] concreteIndices)
TransportBroadcastOperationActionshards in class TransportBroadcastOperationAction<RecoveryRequest,RecoveryResponse,org.elasticsearch.action.admin.indices.recovery.TransportRecoveryAction.ShardRecoveryRequest,ShardRecoveryResponse>protected ClusterBlockException checkGlobalBlock(ClusterState state, RecoveryRequest request)
checkGlobalBlock in class TransportBroadcastOperationAction<RecoveryRequest,RecoveryResponse,org.elasticsearch.action.admin.indices.recovery.TransportRecoveryAction.ShardRecoveryRequest,ShardRecoveryResponse>protected ClusterBlockException checkRequestBlock(ClusterState state, RecoveryRequest request, String[] concreteIndices)
checkRequestBlock in class TransportBroadcastOperationAction<RecoveryRequest,RecoveryResponse,org.elasticsearch.action.admin.indices.recovery.TransportRecoveryAction.ShardRecoveryRequest,ShardRecoveryResponse>Copyright © 2009–2016. All rights reserved.