continue;
}
hostslot.fixd=true;
List<NodePort> list = hostslot.ports;
if (hostslot.index < list.size()) {
NodePort np = list.get(hostslot.index);
rtn.put(tid, np);
LOG.info("higolog assign:" + tid + "==>" + hostslot.host + "," + hostslot.index + "," + np.getPort());
hostslot.index++;
}
}
ArrayList<HostSlots> hslist=new ArrayList<HostSlots>();
for(HostSlots hs:hostFreeResource)
{
if(hs.fixd)
{
for(int i=hs.index;i<hs.ports.size();i++)
{
freeResource.remove(hs.ports.get(i));
}
hs.index=hs.ports.size();
}else{
hslist.add(hs);
}
}
if(hslist.size()>0)
{
for (Integer tid : jobids) {
Integer tindex=this.index2host.taskId2Index.get(index).get(tid);
if(tindex!=null&&fixassgin.containsKey(tindex))
{
continue;
}
Integer index2 = tid % hslist.size();
HostSlots hostslot = hslist.get(index2);
List<NodePort> list = hostslot.ports;
if (hostslot.index < list.size()) {
NodePort np = list.get(hostslot.index);
rtn.put(tid, np);
LOG.info("higolog assign:" + tid + "==>" + hostslot.host + "," + hostslot.index + "," + np.getPort());
hostslot.index++;
}
}
}
}else{