use of io.pravega.segmentstore.storage.chunklayer.ChunkInfo in project pravega by pravega.
the class ExtendedS3ChunkStorage method doGetInfo.
@Override
protected ChunkInfo doGetInfo(String chunkName) throws ChunkStorageException {
try {
S3ObjectMetadata result = client.getObjectMetadata(config.getBucket(), getObjectPath(chunkName));
ChunkInfo information = ChunkInfo.builder().name(chunkName).length(result.getContentLength()).build();
return information;
} catch (Exception e) {
throw convertException(chunkName, "doGetInfo", e);
}
}
Aggregations