if (scheduler instanceof ClusterAware) {
setClusterNodeListsIntoScheduler(allMembers);
}
if (!deadMembers.isEmpty()) {
SchedulerDAOConnection conn = schedulerCF.getConnection();
String activeNodeId = allMembers.iterator().next().toString();
Iterator<?> it = deadMembers.iterator();
try {
while (it.hasNext()) {
String deadNodeId = it.next().toString();
conn.updateReassign(deadNodeId, activeNodeId);
logger.debug("Move all of jobs associated with [" + deadNodeId + "] to new node [" + activeNodeId + "]");
}
} catch (DatabaseException e) {
String errMsg = "Error in updating Job from dead node to active node : " + activeNodeId;
logger.error(errMsg);