org.elasticsearch.indices.recovery
Class RecoveryTarget
java.lang.Object
org.elasticsearch.common.component.AbstractComponent
org.elasticsearch.indices.recovery.RecoveryTarget
public class RecoveryTarget
- extends AbstractComponent
The recovery target handles recoveries of peer shards of the shard+node to recover to.
Note, it can be safely assumed that there will only be a single recovery per shard (index+id) and
not several of them (since we don't allocate several shard replicas to the same node).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RecoveryTarget
@Inject
public RecoveryTarget(Settings settings,
ThreadPool threadPool,
TransportService transportService,
IndicesService indicesService,
IndicesLifecycle indicesLifecycle,
RecoverySettings recoverySettings)
peerRecoveryStatus
public RecoveryStatus peerRecoveryStatus(ShardId shardId)
cancelRecovery
public void cancelRecovery(IndexShard indexShard)
startRecovery
public void startRecovery(StartRecoveryRequest request,
InternalIndexShard indexShard,
RecoveryTarget.RecoveryListener listener)
retryRecovery
public void retryRecovery(StartRecoveryRequest request,
RecoveryStatus status,
RecoveryTarget.RecoveryListener listener)
Copyright © 2009-2012. All Rights Reserved.