@Singleton public class SlicehostComputeServiceAdapter extends Object implements ComputeServiceAdapter<Slice,Flavor,Image,Location>
SlicehostClient
implementation and the jclouds
ComputeService
ComputeServiceAdapter.NodeAndInitialCredentials<N>
Modifier and Type | Field and Description |
---|---|
protected SlicehostClient |
client |
Modifier | Constructor and Description |
---|---|
protected |
SlicehostComputeServiceAdapter(SlicehostClient client) |
Modifier and Type | Method and Description |
---|---|
ComputeServiceAdapter.NodeAndInitialCredentials<Slice> |
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) |
Slice |
getNode(String id) |
Iterable<Flavor> |
listHardwareProfiles()
Hardware profiles describe available cpu, memory, and disk configurations
that can be used to run a node.
|
Iterable<Image> |
listImages()
Images are the available configured operating systems that someone can run
a node with.
|
Iterable<Location> |
listLocations() |
Iterable<Slice> |
listNodes() |
void |
rebootNode(String id) |
void |
resumeNode(String id) |
void |
suspendNode(String id) |
protected final SlicehostClient client
@Inject protected SlicehostComputeServiceAdapter(SlicehostClient client)
public ComputeServiceAdapter.NodeAndInitialCredentials<Slice> 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<Slice,Flavor,Image,Location>
group
- used to aggregate nodes with identical configurationname
- unique supplied name for the node, which has the tag encoded
into it.template
- includes imageId
, locationId
, and
hardwareId
used to resume the instance.ComputeService.createNodesInGroup(String, int, Template)
public Iterable<Flavor> listHardwareProfiles()
ComputeServiceAdapter
listHardwareProfiles
in interface ComputeServiceAdapter<Slice,Flavor,Image,Location>
ComputeService.listHardwareProfiles()
public Iterable<Image> listImages()
ComputeServiceAdapter
listImages
in interface ComputeServiceAdapter<Slice,Flavor,Image,Location>
ComputeService.listImages()
public Iterable<Location> listLocations()
listLocations
in interface ComputeServiceAdapter<Slice,Flavor,Image,Location>
public void destroyNode(String id)
destroyNode
in interface ComputeServiceAdapter<Slice,Flavor,Image,Location>
public void rebootNode(String id)
rebootNode
in interface ComputeServiceAdapter<Slice,Flavor,Image,Location>
public void resumeNode(String id)
resumeNode
in interface ComputeServiceAdapter<Slice,Flavor,Image,Location>
public void suspendNode(String id)
suspendNode
in interface ComputeServiceAdapter<Slice,Flavor,Image,Location>
Copyright © 2009-2012 jclouds. All Rights Reserved.