for (Binding binding : bindings.getBindings())
{
if (binding instanceof LocalQueueBinding && local || binding instanceof RemoteQueueBinding && !local)
{
QueueBinding qBinding = (QueueBinding)binding;
bindingCount++;
totConsumers += qBinding.consumerCount();
}
}
if (bindingCount == count && totConsumers == consumerCount)
{
return;
}
Thread.sleep(10);
}
while (System.currentTimeMillis() - start < ClusterTestBase.WAIT_TIMEOUT);
// System.out.println(threadDump(" - fired by ClusterTestBase::waitForBindings"));
String msg = "Timed out waiting for bindings (bindingCount = " + bindingCount +
", totConsumers = " +
totConsumers +
")";
ClusterTestBase.log.error(msg);
// Sending thread dump into junit report.. trying to get some information about the server case the binding didn't
// arrive
System.out.println(UnitTestCase.threadDump(msg));
Bindings bindings = po.getBindingsForAddress(new SimpleString(address));
System.out.println("=======================================================================");
System.out.println("Binding information for address = " + address + " on node " + node);
for (Binding binding : bindings.getBindings())
{
if (binding instanceof LocalQueueBinding && local || binding instanceof RemoteQueueBinding && !local)
{
QueueBinding qBinding = (QueueBinding)binding;
System.out.println("Binding = " + qBinding + ", queue=" + qBinding.getQueue());
}
}
System.out.println("=======================================================================");
for (HornetQServer hornetQServer : servers)