arjunashok commented on code in PR #69:
URL: https://github.com/apache/cassandra-sidecar/pull/69#discussion_r1330769227


##########
common/src/main/java/org/apache/cassandra/sidecar/common/data/TokenRangeReplicasResponse.java:
##########
@@ -154,4 +155,74 @@ public String toString()
                    '}';
         }
     }
+
+    /**
+     * Class representing metadata associated with replica instances
+     */
+    public static class ReplicaMetadata
+    {
+        private final String state;
+        private final String status;
+        private final String name;
+        private final String address;
+        public ReplicaMetadata(@JsonProperty("state") String state,
+                               @JsonProperty("status") String status,
+                               @JsonProperty("name") String name,
+                               @JsonProperty("address") String address)
+        {
+            this.state = state;
+            this.status = status;
+            this.name = name;
+            this.address = address;
+        }
+
+        /**
+         * @return the node state. eg. NORMAL, JOINING, LEAVING, etc.
+         */
+        @JsonProperty("state")
+        public String state()
+        {
+            return state;
+        }
+
+        /**
+         * @return the node status. eg. UP, DOWN
+         */
+        @JsonProperty("status")
+        public String status()
+        {
+            return status;
+        }
+
+        /**
+         * @return FQDN of the node
+         */
+        @JsonProperty("name")
+        public String name()

Review Comment:
   Addressed



-- 
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]

Reply via email to