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

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

public class PackingVMPlacementPolicy
extends java.lang.Object
implements VMPlacementPolicy

PackingVMPlacementPolicy is a VM placement policy which attempts to pack the virtual machines of a server pool on as few as physical hosts as possible.


Constructor Summary
PackingVMPlacementPolicy()
           
 
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

PackingVMPlacementPolicy

public PackingVMPlacementPolicy()
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.