public class PeerSyncWithLeader extends Object implements SolrMetricProducer
| 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, waitinitializeMetricspublic static final String METRIC_SCOPE
public void initializeMetrics(SolrMetricManager manager, String registry, String tag, String scope)
SolrMetricProducerNote: for back-compatibility this method by default calls SolrMetricProducer.initializeMetrics(SolrMetricManager, String, String).
initializeMetrics in interface SolrMetricProducermanager - an instance of SolrMetricManagerregistry - registry name where metrics are registeredtag - symbolic tag that represents a group of related instances that
have the same life-cycle. Parent component can use the tag when
calling SolrMetricManager.unregisterGauges(String, String)
to unregister metrics created by this instance of the producer.scope - scope of the metrics (eg. handler name) to separate metrics of
instances of the same component executing in different contextspublic PeerSync.PeerSyncResult sync(List<Long> startingVersions)
startingVersions - : recent versions on startupCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.