org.inria.myriads.snoozenode.groupmanager.managerpolicies.relocation.impl
Class GreedyUnderloadRelocation

java.lang.Object
  extended by org.inria.myriads.snoozenode.groupmanager.managerpolicies.relocation.impl.GreedyUnderloadRelocation
All Implemented Interfaces:
VirtualMachineRelocation

public final class GreedyUnderloadRelocation
extends Object
implements VirtualMachineRelocation

Most loaded server relocation policy.

Author:
Eugen Feller

Constructor Summary
GreedyUnderloadRelocation(ResourceDemandEstimator estimator)
          Constructor.
 
Method Summary
 MigrationPlan relocateVirtualMachines(org.inria.myriads.snoozecommon.communication.localcontroller.LocalControllerDescription sourceLocalController, List<org.inria.myriads.snoozecommon.communication.localcontroller.LocalControllerDescription> destinationLocalControllers)
          Relocates virtual machines.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GreedyUnderloadRelocation

public GreedyUnderloadRelocation(ResourceDemandEstimator estimator)
Constructor.

Parameters:
estimator - The resource demand estimator
Method Detail

relocateVirtualMachines

public MigrationPlan relocateVirtualMachines(org.inria.myriads.snoozecommon.communication.localcontroller.LocalControllerDescription sourceLocalController,
                                             List<org.inria.myriads.snoozecommon.communication.localcontroller.LocalControllerDescription> destinationLocalControllers)
Relocates virtual machines.

Specified by:
relocateVirtualMachines in interface VirtualMachineRelocation
Parameters:
sourceLocalController - The source local controller description
destinationLocalControllers - The destination local controller candidates
Returns:
The migration plan


Copyright © 2012. All Rights Reserved.