public interface DocumentStoreStatsCollector
| 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.
|
void doneFindCached(Collection<? extends Document> collection, String key)
collection - the collectionkey - collection key which is foundvoid doneFindUncached(long timeTakenNanos,
Collection<? extends Document> collection,
String key,
boolean docFound,
boolean isSlaveOk)
timeTakenNanos - time takencollection - the collectionkey - collection keydocFound - true if document is foundisSlaveOk - true if find was performed against a secondary instancevoid doneQuery(long timeTakenNanos,
Collection<? extends Document> collection,
String fromKey,
String toKey,
boolean indexedProperty,
int resultSize,
long lockTime,
boolean isSlaveOk)
timeTakenNanos - 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 instancevoid doneCreate(long timeTakenNanos,
Collection<? extends Document> collection,
List<String> ids,
boolean insertSuccess)
timeTakenNanos - time takencollection - the collectionids - list of ids request to be createdinsertSuccess - true if the insert was successfulvoid doneCreateOrUpdate(long timeTakenNanos,
Collection<? extends Document> collection,
List<String> ids)
timeTakenNanos - time takencollection - the collectionids - list of ids request to be created or updatedvoid doneFindAndModify(long timeTakenNanos,
Collection<? extends Document> collection,
String key,
boolean newEntry,
boolean success,
int retryCount)
timeTakenNanos - 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 updatevoid doneRemove(long timeTakenNanos,
Collection<? extends Document> collection,
int removeCount)
timeTakenNanos - time takencollection - the collectionremoveCount - the number of removed documentsCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.