public class EndpointSnitchInfo extends java.lang.Object implements EndpointSnitchInfoMBean
| Constructor and Description |
|---|
EndpointSnitchInfo() |
| Modifier and Type | Method and Description |
|---|---|
static void |
create() |
java.lang.String |
getDatacenter(java.lang.String host)
Provides the Datacenter name depending on the respective snitch used, given the hostname/ip
|
java.lang.String |
getRack(java.lang.String host)
Provides the Rack name depending on the respective snitch used, given the host name/ip
|
java.lang.String |
getSnitchName()
Provides the snitch name of the cluster
|
public static void create()
public java.lang.String getDatacenter(java.lang.String host)
throws java.net.UnknownHostException
EndpointSnitchInfoMBeangetDatacenter in interface EndpointSnitchInfoMBeanjava.net.UnknownHostExceptionpublic java.lang.String getRack(java.lang.String host)
throws java.net.UnknownHostException
EndpointSnitchInfoMBeangetRack in interface EndpointSnitchInfoMBeanjava.net.UnknownHostExceptionpublic java.lang.String getSnitchName()
EndpointSnitchInfoMBeangetSnitchName in interface EndpointSnitchInfoMBeanCopyright © 2015 The Apache Software Foundation