@Singleton public class AzureComputeServiceAdapter extends Object implements ComputeServiceAdapter<VirtualMachine,VMHardware,VMImage,Location>
AzureComputeApi implementation and
the jclouds ComputeService.ComputeServiceAdapter.NodeAndInitialCredentials<N>| Modifier and Type | Field and Description |
|---|---|
static String |
AUTOGENERATED_IP_KEY |
static String |
GROUP_KEY |
protected Logger |
logger |
| Modifier and Type | Method and Description |
|---|---|
ComputeServiceAdapter.NodeAndInitialCredentials<VirtualMachine> |
createNodeWithGroupEncodedIntoName(String group,
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) |
VMImage |
getImage(String id)
get a specific image by id
|
VirtualMachine |
getNode(String id) |
Iterable<VMHardware> |
listHardwareProfiles()
Hardware profiles describe available cpu, memory, and disk configurations that can be used to
run a node.
|
Iterable<VMImage> |
listImages()
Images are the available configured operating systems that someone can run a node with.
|
Iterable<Location> |
listLocations() |
Iterable<VirtualMachine> |
listNodes() |
Iterable<VirtualMachine> |
listNodesByIds(Iterable<String> ids) |
void |
rebootNode(String id) |
void |
resumeNode(String id) |
void |
suspendNode(String id) |
public static final String GROUP_KEY
public static final String AUTOGENERATED_IP_KEY
@Named(value="jclouds.compute") protected Logger logger
public ComputeServiceAdapter.NodeAndInitialCredentials<VirtualMachine> createNodeWithGroupEncodedIntoName(String group, String name, Template template)
ComputeServiceAdapterComputeService.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.
credentialStorecreateNodeWithGroupEncodedIntoName in interface ComputeServiceAdapter<VirtualMachine,VMHardware,VMImage,Location>group - 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<VMHardware> listHardwareProfiles()
ComputeServiceAdapterlistHardwareProfiles in interface ComputeServiceAdapter<VirtualMachine,VMHardware,VMImage,Location>ComputeService.listHardwareProfiles()public Iterable<VMImage> listImages()
ComputeServiceAdapterlistImages in interface ComputeServiceAdapter<VirtualMachine,VMHardware,VMImage,Location>ComputeService.listImages()public VMImage getImage(String id)
ComputeServiceAdaptergetImage in interface ComputeServiceAdapter<VirtualMachine,VMHardware,VMImage,Location>id - Image#getId, which is not necessarily Image#getProviderIdpublic Iterable<Location> listLocations()
listLocations in interface ComputeServiceAdapter<VirtualMachine,VMHardware,VMImage,Location>public VirtualMachine getNode(String id)
getNode in interface ComputeServiceAdapter<VirtualMachine,VMHardware,VMImage,Location>public void destroyNode(String id)
destroyNode in interface ComputeServiceAdapter<VirtualMachine,VMHardware,VMImage,Location>public void rebootNode(String id)
rebootNode in interface ComputeServiceAdapter<VirtualMachine,VMHardware,VMImage,Location>public void resumeNode(String id)
resumeNode in interface ComputeServiceAdapter<VirtualMachine,VMHardware,VMImage,Location>public void suspendNode(String id)
suspendNode in interface ComputeServiceAdapter<VirtualMachine,VMHardware,VMImage,Location>public Iterable<VirtualMachine> listNodes()
listNodes in interface ComputeServiceAdapter<VirtualMachine,VMHardware,VMImage,Location>public Iterable<VirtualMachine> listNodesByIds(Iterable<String> ids)
listNodesByIds in interface ComputeServiceAdapter<VirtualMachine,VMHardware,VMImage,Location>Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.