Package org.apache.cassandra.locator
Class EndpointSnitchInfo
java.lang.Object
org.apache.cassandra.locator.EndpointSnitchInfo
- All Implemented Interfaces:
EndpointSnitchInfoMBean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreate()Provides the Datacenter name depending on the respective snitch used for this nodegetDatacenter(String host) Provides the Datacenter name depending on the respective snitch used, given the hostname/ipgetRack()Provides the Rack name depending on the respective snitch used for this nodeProvides the Rack name depending on the respective snitch used, given the host name/ipProvides the snitch name of the cluster
-
Constructor Details
-
EndpointSnitchInfo
public EndpointSnitchInfo()
-
-
Method Details
-
create
public static void create() -
getDatacenter
Description copied from interface:EndpointSnitchInfoMBeanProvides the Datacenter name depending on the respective snitch used, given the hostname/ip- Specified by:
getDatacenterin interfaceEndpointSnitchInfoMBean- Throws:
UnknownHostException
-
getRack
Description copied from interface:EndpointSnitchInfoMBeanProvides the Rack name depending on the respective snitch used, given the host name/ip- Specified by:
getRackin interfaceEndpointSnitchInfoMBean- Throws:
UnknownHostException
-
getDatacenter
Description copied from interface:EndpointSnitchInfoMBeanProvides the Datacenter name depending on the respective snitch used for this node- Specified by:
getDatacenterin interfaceEndpointSnitchInfoMBean
-
getRack
Description copied from interface:EndpointSnitchInfoMBeanProvides the Rack name depending on the respective snitch used for this node- Specified by:
getRackin interfaceEndpointSnitchInfoMBean
-
getSnitchName
Description copied from interface:EndpointSnitchInfoMBeanProvides the snitch name of the cluster- Specified by:
getSnitchNamein interfaceEndpointSnitchInfoMBean- Returns:
- Snitch name
-