@ConsumerType
public interface BlobStatsCollector
| Modifier and Type | Field and Description |
|---|---|
static BlobStatsCollector |
NOOP |
| Modifier and Type | Method and Description |
|---|---|
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 BlobStore
|
void |
uploadCompleted(String blobId)
Invoked when upload for a binary file get completed.
|
void |
uploaded(long timeTaken,
TimeUnit unit,
long size)
Called when a binary content is written to BlobStore
|
static final BlobStatsCollector NOOP
void uploaded(long timeTaken,
TimeUnit unit,
long size)
timeTaken - time taken to perform the operationunit - unit of time takensize - size of binary content being writtenvoid downloaded(String blobId, long timeTaken, 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 uploadCompleted(String blobId)
blobId - id of the blob which got uploaded. Even in case of chunked
blobStores its the id of main blobvoid downloadCompleted(String blobId)
blobId - id of the blob which got downloaded. Even in case of chunked
blobStores its the id of main blobCopyright © 2012–2017 The Apache Software Foundation. All rights reserved.