{
return false;
}
Thread.sleep(5000); // wait a little for the topology updates
// if the nodeID is null, then a node with that nodeID MUST be found:
Topology topology = locator.getTopology();
if (topology.isEmpty())
// no servers found: trigger normal start.
return false;
if (nodeId0 != null)
{
TopologyMember node = topology.getMember(nodeId0.toString());
if (node != null)
// if nodeId found within running servers, try fail-back
return true;
// Error! NodeId not found but fail-back servers running: cancel start-up.
stopTheServer();
throw new HornetQException("Fail-back servers found but node is different ('local nodeId'=" + nodeId0 +
")");
}
return !topology.isEmpty();
}
finally
{
if (factory != null)
factory.close();