|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AllocationStrategy
An allocation strategy is responsible for allocating virtual machines given a set of server pools and machines within these server pools.
| Method Summary | |
|---|---|
PhasedFuture<AllocationPhase,VirtualMachine> |
allocate(Collection<ServerPool> serverPools,
AllocationConstraints constraints,
List<Listener<AllocationPhase>> listeners)
allocate a virtual machine within the provided server pools, notifying of progress all listeners |
ServerPoolAllocationStrategy |
getServerPoolStrategy(ServerPool serverPool)
Returns the server pool allocation strategy for a particular server pool instance. |
| Method Detail |
|---|
PhasedFuture<AllocationPhase,VirtualMachine> allocate(Collection<ServerPool> serverPools,
AllocationConstraints constraints,
List<Listener<AllocationPhase>> listeners)
throws VirtException
serverPools - the server pools elligible to run the virtual machineconstraints - the virtual machine requested characteristicslisteners - listeners to register before any work is performed
VirtualMachine instance.
VirtException - if the allocation failed.ServerPoolAllocationStrategy getServerPoolStrategy(ServerPool serverPool)
serverPool - the server pool instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||