@Singleton public class AbiquoComputeServiceAdapter extends Object implements ComputeServiceAdapter<VirtualMachine,VirtualMachineTemplate,VirtualMachineTemplate,Datacenter>
AbiquoApi
implementation and the jclouds
ComputeService
.ComputeServiceAdapter.NodeAndInitialCredentials<N>
Constructor and Description |
---|
AbiquoComputeServiceAdapter(RestContext<AbiquoApi,AbiquoAsyncApi> context,
AdministrationService adminService,
CloudService cloudService,
MonitoringService monitoringService,
AbiquoComputeServiceHelper helper) |
Modifier and Type | Method and Description |
---|---|
ComputeServiceAdapter.NodeAndInitialCredentials<VirtualMachine> |
createNodeWithGroupEncodedIntoName(String tag,
String name,
Template template)
ComputeService.createNodesInGroup(String, int, Template) generates the parameters
passed into this method such that each node in the set has a unique name. |
void |
destroyNode(String id) |
VirtualMachineTemplate |
getImage(String id)
get a specific image by id
|
VirtualMachine |
getNode(String id) |
Iterable<VirtualMachineTemplate> |
listHardwareProfiles()
Hardware profiles describe available cpu, memory, and disk configurations that can be used to
run a node.
|
Iterable<VirtualMachineTemplate> |
listImages()
Images are the available configured operating systems that someone can run a node with.
|
Iterable<Datacenter> |
listLocations() |
Iterable<VirtualMachine> |
listNodes() |
void |
rebootNode(String id) |
void |
resumeNode(String id) |
void |
suspendNode(String id) |
@Named(value="jclouds.compute") protected Logger logger
@Inject public AbiquoComputeServiceAdapter(RestContext<AbiquoApi,AbiquoAsyncApi> context, AdministrationService adminService, CloudService cloudService, MonitoringService monitoringService, AbiquoComputeServiceHelper helper)
public ComputeServiceAdapter.NodeAndInitialCredentials<VirtualMachine> createNodeWithGroupEncodedIntoName(String tag, String name, Template template)
ComputeServiceAdapter
ComputeService.createNodesInGroup(String, int, Template)
generates the parameters
passed into this method such that each node in the set has a unique name.
N
. If you are not using library-native objects (such as libvirt Domain
) use
JCloudsNativeComputeServiceAdapter
instead.
credentialStore
createNodeWithGroupEncodedIntoName
in interface ComputeServiceAdapter<VirtualMachine,VirtualMachineTemplate,VirtualMachineTemplate,Datacenter>
tag
- used to aggregate nodes with identical configurationname
- unique supplied name for the node, which has the group encoded into it.template
- includes imageId
, locationId
, and hardwareId
used to resume
the instance.ComputeService.createNodesInGroup(String, int, Template)
public Iterable<VirtualMachineTemplate> listHardwareProfiles()
ComputeServiceAdapter
listHardwareProfiles
in interface ComputeServiceAdapter<VirtualMachine,VirtualMachineTemplate,VirtualMachineTemplate,Datacenter>
ComputeService.listHardwareProfiles()
public Iterable<VirtualMachineTemplate> listImages()
ComputeServiceAdapter
listImages
in interface ComputeServiceAdapter<VirtualMachine,VirtualMachineTemplate,VirtualMachineTemplate,Datacenter>
ComputeService.listImages()
public VirtualMachineTemplate getImage(String id)
ComputeServiceAdapter
getImage
in interface ComputeServiceAdapter<VirtualMachine,VirtualMachineTemplate,VirtualMachineTemplate,Datacenter>
id
- ComputeMetadata.getId()
, which is not necessarily ComputeMetadata.getProviderId()
public Iterable<Datacenter> listLocations()
listLocations
in interface ComputeServiceAdapter<VirtualMachine,VirtualMachineTemplate,VirtualMachineTemplate,Datacenter>
public VirtualMachine getNode(String id)
getNode
in interface ComputeServiceAdapter<VirtualMachine,VirtualMachineTemplate,VirtualMachineTemplate,Datacenter>
public void destroyNode(String id)
destroyNode
in interface ComputeServiceAdapter<VirtualMachine,VirtualMachineTemplate,VirtualMachineTemplate,Datacenter>
public void rebootNode(String id)
rebootNode
in interface ComputeServiceAdapter<VirtualMachine,VirtualMachineTemplate,VirtualMachineTemplate,Datacenter>
public void resumeNode(String id)
resumeNode
in interface ComputeServiceAdapter<VirtualMachine,VirtualMachineTemplate,VirtualMachineTemplate,Datacenter>
public void suspendNode(String id)
suspendNode
in interface ComputeServiceAdapter<VirtualMachine,VirtualMachineTemplate,VirtualMachineTemplate,Datacenter>
public Iterable<VirtualMachine> listNodes()
listNodes
in interface ComputeServiceAdapter<VirtualMachine,VirtualMachineTemplate,VirtualMachineTemplate,Datacenter>
Copyright © 2009-2013 jclouds. All Rights Reserved.