bharatviswa504 commented on a change in pull request #1387: HDDS-2065. 
Implement OMNodeDetails#toString
URL: https://github.com/apache/hadoop/pull/1387#discussion_r319696118
 
 

 ##########
 File path: 
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OMNodeDetails.java
 ##########
 @@ -54,6 +54,19 @@ private OMNodeDetails(String serviceId, String nodeId,
     this.httpsAddress = httpsAddress;
   }
 
+  @Override
+  public String toString() {
+    return "OMNodeDetails["
+        + "omServiceId=" + omServiceId +
+        ", omNodeId=" + omNodeId +
+        ", rpcAddress=" + rpcAddress +
+        ", rpcPort=" + rpcPort +
+        ", ratisPort=" + ratisPort +
 
 Review comment:
   Minor suggestion: Use StringBuilder instead of using "+".

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to