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
|
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
Copyright © 2013 The Apache Software Foundation