From 929d0aedd46340e4ca9f960b80b2f46ef473b255 Mon Sep 17 00:00:00 2001 From: Amnon Heiman Date: Tue, 6 Oct 2015 12:48:40 +0300 Subject: [PATCH] EndpointSnitchInfo formatting --- .../org/apache/cassandra/locator/EndpointSnitchInfo.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/cassandra/locator/EndpointSnitchInfo.java b/src/main/java/org/apache/cassandra/locator/EndpointSnitchInfo.java index b34250e..b48e620 100644 --- a/src/main/java/org/apache/cassandra/locator/EndpointSnitchInfo.java +++ b/src/main/java/org/apache/cassandra/locator/EndpointSnitchInfo.java @@ -57,10 +57,11 @@ public class EndpointSnitchInfo implements EndpointSnitchInfoMBean { /** * Provides the Rack name depending on the respective snitch used, given the * host name/ip - * + * * @param host * @throws UnknownHostException */ + @Override public String getRack(String host) throws UnknownHostException { log("getRack(String host) throws UnknownHostException"); MultivaluedMap queryParams = new MultivaluedMapImpl(); @@ -74,10 +75,11 @@ public class EndpointSnitchInfo implements EndpointSnitchInfoMBean { /** * Provides the Datacenter name depending on the respective snitch used, * given the hostname/ip - * + * * @param host * @throws UnknownHostException */ + @Override public String getDatacenter(String host) throws UnknownHostException { log(" getDatacenter(String host) throws UnknownHostException"); MultivaluedMap queryParams = new MultivaluedMapImpl(); @@ -90,9 +92,10 @@ public class EndpointSnitchInfo implements EndpointSnitchInfoMBean { /** * Provides the snitch name of the cluster - * + * * @return Snitch name */ + @Override public String getSnitchName() { log(" getSnitchName()"); return c.getStringValue("/snitch/name");