public GossipingPropertyFileSnitch() throws ConfigurationException { SnitchProperties properties = loadConfiguration(); myDC = properties.get("dc", DEFAULT_DC).trim(); myRack = properties.get("rack", DEFAULT_RACK).trim(); preferLocal = Boolean.parseBoolean(properties.get("prefer_local", "false")); snitchHelperReference = new AtomicReference<>(); try { psnitch = new PropertyFileSnitch(); logger.info("Loaded {} for compatibility", PropertyFileSnitch.SNITCH_PROPERTIES_FILENAME); } catch (ConfigurationException e) { logger.info("Unable to load {}; compatibility mode disabled", PropertyFileSnitch.SNITCH_PROPERTIES_FILENAME); } }
public void gossiperStarting() { super.gossiperStarting(); Gossiper.instance.addLocalApplicationState(ApplicationState.INTERNAL_IP, StorageService.instance.valueFactory.internalIP(FBUtilities.getLocalAddress().getHostAddress())); loadGossiperState(); }
public void gossiperStarting() { super.gossiperStarting(); Gossiper.instance.addLocalApplicationState(ApplicationState.INTERNAL_IP, StorageService.instance.valueFactory.internalIP(FBUtilities.getLocalAddress().getHostAddress())); loadGossiperState(); }
public void gossiperStarting() { super.gossiperStarting(); Gossiper.instance.addLocalApplicationState(ApplicationState.INTERNAL_IP, StorageService.instance.valueFactory.internalIP(FBUtilities.getLocalAddress().getHostAddress())); loadGossiperState(); }
public GossipingPropertyFileSnitch() throws ConfigurationException { SnitchProperties properties = loadConfiguration(); myDC = properties.get("dc", DEFAULT_DC).trim(); myRack = properties.get("rack", DEFAULT_RACK).trim(); preferLocal = Boolean.parseBoolean(properties.get("prefer_local", "false")); snitchHelperReference = new AtomicReference<>(); try { psnitch = new PropertyFileSnitch(); logger.info("Loaded {} for compatibility", PropertyFileSnitch.SNITCH_PROPERTIES_FILENAME); } catch (ConfigurationException e) { logger.info("Unable to load {}; compatibility mode disabled", PropertyFileSnitch.SNITCH_PROPERTIES_FILENAME); } }
public void gossiperStarting() { super.gossiperStarting(); Gossiper.instance.addLocalApplicationState(ApplicationState.INTERNAL_IP, StorageService.instance.valueFactory.internalIP(FBUtilities.getLocalAddress().getHostAddress())); loadGossiperState(); }
public GossipingPropertyFileSnitch() throws ConfigurationException { SnitchProperties properties = loadConfiguration(); myDC = properties.get("dc", DEFAULT_DC).trim(); myRack = properties.get("rack", DEFAULT_RACK).trim(); preferLocal = Boolean.parseBoolean(properties.get("prefer_local", "false")); snitchHelperReference = new AtomicReference<>(); try { psnitch = new PropertyFileSnitch(); logger.info("Loaded {} for compatibility", PropertyFileSnitch.SNITCH_PROPERTIES_FILENAME); } catch (ConfigurationException e) { logger.info("Unable to load {}; compatibility mode disabled", PropertyFileSnitch.SNITCH_PROPERTIES_FILENAME); } }
public GossipingPropertyFileSnitch() throws ConfigurationException { SnitchProperties properties = loadConfiguration(); myDC = properties.get("dc", DEFAULT_DC).trim(); myRack = properties.get("rack", DEFAULT_RACK).trim(); preferLocal = Boolean.parseBoolean(properties.get("prefer_local", "false")); snitchHelperReference = new AtomicReference<>(); try { psnitch = new PropertyFileSnitch(); logger.info("Loaded {} for compatibility", PropertyFileSnitch.SNITCH_PROPERTIES_FILENAME); } catch (ConfigurationException e) { logger.info("Unable to load {}; compatibility mode disabled", PropertyFileSnitch.SNITCH_PROPERTIES_FILENAME); } }