@Singleton public class AbiquoComputeServiceHelper extends Object
AbiquoComputeServiceAdapter operations.| Constructor and Description |
|---|
AbiquoComputeServiceHelper(RestContext<AbiquoApi,AbiquoAsyncApi> context,
CloudService cloudService) |
| Modifier and Type | Method and Description |
|---|---|
void |
configureNetwork(VirtualMachine vm,
Network<?> gatewayNetwork,
List<Ip<?,? extends Network<?>>> ips,
List<UnmanagedNetwork> unmanagedIps)
Configure networking resources for the given virtual machine.
|
Iterable<VirtualDatacenter> |
findCompatibleVirtualDatacenters(Datacenter datacenter,
VirtualMachineTemplate template)
Find the virtual datacenters compatible with the given template.
|
VirtualDatacenter |
getOrCreateVirtualDatacenter(User user,
Enterprise enterprise,
Datacenter datacenter,
VirtualMachineTemplate template,
AbiquoTemplateOptions options)
Gets a virtual datacenter where the given template can be deployed.
|
@Named(value="jclouds.compute") protected Logger logger
@Inject public AbiquoComputeServiceHelper(RestContext<AbiquoApi,AbiquoAsyncApi> context, CloudService cloudService)
public VirtualDatacenter getOrCreateVirtualDatacenter(User user, Enterprise enterprise, Datacenter datacenter, VirtualMachineTemplate template, AbiquoTemplateOptions options)
If no compatible virtual datacenter is found, one will be created, if possible.
user - The current user.enterprise - The enterprise of the current user.datacenter - The datacenter of the template.template - The template to deploy.options - The template optionsnull if none
was found and a compatible one could not be created.public Iterable<VirtualDatacenter> findCompatibleVirtualDatacenters(Datacenter datacenter, VirtualMachineTemplate template)
datacenter - The datacenter of the template.template - The template to deploy.public void configureNetwork(VirtualMachine vm, @Nullable Network<?> gatewayNetwork, @Nullable List<Ip<?,? extends Network<?>>> ips, @Nullable List<UnmanagedNetwork> unmanagedIps)
vm - The virtual machine to configure.gatewayNetwork - The network to be used as a gateway.ips - The ips to attach to the virtual machine.Copyright © 2009-2013 jclouds. All Rights Reserved.