Interface DocumentStoreStatsCollector
-
- All Known Implementing Classes:
DocumentStoreStats
public interface DocumentStoreStatsCollector
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddoneCreate(long timeTakenNanos, Collection<? extends Document> collection, List<String> ids, boolean insertSuccess)Called when a document is created in the given collectionvoiddoneCreateOrUpdate(long timeTakenNanos, Collection<? extends Document> collection, List<String> ids)Called when multiple document are either created or updated.voiddoneFindAndModify(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.voiddoneFindAndModify(long timeTakenNanos, Collection<? extends Document> collection, List<String> ids, boolean success, int retryCount)Called when a update operation was completed which could have affected multiple documents.voiddoneFindCached(Collection<? extends Document> collection, String key)Called when a document with given key is found from the cachevoiddoneFindUncached(long timeTakenNanos, Collection<? extends Document> collection, String key, boolean docFound, boolean isSlaveOk)Called when a document with given key is read from remote storevoiddonePrefetch(long timeTakenNanos, Collection<? extends Document> collection, List<String> ids)Called when a prefetch operation for documents was completed.voiddoneQuery(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 performedvoiddoneRemove(long timeTakenNanos, Collection<? extends Document> collection, int removeCount)Called when a remove operation for documents was completed.
-
-
-
Method Detail
-
doneFindCached
void doneFindCached(Collection<? extends Document> collection, String key)
Called when a document with given key is found from the cache- Parameters:
collection- the collectionkey- collection key which is found
-
doneFindUncached
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- Parameters:
timeTakenNanos- time takencollection- the collectionkey- collection keydocFound- true if document is foundisSlaveOk- true if find was performed against a secondary instance
-
doneQuery
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- Parameters:
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 (-1if no lock was required)isSlaveOk- true if find was performed against a secondary instance
-
doneCreate
void doneCreate(long timeTakenNanos, Collection<? extends Document> collection, List<String> ids, boolean insertSuccess)Called when a document is created in the given collection- Parameters:
timeTakenNanos- time takencollection- the collectionids- list of ids request to be createdinsertSuccess- true if the insert was successful
-
doneCreateOrUpdate
void doneCreateOrUpdate(long timeTakenNanos, Collection<? extends Document> collection, List<String> ids)Called when multiple document are either created or updated.- Parameters:
timeTakenNanos- time takencollection- the collectionids- list of ids request to be created or updated
-
doneFindAndModify
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.- Parameters:
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 update
-
doneFindAndModify
void doneFindAndModify(long timeTakenNanos, Collection<? extends Document> collection, List<String> ids, boolean success, int retryCount)Called when a update operation was completed which could have affected multiple documents.- Parameters:
timeTakenNanos- time takencollection- the collectionids- List of document ids which got updatedsuccess- true if the update was successretryCount- number of retries done to get the update
-
doneRemove
void doneRemove(long timeTakenNanos, Collection<? extends Document> collection, int removeCount)Called when a remove operation for documents was completed.- Parameters:
timeTakenNanos- time takencollection- the collectionremoveCount- the number of removed documents
-
donePrefetch
void donePrefetch(long timeTakenNanos, Collection<? extends Document> collection, List<String> ids)Called when a prefetch operation for documents was completed.- Parameters:
timeTakenNanos- time takencollection- the collectionids- list of IDs to prefetch / read
-
-