if (logger.isLoggable(BasicLevel.DEBUG))
logger.log(BasicLevel.DEBUG,
"LoadingFactor.processHope" +
" nbMsgHope = " + nbMsgHope +
", id = " + id);
LBMessageHope msgHope = new LBMessageHope(validityPeriod,rateOfFlow);
msgHope.setNbMsg(nbMsgHope);
clusterQueue.forward(id, msgHope);
} else {
// dispatch the hope request to clusterQueue.
if (logger.isLoggable(BasicLevel.DEBUG))
logger.log(BasicLevel.DEBUG,
"LoadingFactor.processHope" +
" hopePerQueue = " + nbHopePerQueue +
", selected = " + selected);
LBMessageHope msgHope = new LBMessageHope(validityPeriod,rateOfFlow);
for (Iterator e = selected.iterator(); e.hasNext();) {
AgentId id = (AgentId) e.next();
msgHope.setNbMsg(nbHopePerQueue);
clusterQueue.forward(id, msgHope);
}
}
}