Interface BlobStatsCollector
- All Known Subinterfaces:
ExtendedBlobStatsCollector
- All Known Implementing Classes:
BlobStoreStats
BlobStoreStatsCollector receives callback when blobs are written and read
from BlobStore
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRecordCompleted
(String blobId) Called when a call toDataStore.addRecord(InputStream)
is completed.void
Called when a call toDataStore.addRecord(InputStream)
fails.void
deleteAllOlderThanCompleted
(int deletedCount) Called whenDataStore.deleteAllOlderThan(long)
is completed.void
deleteAllOlderThanFailed
(long min) Called whenDataStore.deleteAllOlderThan(long)
fails.void
deleteCompleted
(String blobId) Called when deletion of a binary is completed.void
Called when a binary is deleted from the BlobStorevoid
deletedAllOlderThan
(long timeTaken, TimeUnit unit, long min) Called when deleting binaries older than a specified date, viaDataStore.deleteAllOlderThan(long)
.void
Called when deletion of a binary fails.void
downloadCompleted
(String blobId) Invoked when download for a binary file get completed.void
downloaded
(String blobId, long timeTaken, TimeUnit unit, long size) Called when a binary content is read from BlobStorevoid
downloadFailed
(String blobId) Called when an attempt to download a binary file fails.void
getAllIdentifiersCalled
(long timeTaken, TimeUnit unit) Called whenDataStore.getAllIdentifiers()
is called.void
Called whenDataStore.getAllIdentifiers()
is completed.void
Called whenDataStore.getAllIdentifiers()
fails.void
getRecordCalled
(long timeTaken, TimeUnit unit, long size) Called when aDataRecord
is retrieved viaDataStore.getRecord(DataIdentifier)
.void
getRecordCompleted
(String blobId) Called when a call toDataStore.getRecord(DataIdentifier)
is completed.void
getRecordFailed
(String blobId) Called when a call toDataStore.getRecord(DataIdentifier)
fails.void
getRecordFromReferenceCalled
(long timeTaken, TimeUnit unit, long size) Called when aDataRecord
is retrieved viaDataStore.getRecordFromReference(String)
.void
getRecordFromReferenceCompleted
(String reference) Called when a call toDataStore.getRecordFromReference(String)
is completed.void
getRecordFromReferenceFailed
(String reference) Called when a call toDataStore.getRecordFromReference(String)
fails.void
getRecordIfStoredCalled
(long timeTaken, TimeUnit unit, long size) Called when aDataRecord
is retrieved viaDataStore.getRecordIfStored(DataIdentifier)
.void
getRecordIfStoredCompleted
(String blobId) Called when a call toDataStore.getRecordIfStored(DataIdentifier)
is completed.void
getRecordIfStoredFailed
(String blobId) Called when a call toDataStore.getRecordIfStored(DataIdentifier)
fails.void
recordAdded
(long timeTaken, TimeUnit unit, long size) Called when a binary is added viaDataStore.addRecord(InputStream)
.void
uploadCompleted
(String blobId) Invoked when upload for a binary file get completed.void
Called when a binary content is written to BlobStorevoid
Invoked when an upload of a binary fails.
-
Field Details
-
NOOP
-
-
Method Details
-
uploaded
Called when a binary content is written to BlobStore- Parameters:
timeTaken
- time taken to perform the operationunit
- unit of time takensize
- size of binary content being written
-
uploadCompleted
Invoked when upload for a binary file get completed. In case of chunked BlobStore this invoked when all the chunks have been uploaded- Parameters:
blobId
- id of the blob which got uploaded. Even in case of chunked blobStores its the id of main blob
-
uploadFailed
void uploadFailed()Invoked when an upload of a binary fails. -
downloaded
Called when a binary content is read from BlobStore- Parameters:
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 read
-
downloadCompleted
Invoked when download for a binary file get completed. In case of chunked BlobStore this invoked when all the chunks have been downloaded- Parameters:
blobId
- id of the blob which got downloaded. Even in case of chunked blobStores its the id of main blob
-
downloadFailed
Called when an attempt to download a binary file fails.- Parameters:
blobId
- id of the blob for which the download failed
-
deleted
Called when a binary is deleted from the BlobStore- Parameters:
blobId
- id of blob being deletedtimeTaken
- time taken to perform the deleteunit
- unit of time taken
-
deleteCompleted
Called when deletion of a binary is completed.- Parameters:
blobId
- id of the blob which was deleted
-
deleteFailed
void deleteFailed()Called when deletion of a binary fails. -
deletedAllOlderThan
Called when deleting binaries older than a specified date, viaDataStore.deleteAllOlderThan(long)
.- Parameters:
timeTaken
- time taken to perform the deletionunit
- unit of time takenmin
- time used for determining what to delete - older than this time gets deleted
-
deleteAllOlderThanCompleted
void deleteAllOlderThanCompleted(int deletedCount) Called whenDataStore.deleteAllOlderThan(long)
is completed.- Parameters:
deletedCount
- count of records deleted
-
deleteAllOlderThanFailed
void deleteAllOlderThanFailed(long min) Called whenDataStore.deleteAllOlderThan(long)
fails.- Parameters:
min
- time used for determining what to delete
-
recordAdded
Called when a binary is added viaDataStore.addRecord(InputStream)
.- Parameters:
timeTaken
- time taken to perform the operationunit
- unit of time takensize
- size of binary content being read
-
addRecordCompleted
Called when a call toDataStore.addRecord(InputStream)
is completed.- Parameters:
blobId
- id of the record which was added
-
addRecordFailed
void addRecordFailed()Called when a call toDataStore.addRecord(InputStream)
fails. -
getRecordCalled
Called when aDataRecord
is retrieved viaDataStore.getRecord(DataIdentifier)
.- Parameters:
timeTaken
- time taken to perform the operationunit
- unit of time takensize
- size of the binary
-
getRecordCompleted
Called when a call toDataStore.getRecord(DataIdentifier)
is completed.- Parameters:
blobId
- id of the record retrieved
-
getRecordFailed
Called when a call toDataStore.getRecord(DataIdentifier)
fails.- Parameters:
blobId
- id of the record
-
getRecordIfStoredCalled
Called when aDataRecord
is retrieved viaDataStore.getRecordIfStored(DataIdentifier)
.- Parameters:
timeTaken
- time taken to perform the operationunit
- unit of time takensize
- size of the binary
-
getRecordIfStoredCompleted
Called when a call toDataStore.getRecordIfStored(DataIdentifier)
is completed.- Parameters:
blobId
- id of the record retrieved
-
getRecordIfStoredFailed
Called when a call toDataStore.getRecordIfStored(DataIdentifier)
fails.- Parameters:
blobId
- id of the record
-
getRecordFromReferenceCalled
Called when aDataRecord
is retrieved viaDataStore.getRecordFromReference(String)
.- Parameters:
timeTaken
- time taken to perform the operationunit
- unit of time takensize
- size of the binary
-
getRecordFromReferenceCompleted
Called when a call toDataStore.getRecordFromReference(String)
is completed.- Parameters:
reference
- reference of the record retrieved
-
getRecordFromReferenceFailed
Called when a call toDataStore.getRecordFromReference(String)
fails.- Parameters:
reference
- reference of the record
-
getAllIdentifiersCalled
Called whenDataStore.getAllIdentifiers()
is called.- Parameters:
timeTaken
- time taken to perform the operationunit
- unit of time taken
-
getAllIdentifiersCompleted
void getAllIdentifiersCompleted()Called whenDataStore.getAllIdentifiers()
is completed. -
getAllIdentifiersFailed
void getAllIdentifiersFailed()Called whenDataStore.getAllIdentifiers()
fails.
-