Class CreateMetricUpdater
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.util.CreateMetricUpdater
-
public final class CreateMetricUpdater extends Object
Base class to update the metrics forDocumentStoreStatsCollector.doneCreate(long, Collection, List, boolean)
for underlyingDocumentStore
Users provide instances of
MeterStats
,TimerStats
based on whether throttling is ongoing or not
-
-
Constructor Summary
Constructors Constructor Description CreateMetricUpdater(MeterStats createNodeMeter, MeterStats createSplitNodeMeter, TimerStats createNodeTimer, MeterStats createJournal, TimerStats createJournalTimer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
update(Collection<? extends Document> collection, long timeTakenNanos, List<String> ids, boolean insertSuccess, BiPredicate<Collection<? extends Document>,Integer> isNodesCollectionUpdated, TriStatsConsumer triStatsConsumer, Predicate<Collection<? extends Document>> isJournalCollection, BiStatsConsumer journalBiStatsConsumer)
-
-
-
Constructor Detail
-
CreateMetricUpdater
public CreateMetricUpdater(MeterStats createNodeMeter, MeterStats createSplitNodeMeter, TimerStats createNodeTimer, MeterStats createJournal, TimerStats createJournalTimer)
-
-
Method Detail
-
update
public void update(Collection<? extends Document> collection, long timeTakenNanos, List<String> ids, boolean insertSuccess, BiPredicate<Collection<? extends Document>,Integer> isNodesCollectionUpdated, TriStatsConsumer triStatsConsumer, Predicate<Collection<? extends Document>> isJournalCollection, BiStatsConsumer journalBiStatsConsumer)
-
-