}
public void init() throws Exception {
super.init();
if(gossip_hosts != null) {
client=new GossipClient(gossip_hosts, gossip_refresh);
client.setSocketConnectionTimeout(sock_conn_timeout);
client.setSocketReadTimeout(sock_read_timeout);
}
else if(gossip_host != null && gossip_port != 0) {
client=new GossipClient(new IpAddress(InetAddress.getByName(gossip_host), gossip_port), gossip_refresh);
client.setSocketConnectionTimeout(sock_conn_timeout);
client.setSocketReadTimeout(sock_read_timeout);
}
}