public class SegmentNodeStoreStats extends Object implements SegmentNodeStoreStatsMBean, SegmentNodeStoreMonitor
Modifier and Type | Field and Description |
---|---|
static String |
COMMIT_QUEUE_SIZE |
static String |
COMMIT_TIME |
static String |
COMMITS_COUNT |
static String |
QUEUEING_TIME |
TYPE
DEFAULT
Constructor and Description |
---|
SegmentNodeStoreStats(org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider) |
Modifier and Type | Method and Description |
---|---|
void |
committedAfter(long time)
Notifies the monitor time spent (excluding queuing time) for a commit.
|
void |
dequeuedAfter(long time)
Notifies the monitor time spent in the queue for a commit, before being processed.
|
CompositeData |
getCommitsCount() |
CompositeData |
getCommitTimes() |
CompositeData |
getQueuingCommitsCount() |
CompositeData |
getQueuingTimes() |
void |
onCommit()
Notifies the monitor when a new commit was persisted right away
|
void |
onCommitDequeued()
Notifies the monitor when a queued commit was dequeued for processing.
|
void |
onCommitQueued()
Notifies the monitor when a new commit couldn't be persisted, but was
queued for later retry
|
public static final String COMMITS_COUNT
public static final String COMMIT_QUEUE_SIZE
public static final String COMMIT_TIME
public static final String QUEUEING_TIME
public SegmentNodeStoreStats(org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider)
public void onCommit()
SegmentNodeStoreMonitor
onCommit
in interface SegmentNodeStoreMonitor
public void onCommitQueued()
SegmentNodeStoreMonitor
onCommitQueued
in interface SegmentNodeStoreMonitor
public void onCommitDequeued()
SegmentNodeStoreMonitor
onCommitDequeued
in interface SegmentNodeStoreMonitor
public void committedAfter(long time)
SegmentNodeStoreMonitor
committedAfter
in interface SegmentNodeStoreMonitor
time
- the time spentpublic void dequeuedAfter(long time)
SegmentNodeStoreMonitor
dequeuedAfter
in interface SegmentNodeStoreMonitor
time
- the time spentpublic CompositeData getCommitsCount()
getCommitsCount
in interface SegmentNodeStoreStatsMBean
public CompositeData getQueuingCommitsCount()
getQueuingCommitsCount
in interface SegmentNodeStoreStatsMBean
public CompositeData getCommitTimes()
getCommitTimes
in interface SegmentNodeStoreStatsMBean
public CompositeData getQueuingTimes()
getQueuingTimes
in interface SegmentNodeStoreStatsMBean
Copyright © 2012-2019 The Apache Software Foundation. All Rights Reserved.