Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
sonar cleanups
[simgrid.git] / examples / java / cloud / migration / XVM.java
index 6c24b50..bdf79cb 100644 (file)
@@ -13,13 +13,12 @@ import org.simgrid.msg.HostFailureException;
 public class XVM extends VM {
   private int dpIntensity;
   private int ramsize;
-  private int currentLoad;
+  private int currentLoad = 0;
 
   private Daemon daemon;
 
   public XVM(Host host, String name, int ramsize, int migNetBW, int dpIntensity){
     super(host, name, ramsize, (int)(migNetBW*0.9), dpIntensity);
-    this.currentLoad = 0;
     this.dpIntensity = dpIntensity ;
     this.ramsize= ramsize;
     this.daemon = new Daemon(this);
@@ -46,11 +45,6 @@ public class XVM extends VM {
     return this.daemon;
   }
 
-  public double getLoad(){
-    Msg.info("Remaining comp:" + this.daemon.getRemaining());
-    return this.currentLoad;
-  }
-
   @Override
   public void migrate(Host host) throws HostFailureException {
     Msg.info("Start migration of VM " + this.getName() + " to " + host.getName());