public void removeNode(int id){
        processServerMap.get(id).stop();
        //processServerMap.remove(id);
        //workersMap.remove(id);
        workerStatusMap.put(id, -1);
        Set<Integer> procIdSet = processesMap.keySet();
        Iterator<Integer> idIterator = procIdSet.iterator();
        int procId;
        while(idIterator.hasNext()){
            procId = idIterator.next();
            if(processesMap.get(procId).getWorkerId() == id){
                if(processesMap.get(procId).getStatus() != Status.FINISHED.toString())
                    processesMap.get(procId).setStatus(Status.FAILED);
                
            }
        }
    }