@ConsumerType public interface BlobStatsCollector
Modifier and Type | Field and Description |
---|---|
static BlobStatsCollector |
NOOP |
Modifier and Type | Method and Description |
---|---|
void |
addRecordCompleted(java.lang.String blobId)
Called when a call to
DataStore.addRecord(InputStream) is completed. |
void |
addRecordFailed()
Called when a call to
DataStore.addRecord(InputStream) fails. |
void |
deleteAllOlderThanCompleted(int deletedCount)
Called when
DataStore.deleteAllOlderThan(long) is completed. |
void |
deleteAllOlderThanFailed(long min)
Called when
DataStore.deleteAllOlderThan(long) fails. |
void |
deleteCompleted(java.lang.String blobId)
Called when deletion of a binary is completed.
|
void |
deleted(java.lang.String blobId,
long timeTaken,
java.util.concurrent.TimeUnit unit)
Called when a binary is deleted from the BlobStore
|
void |
deletedAllOlderThan(long timeTaken,
java.util.concurrent.TimeUnit unit,
long min)
Called when deleting binaries older than a specified date, via
DataStore.deleteAllOlderThan(long) . |
void |
deleteFailed()
Called when deletion of a binary fails.
|
void |
downloadCompleted(java.lang.String blobId)
Invoked when download for a binary file get completed.
|
void |
downloaded(java.lang.String blobId,
long timeTaken,
java.util.concurrent.TimeUnit unit,
long size)
Called when a binary content is read from BlobStore
|
void |
downloadFailed(java.lang.String blobId)
Called when an attempt to download a binary file fails.
|
void |
getAllIdentifiersCalled(long timeTaken,
java.util.concurrent.TimeUnit unit)
Called when
DataStore.getAllIdentifiers() is called. |
void |
getAllIdentifiersCompleted()
Called when
DataStore.getAllIdentifiers() is completed. |
void |
getAllIdentifiersFailed()
Called when
DataStore.getAllIdentifiers() fails. |
void |
getRecordCalled(long timeTaken,
java.util.concurrent.TimeUnit unit,
long size)
Called when a
DataRecord is retrieved via
DataStore.getRecord(DataIdentifier) . |
void |
getRecordCompleted(java.lang.String blobId)
Called when a call to
DataStore.getRecord(DataIdentifier) is completed. |
void |
getRecordFailed(java.lang.String blobId)
Called when a call to
DataStore.getRecord(DataIdentifier) fails. |
void |
getRecordFromReferenceCalled(long timeTaken,
java.util.concurrent.TimeUnit unit,
long size)
Called when a
DataRecord is retrieved via
DataStore.getRecordFromReference(String) . |
void |
getRecordFromReferenceCompleted(java.lang.String reference)
Called when a call to
DataStore.getRecordFromReference(String) is completed. |
void |
getRecordFromReferenceFailed(java.lang.String reference)
Called when a call to
DataStore.getRecordFromReference(String) fails. |
void |
getRecordIfStoredCalled(long timeTaken,
java.util.concurrent.TimeUnit unit,
long size)
Called when a
DataRecord is retrieved via
DataStore.getRecordIfStored(DataIdentifier) . |
void |
getRecordIfStoredCompleted(java.lang.String blobId)
Called when a call to
DataStore.getRecordIfStored(DataIdentifier) is completed. |
void |
getRecordIfStoredFailed(java.lang.String blobId)
Called when a call to
DataStore.getRecordIfStored(DataIdentifier) fails. |
void |
recordAdded(long timeTaken,
java.util.concurrent.TimeUnit unit,
long size)
Called when a binary is added via
DataStore.addRecord(InputStream) . |
void |
uploadCompleted(java.lang.String blobId)
Invoked when upload for a binary file get completed.
|
void |
uploaded(long timeTaken,
java.util.concurrent.TimeUnit unit,
long size)
Called when a binary content is written to BlobStore
|
void |
uploadFailed()
Invoked when an upload of a binary fails.
|
static final BlobStatsCollector NOOP
void uploaded(long timeTaken, java.util.concurrent.TimeUnit unit, long size)
timeTaken
- time taken to perform the operationunit
- unit of time takensize
- size of binary content being writtenvoid uploadCompleted(java.lang.String blobId)
blobId
- id of the blob which got uploaded. Even in case of chunked
blobStores its the id of main blobvoid uploadFailed()
void downloaded(java.lang.String blobId, long timeTaken, java.util.concurrent.TimeUnit unit, long size)
blobId
- id of blob whose content are being read. For BlobStore
which break up file in chunks it would be chunkIdtimeTaken
- time taken to perform the operationunit
- unit of time takensize
- size of binary content being readvoid downloadCompleted(java.lang.String blobId)
blobId
- id of the blob which got downloaded. Even in case of chunked
blobStores its the id of main blobvoid downloadFailed(java.lang.String blobId)
blobId
- id of the blob for which the download failedvoid deleted(java.lang.String blobId, long timeTaken, java.util.concurrent.TimeUnit unit)
blobId
- id of blob being deletedtimeTaken
- time taken to perform the deleteunit
- unit of time takenvoid deleteCompleted(java.lang.String blobId)
blobId
- id of the blob which was deletedvoid deleteFailed()
void deletedAllOlderThan(long timeTaken, java.util.concurrent.TimeUnit unit, long min)
DataStore.deleteAllOlderThan(long)
.timeTaken
- time taken to perform the deletionunit
- unit of time takenmin
- time used for determining what to delete - older than this time gets deletedvoid deleteAllOlderThanCompleted(int deletedCount)
DataStore.deleteAllOlderThan(long)
is completed.deletedCount
- count of records deletedvoid deleteAllOlderThanFailed(long min)
DataStore.deleteAllOlderThan(long)
fails.min
- time used for determining what to deletevoid recordAdded(long timeTaken, java.util.concurrent.TimeUnit unit, long size)
DataStore.addRecord(InputStream)
.timeTaken
- time taken to perform the operationunit
- unit of time takensize
- size of binary content being readvoid addRecordCompleted(java.lang.String blobId)
DataStore.addRecord(InputStream)
is completed.blobId
- id of the record which was addedvoid addRecordFailed()
DataStore.addRecord(InputStream)
fails.void getRecordCalled(long timeTaken, java.util.concurrent.TimeUnit unit, long size)
DataRecord
is retrieved via
DataStore.getRecord(DataIdentifier)
.timeTaken
- time taken to perform the operationunit
- unit of time takensize
- size of the binaryvoid getRecordCompleted(java.lang.String blobId)
DataStore.getRecord(DataIdentifier)
is completed.blobId
- id of the record retrievedvoid getRecordFailed(java.lang.String blobId)
DataStore.getRecord(DataIdentifier)
fails.blobId
- id of the recordvoid getRecordIfStoredCalled(long timeTaken, java.util.concurrent.TimeUnit unit, long size)
DataRecord
is retrieved via
DataStore.getRecordIfStored(DataIdentifier)
.timeTaken
- time taken to perform the operationunit
- unit of time takensize
- size of the binaryvoid getRecordIfStoredCompleted(java.lang.String blobId)
DataStore.getRecordIfStored(DataIdentifier)
is completed.blobId
- id of the record retrievedvoid getRecordIfStoredFailed(java.lang.String blobId)
DataStore.getRecordIfStored(DataIdentifier)
fails.blobId
- id of the recordvoid getRecordFromReferenceCalled(long timeTaken, java.util.concurrent.TimeUnit unit, long size)
DataRecord
is retrieved via
DataStore.getRecordFromReference(String)
.timeTaken
- time taken to perform the operationunit
- unit of time takensize
- size of the binaryvoid getRecordFromReferenceCompleted(java.lang.String reference)
DataStore.getRecordFromReference(String)
is completed.reference
- reference of the record retrievedvoid getRecordFromReferenceFailed(java.lang.String reference)
DataStore.getRecordFromReference(String)
fails.reference
- reference of the recordvoid getAllIdentifiersCalled(long timeTaken, java.util.concurrent.TimeUnit unit)
DataStore.getAllIdentifiers()
is called.timeTaken
- time taken to perform the operationunit
- unit of time takenvoid getAllIdentifiersCompleted()
DataStore.getAllIdentifiers()
is completed.void getAllIdentifiersFailed()
DataStore.getAllIdentifiers()
fails.Copyright © 2010 - 2020 Adobe. All Rights Reserved