-/* Copyright (c) 2014-2017. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2014-2019. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
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);
return this.daemon;
}
- public int 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());