public class DocumentStoreStats extends Object implements DocumentStoreStatsCollector, DocumentStoreStatsMBean
| Modifier and Type | Field and Description |
|---|---|
static int |
PERF_LOG_THRESHOLD |
TYPE| Constructor and Description |
|---|
DocumentStoreStats(org.apache.jackrabbit.oak.stats.StatisticsProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
void |
doneCreate(long timeTakenNanos,
Collection<? extends Document> collection,
List<String> ids,
boolean insertSuccess)
Called when a document is created in the given collection
|
void |
doneCreateOrUpdate(long timeTakenNanos,
Collection<? extends Document> collection,
List<String> ids)
Called when multiple document are either created or updated.
|
void |
doneFindAndModify(long timeTakenNanos,
Collection<? extends Document> collection,
String key,
boolean newEntry,
boolean success,
int retryCount)
Called when a update operation was completed which affected single
document.
|
void |
doneFindCached(Collection<? extends Document> collection,
String key)
Called when a document with given key is found from the cache
|
void |
doneFindUncached(long timeTakenNanos,
Collection<? extends Document> collection,
String key,
boolean docFound,
boolean isSlaveOk)
Called when a document with given key is read from remote store
|
void |
doneQuery(long timeTakenNanos,
Collection<? extends Document> collection,
String fromKey,
String toKey,
boolean indexedProperty,
int resultSize,
long lockTime,
boolean isSlaveOk)
Called when query with given parameters is performed
|
void |
doneRemove(long timeTakenNanos,
Collection<? extends Document> collection,
int removeCount)
Called when a remove operation for documents was completed.
|
CompositeData |
getCreateJournalHistory() |
CompositeData |
getCreateNodesHistory() |
CompositeData |
getFindCachedNodesHistory() |
CompositeData |
getFindNodesFromPrimaryHistory() |
CompositeData |
getFindNodesFromSlaveHistory() |
CompositeData |
getFindNodesMissingHistory() |
CompositeData |
getFindSplitNodesHistory() |
long |
getJournalCreateCount() |
long |
getJournalReadCount() |
long |
getNodesCreateCount() |
long |
getNodesFindCount() |
long |
getNodesFindMissingCount() |
long |
getNodesFindQueryCount() |
long |
getNodesReadByQueryCount() |
long |
getNodesRemoveCount() |
long |
getNodesUpdateCount() |
CompositeData |
getQueryJournalHistory() |
CompositeData |
getQueryNodesFromPrimaryHistory() |
CompositeData |
getQueryNodesFromSlaveHistory() |
CompositeData |
getQueryNodesLockHistory() |
CompositeData |
getRemoveNodesHistory() |
CompositeData |
getUpdateNodesFailureHistory() |
CompositeData |
getUpdateNodesHistory() |
CompositeData |
getUpdateNodesRetryHistory() |
public static final int PERF_LOG_THRESHOLD
public DocumentStoreStats(org.apache.jackrabbit.oak.stats.StatisticsProvider provider)
public void doneFindCached(Collection<? extends Document> collection, String key)
DocumentStoreStatsCollectordoneFindCached in interface DocumentStoreStatsCollectorcollection - the collectionkey - collection key which is foundpublic void doneFindUncached(long timeTakenNanos,
Collection<? extends Document> collection,
String key,
boolean docFound,
boolean isSlaveOk)
DocumentStoreStatsCollectordoneFindUncached in interface DocumentStoreStatsCollectortimeTakenNanos - time takencollection - the collectionkey - collection keydocFound - true if document is foundisSlaveOk - true if find was performed against a secondary instancepublic void doneQuery(long timeTakenNanos,
Collection<? extends Document> collection,
String fromKey,
String toKey,
boolean indexedProperty,
int resultSize,
long lockTime,
boolean isSlaveOk)
DocumentStoreStatsCollectordoneQuery in interface DocumentStoreStatsCollectortimeTakenNanos - time takencollection - the collectionfromKey - the start value (excluding)toKey - the end value (excluding)indexedProperty - true if indexedProperty was specifiedresultSize - number of documents found for given querylockTime - time in millis to acquire any lock (-1 if no lock was required)isSlaveOk - true if find was performed against a secondary instancepublic void doneCreate(long timeTakenNanos,
Collection<? extends Document> collection,
List<String> ids,
boolean insertSuccess)
DocumentStoreStatsCollectordoneCreate in interface DocumentStoreStatsCollectortimeTakenNanos - time takencollection - the collectionids - list of ids request to be createdinsertSuccess - true if the insert was successfulpublic void doneCreateOrUpdate(long timeTakenNanos,
Collection<? extends Document> collection,
List<String> ids)
DocumentStoreStatsCollectordoneCreateOrUpdate in interface DocumentStoreStatsCollectortimeTakenNanos - time takencollection - the collectionids - list of ids request to be created or updatedpublic void doneFindAndModify(long timeTakenNanos,
Collection<? extends Document> collection,
String key,
boolean newEntry,
boolean success,
int retryCount)
DocumentStoreStatsCollectordoneFindAndModify in interface DocumentStoreStatsCollectortimeTakenNanos - time takencollection - the collectionkey - collection which got updated or insertednewEntry - true if the document was newly created due to given operationsuccess - true if the update was successretryCount - number of retries done to get the updatepublic void doneRemove(long timeTakenNanos,
Collection<? extends Document> collection,
int removeCount)
DocumentStoreStatsCollectordoneRemove in interface DocumentStoreStatsCollectortimeTakenNanos - time takencollection - the collectionremoveCount - the number of removed documentspublic long getNodesFindCount()
getNodesFindCount in interface DocumentStoreStatsMBeanpublic long getNodesFindQueryCount()
getNodesFindQueryCount in interface DocumentStoreStatsMBeanpublic long getNodesFindMissingCount()
getNodesFindMissingCount in interface DocumentStoreStatsMBeanpublic long getNodesReadByQueryCount()
getNodesReadByQueryCount in interface DocumentStoreStatsMBeanpublic long getNodesCreateCount()
getNodesCreateCount in interface DocumentStoreStatsMBeanpublic long getNodesUpdateCount()
getNodesUpdateCount in interface DocumentStoreStatsMBeanpublic long getNodesRemoveCount()
getNodesRemoveCount in interface DocumentStoreStatsMBeanpublic long getJournalCreateCount()
getJournalCreateCount in interface DocumentStoreStatsMBeanpublic long getJournalReadCount()
getJournalReadCount in interface DocumentStoreStatsMBeanpublic CompositeData getFindCachedNodesHistory()
getFindCachedNodesHistory in interface DocumentStoreStatsMBeanpublic CompositeData getFindSplitNodesHistory()
getFindSplitNodesHistory in interface DocumentStoreStatsMBeanpublic CompositeData getFindNodesFromPrimaryHistory()
getFindNodesFromPrimaryHistory in interface DocumentStoreStatsMBeanpublic CompositeData getFindNodesFromSlaveHistory()
getFindNodesFromSlaveHistory in interface DocumentStoreStatsMBeanpublic CompositeData getFindNodesMissingHistory()
getFindNodesMissingHistory in interface DocumentStoreStatsMBeanpublic CompositeData getQueryNodesFromSlaveHistory()
getQueryNodesFromSlaveHistory in interface DocumentStoreStatsMBeanpublic CompositeData getQueryNodesFromPrimaryHistory()
getQueryNodesFromPrimaryHistory in interface DocumentStoreStatsMBeanpublic CompositeData getQueryNodesLockHistory()
getQueryNodesLockHistory in interface DocumentStoreStatsMBeanpublic CompositeData getQueryJournalHistory()
getQueryJournalHistory in interface DocumentStoreStatsMBeanpublic CompositeData getCreateJournalHistory()
getCreateJournalHistory in interface DocumentStoreStatsMBeanpublic CompositeData getCreateNodesHistory()
getCreateNodesHistory in interface DocumentStoreStatsMBeanpublic CompositeData getUpdateNodesHistory()
getUpdateNodesHistory in interface DocumentStoreStatsMBeanpublic CompositeData getUpdateNodesRetryHistory()
getUpdateNodesRetryHistory in interface DocumentStoreStatsMBeanpublic CompositeData getUpdateNodesFailureHistory()
getUpdateNodesFailureHistory in interface DocumentStoreStatsMBeanpublic CompositeData getRemoveNodesHistory()
getRemoveNodesHistory in interface DocumentStoreStatsMBeanCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.