- All Implemented Interfaces:
public class PeerSync extends Object implements SolrMetricProducerThis class is useful for performing peer to peer synchronization of recently indexed update commands during recovery process.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
Nested Class Summary
Nested Classes Modifier and Type Class Description
PeerSync.MissedUpdatesFinderHelper class for doing comparison ourUpdates and other replicas's updates to find the updates that we missed
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description
initializeMetrics(SolrMetricManager manager, String registry, String tag, String scope)Initializes metrics specific to this producer.
percentile(List<Long> arr, float frac)
sync()Returns true if peer sync was successful, meaning that this core may be considered to have the latest updates.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void initializeMetrics(SolrMetricManager manager, String registry, String tag, String scope)Description copied from interface:
SolrMetricProducerInitializes metrics specific to this producer.
Note: for back-compatibility this method by default calls
SolrMetricProducer.initializeMetrics(SolrMetricManager, String, String).
- Specified by:
manager- an instance of
registry- registry name where metrics are registered
tag- symbolic tag that represents a group of related instances that have the same life-cycle. Parent component can use the
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 contexts
public PeerSync.PeerSyncResult sync()Returns true if peer sync was successful, meaning that this core may be considered to have the latest updates. It does not mean that the remote replica is in sync with us.