@Singleton public class GoGridComputeServiceAdapter extends Object implements ComputeServiceAdapter<Server,Hardware,ServerImage,Option>
GoGridApi implementation and the jclouds
ComputeServiceComputeServiceAdapter.NodeAndInitialCredentials<N>| Modifier | Constructor and Description |
|---|---|
protected |
GoGridComputeServiceAdapter(GoGridApi client,
com.google.common.base.Function<Hardware,String> sizeToRam,
ComputeServiceConstants.Timeouts timeouts) |
| Modifier and Type | Method and Description |
|---|---|
ComputeServiceAdapter.NodeAndInitialCredentials<Server> |
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) |
ServerImage |
getImage(String id)
get a specific image by id
|
Server |
getNode(String id) |
Iterable<Hardware> |
listHardwareProfiles()
Hardware profiles describe available cpu, memory, and disk configurations that can be used to
run a node.
|
Iterable<ServerImage> |
listImages()
Images are the available configured operating systems that someone can run a node with.
|
Iterable<Option> |
listLocations() |
Iterable<Server> |
listNodes() |
Iterable<Server> |
listNodesByIds(Iterable<String> ids) |
void |
rebootNode(String id) |
void |
resumeNode(String id) |
void |
suspendNode(String id) |
protected Logger logger
@Inject protected GoGridComputeServiceAdapter(GoGridApi client, com.google.common.base.Function<Hardware,String> sizeToRam, ComputeServiceConstants.Timeouts timeouts)
public ComputeServiceAdapter.NodeAndInitialCredentials<Server> 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<Server,Hardware,ServerImage,Option>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<Hardware> listHardwareProfiles()
ComputeServiceAdapterlistHardwareProfiles in interface ComputeServiceAdapter<Server,Hardware,ServerImage,Option>ComputeService.listHardwareProfiles()public Iterable<ServerImage> listImages()
ComputeServiceAdapterlistImages in interface ComputeServiceAdapter<Server,Hardware,ServerImage,Option>ComputeService.listImages()public Iterable<Server> listNodes()
listNodes in interface ComputeServiceAdapter<Server,Hardware,ServerImage,Option>public Iterable<Server> listNodesByIds(Iterable<String> ids)
listNodesByIds in interface ComputeServiceAdapter<Server,Hardware,ServerImage,Option>public Iterable<Option> listLocations()
listLocations in interface ComputeServiceAdapter<Server,Hardware,ServerImage,Option>public Server getNode(String id)
getNode in interface ComputeServiceAdapter<Server,Hardware,ServerImage,Option>public ServerImage getImage(String id)
ComputeServiceAdaptergetImage in interface ComputeServiceAdapter<Server,Hardware,ServerImage,Option>id - Image#getId, which is not necessarily Image#getProviderIdpublic void destroyNode(String id)
destroyNode in interface ComputeServiceAdapter<Server,Hardware,ServerImage,Option>public void rebootNode(String id)
rebootNode in interface ComputeServiceAdapter<Server,Hardware,ServerImage,Option>public void resumeNode(String id)
resumeNode in interface ComputeServiceAdapter<Server,Hardware,ServerImage,Option>public void suspendNode(String id)
suspendNode in interface ComputeServiceAdapter<Server,Hardware,ServerImage,Option>Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.