EndpointSnitchInfo: update to c3 compat

This commit is contained in:
Calle Wilund 2016-08-17 08:33:25 +00:00
parent 68ce437b03
commit f4759f05e7
2 changed files with 18 additions and 0 deletions

View File

@ -101,4 +101,13 @@ public class EndpointSnitchInfo implements EndpointSnitchInfoMBean {
return c.getStringValue("/snitch/name");
}
@Override
public String getRack() {
return c.getStringValue("/snitch/rack", null, 10000);
}
@Override
public String getDatacenter() {
return c.getStringValue("/snitch/datacenter", null, 10000);
}
}

View File

@ -38,6 +38,15 @@ public interface EndpointSnitchInfoMBean
*/
public String getDatacenter(String host) throws UnknownHostException;
/**
* Provides the Rack name depending on the respective snitch used for this node
*/
public String getRack();
/**
* Provides the Datacenter name depending on the respective snitch used for this node
*/
public String getDatacenter();
/**
* Provides the snitch name of the cluster