return this.queueToNodesMapping.containsKey(queueName);
}
public synchronized void addNodeToQueue(String nodeId, String queueName) throws QueueManagerException {
if (queueName == null || !this.queueToNodesMapping.containsKey(queueName))
throw new QueueManagerException("Queue '" + queueName + "' does not exist");
// add node to queue
LinkedHashSet<String> nodes = this.queueToNodesMapping.get(queueName);
if (nodes == null)
nodes = new LinkedHashSet<String>();