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()
Provides the Datacenter name depending on the respective snitch used for this node
|
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()
Provides the Rack name depending on the respective snitch used for this node
|
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
EndpointSnitchInfoMBean
getDatacenter
in interface EndpointSnitchInfoMBean
java.net.UnknownHostException
public java.lang.String getRack(java.lang.String host) throws java.net.UnknownHostException
EndpointSnitchInfoMBean
getRack
in interface EndpointSnitchInfoMBean
java.net.UnknownHostException
public java.lang.String getDatacenter()
EndpointSnitchInfoMBean
getDatacenter
in interface EndpointSnitchInfoMBean
public java.lang.String getRack()
EndpointSnitchInfoMBean
getRack
in interface EndpointSnitchInfoMBean
public java.lang.String getSnitchName()
EndpointSnitchInfoMBean
getSnitchName
in interface EndpointSnitchInfoMBean
Copyright © 2017 The Apache Software Foundation