Package org.apache.cassandra.locator
Interface EndpointSnitchInfoMBean
- All Known Implementing Classes:
EndpointSnitchInfo
public interface EndpointSnitchInfoMBean
MBean exposing standard Snitch info
-
Method Summary
Modifier and TypeMethodDescriptionProvides 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
-
Method Details
-
getRack
Provides the Rack name depending on the respective snitch used, given the host name/ip- Parameters:
host-- Throws:
UnknownHostException
-
getDatacenter
Provides the Datacenter name depending on the respective snitch used, given the hostname/ip- Parameters:
host-- Throws:
UnknownHostException
-
getRack
String getRack()Provides the Rack name depending on the respective snitch used for this node -
getDatacenter
String getDatacenter()Provides the Datacenter name depending on the respective snitch used for this node -
getSnitchName
String getSnitchName()Provides the snitch name of the cluster- Returns:
- Snitch name
-