Example #1
0
 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();
     }
 }
Example #3
0
        public int GetMipsOfOnePe()
        {
            if (HostList.Count == 0)
            {
                return(-1);
            }

            return(PeList.GetMips(HostList[0].PeList, 0));
        }
Example #4
0
 public bool SetPeStatus(int peId, int status)
 {
     return(PeList.SetPeStatus(peId, status));
 }
Example #5
0
 public bool SetFailed(bool failed)
 {
     _failed = failed;
     PeList.SetStatusFailed(failed);
     return(true);
 }
Example #6
0
 public int GetTotalMips()
 {
     return(PeList.GetTotalMips());
 }
Example #7
0
 public int GetNumberOfFreePes()
 {
     return(PeList.GetNumberOfFreePes());
 }