EndpointSnitchInfo formatting

This commit is contained in:
Amnon Heiman 2015-10-06 12:48:40 +03:00
parent c5c0fb41fe
commit 929d0aedd4

View File

@ -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<String, String> 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<String, String> 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");