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

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

public class FirstFitVMPlacementPolicy
extends java.lang.Object
implements VMPlacementPolicy

FirstFitVMPlacementPolicy is a VM placement policy which chooses the first host which can fit the virtual machine configuration.


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

FirstFitVMPlacementPolicy

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