szetszwo commented on PR #8208:
URL: https://github.com/apache/ozone/pull/8208#issuecomment-2770490291
Tested with the following program:
```java
public static void main(String[] args) {
final StorageTypeProto[] values = {
StorageTypeProto.DISK,
StorageTypeProto.SSD,
StorageTypeProto.ARCHIVE,
StorageTypeProto.RAM_DISK
};
System.out.println(StorageTypeProto.class);
for (StorageTypeProto storageType : values) {
final OzoneManagerProtocolProtos.BucketInfo info =
OzoneManagerProtocolProtos.BucketInfo.newBuilder()
.setVolumeName("vol1")
.setBucketName("buck1")
.setIsVersionEnabled(true)
.setStorageType(storageType)
.build();
System.out.println();
System.out.println(storageType + ":");
System.out.print(info);
final byte[] bytes = info.toByteArray();
System.out.println("bytes: " + StringUtils.bytes2Hex(bytes) + ",
length=" + bytes.length);
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]