Package org.apache.solr.cloud
Class ReplicateFromLeader
- java.lang.Object
-
- org.apache.solr.cloud.ReplicateFromLeader
-
public class ReplicateFromLeader extends Object
-
-
Constructor Summary
Constructors Constructor Description ReplicateFromLeader(CoreContainer cc, String coreName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringgetCommitVersion(SolrCore solrCore)voidstartReplication(boolean switchTransactionLog)Start a replication handler thread that will periodically pull indices from the shard leadervoidstopReplication()
-
-
-
Constructor Detail
-
ReplicateFromLeader
public ReplicateFromLeader(CoreContainer cc, String coreName)
-
-
Method Detail
-
startReplication
public void startReplication(boolean switchTransactionLog) throws InterruptedExceptionStart a replication handler thread that will periodically pull indices from the shard leader- Parameters:
switchTransactionLog- if true, ReplicationHandler will rotate the transaction log once the replication is done- Throws:
InterruptedException
-
stopReplication
public void stopReplication()
-
-