public boolean setProperties(Properties props) { String str; str=props.getProperty("gossip_refresh_rate"); // wait for at most n members if(str != null) { gossip_refresh_rate=Integer.parseInt(str); props.remove("gossip_refresh_rate"); } str=props.getProperty("initial_hosts"); if(str != null) { props.remove("initial_hosts"); try { initial_hosts=createInitialHosts(str); } catch(UnknownHostException ex) { if(log.isErrorEnabled()) log.error("failed creating initial hosts", ex); return false; } } if(initial_hosts == null || initial_hosts.isEmpty()) { if(log.isErrorEnabled()) log.error("initial_hosts must contain the address of at least one GossipRouter"); return false; } return super.setProperties(props); }