org.ow2.jasmine.vmm.agent.domain.policy
Interface VMPlacementPolicy

All Known Implementing Classes:
FirstFitVMPlacementPolicy, PackingVMPlacementPolicy, RoomForGrowthVMPlacementPolicy

public interface VMPlacementPolicy

The VMPlacementPolicy interface abstracts a VM placement policy which decides on which host of server pool a new virtual machine should be place. Every server pool is associated with one VM placement policy.


Method Summary
 org.ow2.jasmine.vmm.api.HostMXBean placeVM(org.ow2.jasmine.vmm.api.ServerPoolMXBean pool, 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.
 

Method Detail

placeVM

org.ow2.jasmine.vmm.api.HostMXBean placeVM(org.ow2.jasmine.vmm.api.ServerPoolMXBean pool,
                                           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.

Parameters:
pool - 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.