public class DigitalOcean2ComputeServiceAdapter extends Object implements ComputeServiceAdapter<Droplet,Size,ImageInRegion,Region>
ComputeServiceAdapter.NodeAndInitialCredentials<N>| Modifier and Type | Method and Description |
|---|---|
ComputeServiceAdapter.NodeAndInitialCredentials<Droplet> |
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) |
ImageInRegion |
getImage(String id)
get a specific image by id
|
Droplet |
getNode(String id) |
Iterable<Size> |
listHardwareProfiles()
Hardware profiles describe available cpu, memory, and disk configurations that can be used to
run a node.
|
Iterable<ImageInRegion> |
listImages()
Images are the available configured operating systems that someone can run a node with.
|
Iterable<Region> |
listLocations() |
Iterable<Droplet> |
listNodes() |
Iterable<Droplet> |
listNodesByIds(Iterable<String> ids) |
void |
rebootNode(String id) |
void |
resumeNode(String id) |
void |
suspendNode(String id) |
@Named(value="jclouds.compute") protected Logger logger
public ComputeServiceAdapter.NodeAndInitialCredentials<Droplet> 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<Droplet,Size,ImageInRegion,Region>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<ImageInRegion> listImages()
ComputeServiceAdapterlistImages in interface ComputeServiceAdapter<Droplet,Size,ImageInRegion,Region>ComputeService.listImages()public Iterable<Size> listHardwareProfiles()
ComputeServiceAdapterlistHardwareProfiles in interface ComputeServiceAdapter<Droplet,Size,ImageInRegion,Region>ComputeService.listHardwareProfiles()public Iterable<Region> listLocations()
listLocations in interface ComputeServiceAdapter<Droplet,Size,ImageInRegion,Region>public Iterable<Droplet> listNodes()
listNodes in interface ComputeServiceAdapter<Droplet,Size,ImageInRegion,Region>public Iterable<Droplet> listNodesByIds(Iterable<String> ids)
listNodesByIds in interface ComputeServiceAdapter<Droplet,Size,ImageInRegion,Region>public ImageInRegion getImage(String id)
ComputeServiceAdaptergetImage in interface ComputeServiceAdapter<Droplet,Size,ImageInRegion,Region>id - Image#getId, which is not necessarily Image#getProviderIdpublic Droplet getNode(String id)
getNode in interface ComputeServiceAdapter<Droplet,Size,ImageInRegion,Region>public void destroyNode(String id)
destroyNode in interface ComputeServiceAdapter<Droplet,Size,ImageInRegion,Region>public void rebootNode(String id)
rebootNode in interface ComputeServiceAdapter<Droplet,Size,ImageInRegion,Region>public void resumeNode(String id)
resumeNode in interface ComputeServiceAdapter<Droplet,Size,ImageInRegion,Region>public void suspendNode(String id)
suspendNode in interface ComputeServiceAdapter<Droplet,Size,ImageInRegion,Region>Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.