public class PropertyFileSnitch extends AbstractNetworkTopologySnitch
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SNITCH_PROPERTIES_FILENAME |
Constructor and Description |
---|
PropertyFileSnitch() |
PropertyFileSnitch(int refreshPeriodInSeconds) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDatacenter(java.net.InetAddress endpoint)
Return the data center for which an endpoint resides in
|
static 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(boolean isUpdate) |
compareEndpoints
getSortedListByProximity, isWorthMergingForRangeQuery, sortByProximity
public static final java.lang.String SNITCH_PROPERTIES_FILENAME
public PropertyFileSnitch() throws ConfigurationException
ConfigurationException
public PropertyFileSnitch(int refreshPeriodInSeconds) throws ConfigurationException
ConfigurationException
public static java.lang.String[] getEndpointInfo(java.net.InetAddress endpoint)
endpoint
- endpoint to processpublic java.lang.String getDatacenter(java.net.InetAddress endpoint)
getDatacenter
in interface IEndpointSnitch
getDatacenter
in class AbstractNetworkTopologySnitch
endpoint
- the endpoint to processpublic java.lang.String getRack(java.net.InetAddress endpoint)
getRack
in interface IEndpointSnitch
getRack
in class AbstractNetworkTopologySnitch
endpoint
- the endpoint to processpublic void reloadConfiguration(boolean isUpdate) throws ConfigurationException
ConfigurationException
public void gossiperStarting()
IEndpointSnitch
gossiperStarting
in interface IEndpointSnitch
gossiperStarting
in class AbstractEndpointSnitch
Copyright © 2017 The Apache Software Foundation