org.elasticsearch.index.shard.recovery
Class RecoveryAction

java.lang.Object
  extended by org.elasticsearch.index.shard.AbstractIndexShardComponent
      extended by org.elasticsearch.index.shard.recovery.RecoveryAction
All Implemented Interfaces:
IndexShardComponent, CloseableComponent

public class RecoveryAction
extends AbstractIndexShardComponent
implements CloseableComponent


Field Summary
 
Fields inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponent
componentSettings, indexSettings, logger, shardId
 
Constructor Summary
RecoveryAction(ShardId shardId, Settings indexSettings, ThreadPool threadPool, TransportService transportService, IndexShard indexShard, Store store)
           
 
Method Summary
 void close()
           
 void startRecovery(DiscoveryNode node, DiscoveryNode targetNode, boolean markAsRelocated)
           
 
Methods inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponent
indexSettings, managementGroupName, nodeName, shardId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecoveryAction

@Inject
public RecoveryAction(ShardId shardId,
                             @IndexSettings
                             Settings indexSettings,
                             ThreadPool threadPool,
                             TransportService transportService,
                             IndexShard indexShard,
                             Store store)
Method Detail

close

public void close()
Specified by:
close in interface CloseableComponent

startRecovery

public void startRecovery(DiscoveryNode node,
                          DiscoveryNode targetNode,
                          boolean markAsRelocated)
                   throws ElasticSearchException
Throws:
ElasticSearchException