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 |
TYPEDEFAULT| 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()
SegmentNodeStoreMonitoronCommit in interface SegmentNodeStoreMonitorpublic void onCommitQueued()
SegmentNodeStoreMonitoronCommitQueued in interface SegmentNodeStoreMonitorpublic void onCommitDequeued()
SegmentNodeStoreMonitoronCommitDequeued in interface SegmentNodeStoreMonitorpublic void committedAfter(long time)
SegmentNodeStoreMonitorcommittedAfter in interface SegmentNodeStoreMonitortime - the time spentpublic void dequeuedAfter(long time)
SegmentNodeStoreMonitordequeuedAfter in interface SegmentNodeStoreMonitortime - the time spentpublic CompositeData getCommitsCount()
getCommitsCount in interface SegmentNodeStoreStatsMBeanpublic CompositeData getQueuingCommitsCount()
getQueuingCommitsCount in interface SegmentNodeStoreStatsMBeanpublic CompositeData getCommitTimes()
getCommitTimes in interface SegmentNodeStoreStatsMBeanpublic CompositeData getQueuingTimes()
getQueuingTimes in interface SegmentNodeStoreStatsMBeanCopyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.