public synchronized void addNodesToWorkerList(List<Integer> nodeIds) {
        // Bookkeeping for nodes that will be involved in the next task
        nodeIdsWithWork.addAll(nodeIds);
        logger.info("Node IDs with work: " + nodeIdsWithWork + " Newly added nodes " + nodeIds);
    }
public synchronized void addNodesToWorkerList ( List < Integer > nodeIds ) { nodeIdsWithWork . addAll ( nodeIds ) ; logger . info ( "Node IDs with work: " + nodeIdsWithWork + " Newly added nodes " + nodeIds ) ; }
Add nodes to the workers list

@param nodeIds list of node ids.