private void handleWorkerInfoReport(Message workerMsg){
        Integer processId;
        HashMap<Integer,ProcessInfo.Status> workerStatus = workerMsg.getWorkerInfo();
        if(!workerStatus.isEmpty()){
            Set<Integer> id = workerStatus.keySet();
            Iterator<Integer> idIterator = id.iterator();
            while(idIterator.hasNext()){
                processId = idIterator.next();
                //System.out.println("process id "+processId);
                ProcessInfo procInfo = manager.processesMap.get(processId);
                if(procInfo == null)
                    System.out.println("procInfo null");
                Status s = workerStatus.get(processId);
                if(s == null)
                    System.out.println("workerStatus null");
                
                procInfo.setStatus(s);
                
                
                //manager.processesMap.get(processId).setStatus(workerStatus.get(processId));
            }
            
        }
        /*reset the guard state for this worker, it's alive*/
        manager.workerStatusMap.put(workerId, 0);
    }