HDDS-404. Implement toString() in OmKeyLocationInfo. Contributed by Dinesh Chitlangia.

This commit is contained in:
Márton Elek 2018-09-06 13:16:54 +02:00
parent 962089ab59
commit b6c543fe45
1 changed files with 10 additions and 0 deletions

View File

@ -130,4 +130,14 @@ public static OmKeyLocationInfo getFromProtobuf(KeyLocation keyLocation) {
info.setCreateVersion(keyLocation.getCreateVersion());
return info;
}
@Override
public String toString() {
return "{blockID={containerID=" + blockID.getContainerID() +
", localID=" + blockID.getLocalID() + "}" +
", shouldCreateContainer=" + shouldCreateContainer +
", length=" + length +
", offset=" + offset +
", createVersion=" + createVersion + '}';
}
}