Class DocumentNodeStoreStats
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreStats
-
- All Implemented Interfaces:
DocumentNodeStoreStatsCollector
public class DocumentNodeStoreStats extends Object implements DocumentNodeStoreStatsCollector
-
-
Constructor Summary
Constructors Constructor Description DocumentNodeStoreStats(StatisticsProvider sp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoneBackgroundRead(org.apache.jackrabbit.oak.plugins.document.BackgroundReadStats stats)Report to the collector that a background read was done.voiddoneBackgroundUpdate(org.apache.jackrabbit.oak.plugins.document.BackgroundWriteStats stats)Report to the collector that a background update was done.voiddoneBranchCommit()Report to the collector that a branch commit was done.voiddoneChangesApplied(long timeMicros)Reports to the collector that the commit applied the changes to theDocumentStorein the given time.voiddoneCommitHookProcessed(long timeMicros)Reports to the collector that the commit hook processed a commit in the given time.voiddoneLeaseUpdate(long timeMicros)Report to the collector that a lease update was done.voiddoneMerge(int numChanges, int numRetries, long timeMillis, long suspendMillis, boolean exclusive)Reports to the collector that a merge was done.voiddoneMergeBranch(int numCommits, int numChanges)Report to the collector that a branch was merged.voiddoneMergeLockAcquired(long timeMicros)Reports to the collector that the commit acquired the merge lock in the given time.voiddoneWaitUntilHead(long waitMicros)Reports to the collector that a commit finished waiting to become the head of the commit queue.voidfailedMerge(int numRetries, long timeMillis, long suspendMillis, boolean exclusive)Reports to the collector that a merge failed.
-
-
-
Constructor Detail
-
DocumentNodeStoreStats
public DocumentNodeStoreStats(StatisticsProvider sp)
-
-
Method Detail
-
doneBackgroundRead
public void doneBackgroundRead(org.apache.jackrabbit.oak.plugins.document.BackgroundReadStats stats)
Description copied from interface:DocumentNodeStoreStatsCollectorReport to the collector that a background read was done.- Specified by:
doneBackgroundReadin interfaceDocumentNodeStoreStatsCollector- Parameters:
stats- the stats for the background read operation.
-
doneBackgroundUpdate
public void doneBackgroundUpdate(org.apache.jackrabbit.oak.plugins.document.BackgroundWriteStats stats)
Description copied from interface:DocumentNodeStoreStatsCollectorReport to the collector that a background update was done.- Specified by:
doneBackgroundUpdatein interfaceDocumentNodeStoreStatsCollector- Parameters:
stats- the stats for the background update operation.
-
doneLeaseUpdate
public void doneLeaseUpdate(long timeMicros)
Description copied from interface:DocumentNodeStoreStatsCollectorReport to the collector that a lease update was done.- Specified by:
doneLeaseUpdatein interfaceDocumentNodeStoreStatsCollector- Parameters:
timeMicros- the time in microseconds it took to update the lease.
-
doneBranchCommit
public void doneBranchCommit()
Description copied from interface:DocumentNodeStoreStatsCollectorReport to the collector that a branch commit was done.- Specified by:
doneBranchCommitin interfaceDocumentNodeStoreStatsCollector
-
doneMergeBranch
public void doneMergeBranch(int numCommits, int numChanges)Description copied from interface:DocumentNodeStoreStatsCollectorReport to the collector that a branch was merged.- Specified by:
doneMergeBranchin interfaceDocumentNodeStoreStatsCollector- Parameters:
numCommits- the number of branch commits merged.numChanges- the number of changes merged.
-
doneMerge
public void doneMerge(int numChanges, int numRetries, long timeMillis, long suspendMillis, boolean exclusive)Description copied from interface:DocumentNodeStoreStatsCollectorReports to the collector that a merge was done. The number of changes reported with this method is the number of documents that were modified with the merge.- Specified by:
doneMergein interfaceDocumentNodeStoreStatsCollector- Parameters:
numChanges- the number of changes in this merge.numRetries- the number of retries that were necessary.timeMillis- the time in milliseconds it took to merge the changes.suspendMillis- the time in milliseconds the merge was suspended.exclusive- whether the merge was holding an exclusive lock.
-
failedMerge
public void failedMerge(int numRetries, long timeMillis, long suspendMillis, boolean exclusive)Description copied from interface:DocumentNodeStoreStatsCollectorReports to the collector that a merge failed.- Specified by:
failedMergein interfaceDocumentNodeStoreStatsCollector- Parameters:
numRetries- the number of retries that were done.timeMillis- the time in milliseconds it took to attempt the merge.suspendMillis- the time in milliseconds the merge was suspended.exclusive- whether the merge was holding an exclusive lock.
-
doneWaitUntilHead
public void doneWaitUntilHead(long waitMicros)
Description copied from interface:DocumentNodeStoreStatsCollectorReports to the collector that a commit finished waiting to become the head of the commit queue.- Specified by:
doneWaitUntilHeadin interfaceDocumentNodeStoreStatsCollector- Parameters:
waitMicros- the time it waited in microseconds to be come the head of the queue.
-
doneMergeLockAcquired
public void doneMergeLockAcquired(long timeMicros)
Description copied from interface:DocumentNodeStoreStatsCollectorReports to the collector that the commit acquired the merge lock in the given time.- Specified by:
doneMergeLockAcquiredin interfaceDocumentNodeStoreStatsCollector- Parameters:
timeMicros- the time in microseconds.
-
doneCommitHookProcessed
public void doneCommitHookProcessed(long timeMicros)
Description copied from interface:DocumentNodeStoreStatsCollectorReports to the collector that the commit hook processed a commit in the given time.- Specified by:
doneCommitHookProcessedin interfaceDocumentNodeStoreStatsCollector- Parameters:
timeMicros- the time in microseconds.
-
doneChangesApplied
public void doneChangesApplied(long timeMicros)
Description copied from interface:DocumentNodeStoreStatsCollectorReports to the collector that the commit applied the changes to theDocumentStorein the given time.- Specified by:
doneChangesAppliedin interfaceDocumentNodeStoreStatsCollector- Parameters:
timeMicros- the time in microseconds.
-
-