Class PropertyFileSnitch

  • All Implemented Interfaces:
    IEndpointSnitch

    public class PropertyFileSnitch
    extends AbstractNetworkTopologySnitch

    Used to determine if two IP's are in the same datacenter or on the same rack.

    Based on a properties file in the following format: 10.0.0.13=DC1:RAC2 10.21.119.14=DC3:RAC2 10.20.114.15=DC2:RAC2 default=DC1:r1