public class PeerSyncWithLeader extends Object implements SolrMetricProducer
Modifier and Type | Class and Description |
---|---|
static class |
PeerSyncWithLeader.MissedUpdatesFinder
Helper 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
|
public static final String METRIC_SCOPE
public void initializeMetrics(SolrMetricManager manager, String registry, String tag, String scope)
SolrMetricProducer
initializeMetrics
in interface SolrMetricProducer
manager
- an instance of SolrMetricManager
registry
- 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 and is set when
SolrMetricProducer.initializeMetrics(SolrMetricManager, String, String, String)
is called.scope
- scope of the metrics (eg. handler name) to separate metrics ofpublic PeerSync.PeerSyncResult sync(List<Long> startingVersions)
startingVersions
- : recent versions on startupCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.