*/
public void migrate(Host destination) throws HostFailureException{
try {
- Msg.info("Migrate begins");
this.internalmig(destination);
- Msg.info("Migrate ends");
} catch (Exception e){
- Msg.info("an exception occurs during the migration of VM "+this.getName());
+ Msg.info("Migration of VM "+this.getName()+" to "+destination.getName()+" is impossible ("+e.getMessage()+")");
throw new HostFailureException();
}
// If the migration correcly returned, then we should change the currentHost value.