Package org.apache.cassandra.locator
Class EndpointSnitchInfo
- java.lang.Object
-
- org.apache.cassandra.locator.EndpointSnitchInfo
-
- All Implemented Interfaces:
EndpointSnitchInfoMBean
public class EndpointSnitchInfo extends java.lang.Object implements EndpointSnitchInfoMBean
-
-
Constructor Summary
Constructors Constructor Description EndpointSnitchInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcreate()java.lang.StringgetDatacenter()Provides the Datacenter name depending on the respective snitch used for this nodejava.lang.StringgetDatacenter(java.lang.String host)Provides the Datacenter name depending on the respective snitch used, given the hostname/ipjava.lang.StringgetRack()Provides the Rack name depending on the respective snitch used for this nodejava.lang.StringgetRack(java.lang.String host)Provides the Rack name depending on the respective snitch used, given the host name/ipjava.lang.StringgetSnitchName()Provides the snitch name of the cluster
-
-
-
Method Detail
-
create
public static void create()
-
getDatacenter
public java.lang.String getDatacenter(java.lang.String host) throws java.net.UnknownHostExceptionDescription copied from interface:EndpointSnitchInfoMBeanProvides the Datacenter name depending on the respective snitch used, given the hostname/ip- Specified by:
getDatacenterin interfaceEndpointSnitchInfoMBean- Throws:
java.net.UnknownHostException
-
getRack
public java.lang.String getRack(java.lang.String host) throws java.net.UnknownHostExceptionDescription copied from interface:EndpointSnitchInfoMBeanProvides the Rack name depending on the respective snitch used, given the host name/ip- Specified by:
getRackin interfaceEndpointSnitchInfoMBean- Throws:
java.net.UnknownHostException
-
getDatacenter
public java.lang.String getDatacenter()
Description copied from interface:EndpointSnitchInfoMBeanProvides the Datacenter name depending on the respective snitch used for this node- Specified by:
getDatacenterin interfaceEndpointSnitchInfoMBean
-
getRack
public java.lang.String getRack()
Description copied from interface:EndpointSnitchInfoMBeanProvides the Rack name depending on the respective snitch used for this node- Specified by:
getRackin interfaceEndpointSnitchInfoMBean
-
getSnitchName
public java.lang.String getSnitchName()
Description copied from interface:EndpointSnitchInfoMBeanProvides the snitch name of the cluster- Specified by:
getSnitchNamein interfaceEndpointSnitchInfoMBean- Returns:
- Snitch name
-
-