Exemplo n.º 1
0
 public int GetMipsOfOnePe(int id, int peId)
 {
     if (HostList.Count == 0)
     {
         return(-1);
     }
     return(PeList.GetMips(HostList.GetById(id).PeList, peId));
 }
Exemplo n.º 2
0
 public void DeallocatePesForAllVms()
 {
     MipsMap.Clear();
     AvailableMips = PeList.GetTotalMips();
     foreach (Pe pe in PeList)
     {
         pe.PeProvisioner.DeallocateMipsForAllVms();
     }
 }
Exemplo n.º 3
0
        public int GetMipsOfOnePe()
        {
            if (HostList.Count == 0)
            {
                return(-1);
            }

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