if (cluster_name == null || local_addr == null)
log.error("group_addr or local_addr is null, cannot register with GossipRouter(s)");
else {
log.trace("registering " + local_addr + " under " + cluster_name + " with GossipRouter");
stubManager.destroyStubs();
stubManager = new RouterStubManager(this,cluster_name, local_addr, reconnect_interval);
for (InetSocketAddress host : initial_hosts)
stubManager.createAndRegisterStub(host.getHostName(), host.getPort(), null);
connectAllStubs(cluster_name, local_addr);
}
}