Package org.apache.solr.update
Class PeerSyncWithLeader
- java.lang.Object
- 
- org.apache.solr.update.PeerSyncWithLeader
 
- 
- All Implemented Interfaces:
- AutoCloseable,- SolrMetricProducer
 
 public class PeerSyncWithLeader extends Object implements SolrMetricProducer 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classPeerSyncWithLeader.MissedUpdatesFinderHelper class for doing comparison ourUpdates and other replicas's updates to find the updates that we missed
 - 
Field SummaryFields Modifier and Type Field Description static StringMETRIC_SCOPE
 - 
Constructor SummaryConstructors Constructor Description PeerSyncWithLeader(SolrCore core, String leaderUrl, int nUpdates)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SolrMetricsContextgetSolrMetricsContext()Implementations should return the context used inSolrMetricProducer.initializeMetrics(SolrMetricsContext, String)to ensure proper cleanup of metrics at the end of the life-cycle of this component.voidinitializeMetrics(SolrMetricsContext parentContext, String scope)Initialize metrics specific to this producer.PeerSync.PeerSyncResultsync(List<Long> startingVersions)Sync with leader- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.solr.metrics.SolrMetricProducerclose
 
- 
 
- 
- 
- 
Field Detail- 
METRIC_SCOPEpublic static final String METRIC_SCOPE - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getSolrMetricsContextpublic SolrMetricsContext getSolrMetricsContext() Description copied from interface:SolrMetricProducerImplementations should return the context used inSolrMetricProducer.initializeMetrics(SolrMetricsContext, String)to ensure proper cleanup of metrics at the end of the life-cycle of this component. This should be the child context if one was created, or null if the parent context was used.- Specified by:
- getSolrMetricsContextin interface- SolrMetricProducer
 
 - 
initializeMetricspublic void initializeMetrics(SolrMetricsContext parentContext, String scope) Description copied from interface:SolrMetricProducerInitialize metrics specific to this producer.- Specified by:
- initializeMetricsin interface- SolrMetricProducer
- Parameters:
- parentContext- parent metrics context. If this component has the same life-cycle as the parent it can simply use the parent context, otherwise it should obtain a child context using- SolrMetricsContext.getChildContext(Object)passing- thisas the child object.
- scope- component scope
 
 - 
syncpublic PeerSync.PeerSyncResult sync(List<Long> startingVersions) Sync with leader- Parameters:
- startingVersions- : recent versions on startup
- Returns:
- result of PeerSync with leader
 
 
- 
 
-