private synchronized void announceNode()
{
// TODO does this really work with more than one cluster connection? I think not
// Just take the first one for now
ClusterConnection cc = clusterConnections.values().iterator().next();
String nodeID = server.getNodeID().toString();
TopologyMember member = topology.getMember(nodeID);
if (member == null)
{
if (backup)
{
member = new TopologyMember(new Pair<TransportConfiguration, TransportConfiguration>(null, cc.getConnector()), 0);
}
else
{
member = new TopologyMember(new Pair<TransportConfiguration, TransportConfiguration>(cc.getConnector(), null), 0);
}
topology.addMember(nodeID, member);
}
else