@Singleton public class GleSYSComputeServiceAdapter extends Object implements ComputeServiceAdapter<ServerDetails,Hardware,OSTemplate,String>
GleSYSApi
implementation and
the jclouds ComputeService
Modifier and Type | Class and Description |
---|---|
static class |
GleSYSComputeServiceAdapter.FindLocationForServerSpec |
ComputeServiceAdapter.NodeAndInitialCredentials<N>
Constructor and Description |
---|
GleSYSComputeServiceAdapter(GleSYSApi api,
GleSYSAsyncApi aapi,
ExecutorService userThreads,
ComputeServiceConstants.Timeouts timeouts,
com.google.common.base.Supplier<Set<? extends Location>> locations) |
Modifier and Type | Method and Description |
---|---|
ComputeServiceAdapter.NodeAndInitialCredentials<ServerDetails> |
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) |
OSTemplate |
getImage(String id)
get a specific image by id
|
ServerDetails |
getNode(String id) |
Iterable<Hardware> |
listHardwareProfiles()
Hardware profiles describe available cpu, memory, and disk configurations that can be used to
run a node.
|
Set<OSTemplate> |
listImages()
Images are the available configured operating systems that someone can run a node with.
|
Set<String> |
listLocations() |
Iterable<ServerDetails> |
listNodes() |
void |
rebootNode(String id) |
void |
resumeNode(String id) |
void |
suspendNode(String id) |
@Named(value="jclouds.compute") protected Logger logger
@Inject public GleSYSComputeServiceAdapter(GleSYSApi api, GleSYSAsyncApi aapi, @Named(value="jclouds.user-threads") ExecutorService userThreads, ComputeServiceConstants.Timeouts timeouts, com.google.common.base.Supplier<Set<? extends Location>> locations)
public ComputeServiceAdapter.NodeAndInitialCredentials<ServerDetails> 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<ServerDetails,Hardware,OSTemplate,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<Hardware> listHardwareProfiles()
ComputeServiceAdapter
listHardwareProfiles
in interface ComputeServiceAdapter<ServerDetails,Hardware,OSTemplate,String>
ComputeService.listHardwareProfiles()
public Set<OSTemplate> listImages()
ComputeServiceAdapter
listImages
in interface ComputeServiceAdapter<ServerDetails,Hardware,OSTemplate,String>
ComputeService.listImages()
public OSTemplate getImage(String id)
ComputeServiceAdapter
getImage
in interface ComputeServiceAdapter<ServerDetails,Hardware,OSTemplate,String>
id
- ComputeMetadata.getId()
, which is not necessarily ComputeMetadata.getProviderId()
public Iterable<ServerDetails> listNodes()
listNodes
in interface ComputeServiceAdapter<ServerDetails,Hardware,OSTemplate,String>
public Set<String> listLocations()
listLocations
in interface ComputeServiceAdapter<ServerDetails,Hardware,OSTemplate,String>
public ServerDetails getNode(String id)
getNode
in interface ComputeServiceAdapter<ServerDetails,Hardware,OSTemplate,String>
public void destroyNode(String id)
destroyNode
in interface ComputeServiceAdapter<ServerDetails,Hardware,OSTemplate,String>
public void rebootNode(String id)
rebootNode
in interface ComputeServiceAdapter<ServerDetails,Hardware,OSTemplate,String>
public void resumeNode(String id)
resumeNode
in interface ComputeServiceAdapter<ServerDetails,Hardware,OSTemplate,String>
public void suspendNode(String id)
suspendNode
in interface ComputeServiceAdapter<ServerDetails,Hardware,OSTemplate,String>
Copyright © 2009-2013 jclouds. All Rights Reserved.