@Singleton public class AzureManagementComputeServiceAdapter extends Object implements ComputeServiceAdapter<Deployment,RoleSize,OSImage,String>
AzureApi
implementation and the
jclouds ComputeService
ComputeServiceAdapter.NodeAndInitialCredentials<N>
Constructor and Description |
---|
AzureManagementComputeServiceAdapter(AzureManagementApi api,
AzureManagementAsyncApi aapi) |
Modifier and Type | Method and Description |
---|---|
ComputeServiceAdapter.NodeAndInitialCredentials<Deployment> |
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) |
OSImage |
getImage(String id)
get a specific image by id
|
Deployment |
getNode(String id) |
Iterable<RoleSize> |
listHardwareProfiles()
Hardware profiles describe available cpu, memory, and disk configurations that can be used to
run a node.
|
Iterable<OSImage> |
listImages()
Images are the available configured operating systems that someone can run a node with.
|
Iterable<String> |
listLocations() |
Iterable<Deployment> |
listNodes() |
void |
rebootNode(String id) |
void |
resumeNode(String id) |
void |
suspendNode(String id) |
@Named(value="jclouds.compute") protected Logger logger
@Inject public AzureManagementComputeServiceAdapter(AzureManagementApi api, AzureManagementAsyncApi aapi)
public ComputeServiceAdapter.NodeAndInitialCredentials<Deployment> createNodeWithGroupEncodedIntoName(String group, 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<Deployment,RoleSize,OSImage,String>
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<RoleSize> listHardwareProfiles()
ComputeServiceAdapter
listHardwareProfiles
in interface ComputeServiceAdapter<Deployment,RoleSize,OSImage,String>
ComputeService.listHardwareProfiles()
public Iterable<OSImage> listImages()
ComputeServiceAdapter
listImages
in interface ComputeServiceAdapter<Deployment,RoleSize,OSImage,String>
ComputeService.listImages()
public OSImage getImage(String id)
ComputeServiceAdapter
getImage
in interface ComputeServiceAdapter<Deployment,RoleSize,OSImage,String>
id
- ComputeMetadata.getId()
, which is not necessarily ComputeMetadata.getProviderId()
public Iterable<String> listLocations()
listLocations
in interface ComputeServiceAdapter<Deployment,RoleSize,OSImage,String>
public Deployment getNode(String id)
getNode
in interface ComputeServiceAdapter<Deployment,RoleSize,OSImage,String>
public void destroyNode(String id)
destroyNode
in interface ComputeServiceAdapter<Deployment,RoleSize,OSImage,String>
public void rebootNode(String id)
rebootNode
in interface ComputeServiceAdapter<Deployment,RoleSize,OSImage,String>
public void resumeNode(String id)
resumeNode
in interface ComputeServiceAdapter<Deployment,RoleSize,OSImage,String>
public void suspendNode(String id)
suspendNode
in interface ComputeServiceAdapter<Deployment,RoleSize,OSImage,String>
public Iterable<Deployment> listNodes()
listNodes
in interface ComputeServiceAdapter<Deployment,RoleSize,OSImage,String>
Copyright © 2009-2013 jclouds. All Rights Reserved.