org.ow2.jasmine.vmm.agent.domain.policy
Class RoomForGrowthVMPlacementPolicy

java.lang.Object
  extended by org.ow2.jasmine.vmm.agent.domain.policy.RoomForGrowthVMPlacementPolicy
All Implemented Interfaces:
VMPlacementPolicy

public class RoomForGrowthVMPlacementPolicy
extends java.lang.Object
implements VMPlacementPolicy

RoomForGrowthVMPlacementPolicy is a VM placement policy which attempts to spread virtual machines on the hosts of server pool so as to leave maximmum room for growth


Constructor Summary
RoomForGrowthVMPlacementPolicy()
           
 
Method Summary
 org.ow2.jasmine.vmm.api.HostMXBean placeVM(org.ow2.jasmine.vmm.api.ServerPoolMXBean serverPool, org.ow2.jasmine.vmm.api.VMConfigSpec vmSpec)
          Returns the host of a server pool where the virtual machine whose configuration is provided as input should be placed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoomForGrowthVMPlacementPolicy

public RoomForGrowthVMPlacementPolicy()
Method Detail

placeVM

public org.ow2.jasmine.vmm.api.HostMXBean placeVM(org.ow2.jasmine.vmm.api.ServerPoolMXBean serverPool,
                                                  org.ow2.jasmine.vmm.api.VMConfigSpec vmSpec)
Description copied from interface: VMPlacementPolicy
Returns the host of a server pool where the virtual machine whose configuration is provided as input should be placed.

Specified by:
placeVM in interface VMPlacementPolicy
Parameters:
serverPool - the server pool where the virtual machine is to placed
vmSpec - the configuration of the virtual machine
Returns:
the host where the virtual machine should be placed or null if the policy is unable to place the virtual machine due to lack of resources


Copyright © 2009 OW2 Consortium. All Rights Reserved.