org.glassfish.virtualization.spi
Interface IAAS

All Superinterfaces:
Iterable<ServerPool>

@Contract
public interface IAAS
extends Iterable<ServerPool>

Defines the Infrastructure Management Service

Author:
Jerome Dochez

Method Summary
 PhasedFuture<AllocationPhase,VirtualMachine> allocate(AllocationConstraints order, List<Listener<AllocationPhase>> listeners)
          Allocate a virtual machine based on the provided template.
 PhasedFuture<AllocationPhase,VirtualMachine> allocate(AllocationStrategy strategy, AllocationConstraints constraints, List<Listener<AllocationPhase>> listeners)
          Allocate a virtual machine based on the provided template.
 ServerPool byName(String groupName)
          Returns the runtime information for the serverPool identified by its name.
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

byName

ServerPool byName(String groupName)
Returns the runtime information for the serverPool identified by its name.

Parameters:
groupName - the serverPool name
Returns:
the serverPool runtime information or null if not found.

allocate

PhasedFuture<AllocationPhase,VirtualMachine> allocate(AllocationConstraints order,
                                                      List<Listener<AllocationPhase>> listeners)
                                                      throws VirtException
Allocate a virtual machine based on the provided template.

Parameters:
order - the allocation constraints for the virtual machine allocation
listeners - list of synchronous Listener to register before starting any allocation work.
Returns:
a PhasedFuture to get asynchronous phases completion notification and the VirtualMachine instance upon allocation completion.
Throws:
VirtException - when the virtual machine creation failed.

allocate

PhasedFuture<AllocationPhase,VirtualMachine> allocate(AllocationStrategy strategy,
                                                      AllocationConstraints constraints,
                                                      List<Listener<AllocationPhase>> listeners)
                                                      throws VirtException
Allocate a virtual machine based on the provided template.

Parameters:
strategy - strategy to allocate the virtual machines within the machine pools.
constraints - the allocation constraints for the virtual machine allocation
listeners - list of synchronous Listener to register before starting any allocation work.
Returns:
a PhasedFuture to get asynchronous phases completion notification and the VirtualMachine instance upon allocation completion.
Throws:
VirtException - when the virtual machine creation failed.


Copyright © 2012. All Rights Reserved.