@Singleton public class BaseCloudService extends Object implements CloudService
Modifier and Type | Field and Description |
---|---|
protected RestContext<AbiquoApi,AbiquoAsyncApi> |
context |
protected ListVirtualAppliances |
listVirtualAppliances |
protected ListVirtualDatacenters |
listVirtualDatacenters |
protected ListVirtualMachines |
listVirtualMachines |
Modifier | Constructor and Description |
---|---|
protected |
BaseCloudService(RestContext<AbiquoApi,AbiquoAsyncApi> context,
ListVirtualDatacenters listVirtualDatacenters,
ListVirtualAppliances listVirtualAppliances,
ListVirtualMachines listVirtualMachines) |
Modifier and Type | Method and Description |
---|---|
VirtualAppliance |
findVirtualAppliance(com.google.common.base.Predicate<VirtualAppliance> filter)
Get the first virtual appliance that matches the given filter.
|
VirtualDatacenter |
findVirtualDatacenter(com.google.common.base.Predicate<VirtualDatacenter> filter)
Get the first virtual datacenter that matches the given filter or
null if none
is found. |
VirtualMachine |
findVirtualMachine(com.google.common.base.Predicate<VirtualMachine> filter)
Get the first virtual machine that matches the given filter.
|
VirtualDatacenter |
getVirtualDatacenter(Integer virtualDatacenterId)
Get the virtual datacenter with the given id.
|
Iterable<VirtualDatacenter> |
getVirtualDatacenters(List<Integer> virtualDatacenterIds)
Get the list of virtual datacenter with the given ids.
|
Iterable<VirtualAppliance> |
listVirtualAppliances()
Virtual Appliance **********************
|
Iterable<VirtualAppliance> |
listVirtualAppliances(com.google.common.base.Predicate<VirtualAppliance> filter)
Get the list of the virtual appliances matching the given filter.
|
Iterable<VirtualDatacenter> |
listVirtualDatacenters()
Virtual Datacenter **********************
|
Iterable<VirtualDatacenter> |
listVirtualDatacenters(Enterprise enterprise)
Get the list of all virtual datacenters for a pair enterprise-datacenter.
|
Iterable<VirtualDatacenter> |
listVirtualDatacenters(com.google.common.base.Predicate<VirtualDatacenter> filter)
Get the list of virtual datacenters matching the given filter.
|
Iterable<VirtualMachine> |
listVirtualMachines()
Virtual Machine **********************
|
Iterable<VirtualMachine> |
listVirtualMachines(com.google.common.base.Predicate<VirtualMachine> filter)
Get the list of the virtual machines matching the given filter.
|
protected RestContext<AbiquoApi,AbiquoAsyncApi> context
protected final ListVirtualDatacenters listVirtualDatacenters
protected ListVirtualAppliances listVirtualAppliances
protected ListVirtualMachines listVirtualMachines
@Inject protected BaseCloudService(RestContext<AbiquoApi,AbiquoAsyncApi> context, ListVirtualDatacenters listVirtualDatacenters, ListVirtualAppliances listVirtualAppliances, ListVirtualMachines listVirtualMachines)
public Iterable<VirtualDatacenter> listVirtualDatacenters()
listVirtualDatacenters
in interface CloudService
public Iterable<VirtualDatacenter> listVirtualDatacenters(Enterprise enterprise)
CloudService
listVirtualDatacenters
in interface CloudService
enterprise
- The given enterprise.public Iterable<VirtualDatacenter> listVirtualDatacenters(com.google.common.base.Predicate<VirtualDatacenter> filter)
CloudService
listVirtualDatacenters
in interface CloudService
public VirtualDatacenter getVirtualDatacenter(Integer virtualDatacenterId)
CloudService
getVirtualDatacenter
in interface CloudService
public Iterable<VirtualDatacenter> getVirtualDatacenters(List<Integer> virtualDatacenterIds)
CloudService
getVirtualDatacenters
in interface CloudService
public VirtualDatacenter findVirtualDatacenter(com.google.common.base.Predicate<VirtualDatacenter> filter)
CloudService
null
if none
is found.findVirtualDatacenter
in interface CloudService
public Iterable<VirtualAppliance> listVirtualAppliances()
listVirtualAppliances
in interface CloudService
public Iterable<VirtualAppliance> listVirtualAppliances(com.google.common.base.Predicate<VirtualAppliance> filter)
CloudService
listVirtualAppliances
in interface CloudService
public VirtualAppliance findVirtualAppliance(com.google.common.base.Predicate<VirtualAppliance> filter)
CloudService
findVirtualAppliance
in interface CloudService
public Iterable<VirtualMachine> listVirtualMachines()
listVirtualMachines
in interface CloudService
public Iterable<VirtualMachine> listVirtualMachines(com.google.common.base.Predicate<VirtualMachine> filter)
CloudService
listVirtualMachines
in interface CloudService
public VirtualMachine findVirtualMachine(com.google.common.base.Predicate<VirtualMachine> filter)
CloudService
findVirtualMachine
in interface CloudService
Copyright © 2009-2013 jclouds. All Rights Reserved.