EndpointSnitchInfo: update to c3 compat
This commit is contained in:
parent
68ce437b03
commit
f4759f05e7
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user