Class RecoveriesCollection

java.lang.Object
org.elasticsearch.indices.recovery.RecoveriesCollection

public class RecoveriesCollection
extends java.lang.Object
This class holds a collection of all on going recoveries on the current node (i.e., the node is the target node of those recoveries). The class is used to guarantee concurrent semantics such that once a recoveries was done/cancelled/failed no other thread will be able to find it. Last, the RecoveriesCollection.RecoveryRef inner class verifies that recovery temporary files and store will only be cleared once on going usage is finished.