public class PeerSyncWithLeader extends Object implements SolrMetricProducer
| Modifier and Type | Class and Description | 
|---|---|
| static class  | PeerSyncWithLeader.MissedUpdatesFinderHelper class for doing comparison ourUpdates and other replicas's updates to find the updates that we missed | 
| Modifier and Type | Field and Description | 
|---|---|
| static String | METRIC_SCOPE | 
| Constructor and Description | 
|---|
| PeerSyncWithLeader(SolrCore core,
                  String leaderUrl,
                  int nUpdates) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | initializeMetrics(SolrMetricManager manager,
                 String registry,
                 String tag,
                 String scope)Initializes metrics specific to this producer | 
| PeerSync.PeerSyncResult | sync(List<Long> startingVersions)Sync with leader | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getSolrMetricsContext, getUniqueMetricTag, initializeMetricspublic static final String METRIC_SCOPE
public void initializeMetrics(SolrMetricManager manager, String registry, String tag, String scope)
SolrMetricProducerinitializeMetrics in interface SolrMetricProducermanager - an instance of SolrMetricManagerregistry - registry name where metrics are registeredtag - a symbolic tag that represents this instance of the producer,
                 or a group of related instances that have the same life-cycle. This tag is
                 used when managing life-cycle of some metrics.scope - scope of the metrics (eg. handler name) to separate metrics of components with
                 the same implementation but different scope.public PeerSync.PeerSyncResult sync(List<Long> startingVersions)
startingVersions - : recent versions on startupCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.