public int GetMipsOfOnePe(int id, int peId) { if (HostList.Count == 0) { return(-1); } return(PeList.GetMips(HostList.GetById(id).PeList, peId)); }
public void DeallocatePesForAllVms() { MipsMap.Clear(); AvailableMips = PeList.GetTotalMips(); foreach (Pe pe in PeList) { pe.PeProvisioner.DeallocateMipsForAllVms(); } }
public int GetMipsOfOnePe() { if (HostList.Count == 0) { return(-1); } return(PeList.GetMips(HostList[0].PeList, 0)); }
public bool SetPeStatus(int peId, int status) { return(PeList.SetPeStatus(peId, status)); }
public bool SetFailed(bool failed) { _failed = failed; PeList.SetStatusFailed(failed); return(true); }
public int GetTotalMips() { return(PeList.GetTotalMips()); }
public int GetNumberOfFreePes() { return(PeList.GetNumberOfFreePes()); }