Package org.apache.solr.update
Class PeerSyncWithLeader
- java.lang.Object
-
- org.apache.solr.update.PeerSyncWithLeader
-
- All Implemented Interfaces:
SolrMetricProducer
public class PeerSyncWithLeader extends Object implements SolrMetricProducer
-
-
Field Summary
Fields Modifier and Type Field Description static String
METRIC_SCOPE
-
Constructor Summary
Constructors Constructor Description PeerSyncWithLeader(SolrCore core, String leaderUrl, int nUpdates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.solr.metrics.SolrMetricProducer
initializeMetrics
-
-
-
-
Field Detail
-
METRIC_SCOPE
public static final String METRIC_SCOPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
initializeMetrics
public void initializeMetrics(SolrMetricManager manager, String registry, String tag, String scope)
Description copied from interface:SolrMetricProducer
Initializes metrics specific to this producer.Note: for back-compatibility this method by default calls
SolrMetricProducer.initializeMetrics(SolrMetricManager, String, String)
.- Specified by:
initializeMetrics
in interfaceSolrMetricProducer
- Parameters:
manager
- an instance ofSolrMetricManager
registry
- 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 thetag
when callingSolrMetricManager.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 contexts
-
sync
public PeerSync.PeerSyncResult sync(List<Long> startingVersions)
Sync with leader- Parameters:
startingVersions
- : recent versions on startup- Returns:
- result of PeerSync with leader
-
-