public class PropertyFileSnitch extends AbstractNetworkTopologySnitch
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SNITCH_PROPERTIES_FILENAME |
| Constructor and Description |
|---|
PropertyFileSnitch() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDatacenter(java.net.InetAddress endpoint)
Return the data center for which an endpoint resides in
|
java.lang.String[] |
getEndpointInfo(java.net.InetAddress endpoint)
Get the raw information about an end point
|
java.lang.String |
getRack(java.net.InetAddress endpoint)
Return the rack for which an endpoint resides in
|
void |
gossiperStarting()
called after Gossiper instance exists immediately before it starts gossiping
|
void |
reloadConfiguration() |
compareEndpointsgetSortedListByProximity, isWorthMergingForRangeQuery, sortByProximitypublic static final java.lang.String SNITCH_PROPERTIES_FILENAME
public PropertyFileSnitch()
throws ConfigurationException
ConfigurationExceptionpublic java.lang.String[] getEndpointInfo(java.net.InetAddress endpoint)
endpoint - endpoint to processpublic java.lang.String getDatacenter(java.net.InetAddress endpoint)
getDatacenter in interface IEndpointSnitchgetDatacenter in class AbstractNetworkTopologySnitchendpoint - the endpoint to processpublic java.lang.String getRack(java.net.InetAddress endpoint)
getRack in interface IEndpointSnitchgetRack in class AbstractNetworkTopologySnitchendpoint - the endpoint to processpublic void reloadConfiguration()
throws ConfigurationException
ConfigurationExceptionpublic void gossiperStarting()
IEndpointSnitchgossiperStarting in interface IEndpointSnitchgossiperStarting in class AbstractEndpointSnitchCopyright © 2015 The Apache Software Foundation