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 final class OmKeyLocationInfo {
info.setCreateVersion(keyLocation.getCreateVersion()); info.setCreateVersion(keyLocation.getCreateVersion());
return info; return info;
} }
@Override
public String toString() {
return "{blockID={containerID=" + blockID.getContainerID() +
", localID=" + blockID.getLocalID() + "}" +
", shouldCreateContainer=" + shouldCreateContainer +
", length=" + length +
", offset=" + offset +
", createVersion=" + createVersion + '}';
}
} }