@Singleton public class ServerManagerComputeServiceAdapter extends Object implements ComputeServiceAdapter<Server,Hardware,Image,Datacenter>
ServerManager implementation and the jclouds
ComputeServiceComputeServiceAdapter.NodeAndInitialCredentials<N>| Constructor and Description |
|---|
ServerManagerComputeServiceAdapter(ServerManager client) |
| Modifier and Type | Method and Description |
|---|---|
ComputeServiceAdapter.NodeAndInitialCredentials<Server> |
createNodeWithGroupEncodedIntoName(String tag,
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) |
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<Image> |
listImages()
Images are the available configured operating systems that someone can run
a node with.
|
Iterable<Datacenter> |
listLocations() |
Iterable<Server> |
listNodes() |
void |
rebootNode(String id) |
void |
resumeNode(String id) |
void |
suspendNode(String id) |
@Inject public ServerManagerComputeServiceAdapter(ServerManager client)
public ComputeServiceAdapter.NodeAndInitialCredentials<Server> createNodeWithGroupEncodedIntoName(String tag, 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,Image,Datacenter>tag - 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<Hardware> listHardwareProfiles()
ComputeServiceAdapterlistHardwareProfiles in interface ComputeServiceAdapter<Server,Hardware,Image,Datacenter>ComputeService.listHardwareProfiles()public Iterable<Image> listImages()
ComputeServiceAdapterlistImages in interface ComputeServiceAdapter<Server,Hardware,Image,Datacenter>ComputeService.listImages()public Iterable<Server> listNodes()
listNodes in interface ComputeServiceAdapter<Server,Hardware,Image,Datacenter>public Iterable<Datacenter> listLocations()
listLocations in interface ComputeServiceAdapter<Server,Hardware,Image,Datacenter>public Server getNode(String id)
getNode in interface ComputeServiceAdapter<Server,Hardware,Image,Datacenter>public void destroyNode(String id)
destroyNode in interface ComputeServiceAdapter<Server,Hardware,Image,Datacenter>public void rebootNode(String id)
rebootNode in interface ComputeServiceAdapter<Server,Hardware,Image,Datacenter>public void resumeNode(String id)
resumeNode in interface ComputeServiceAdapter<Server,Hardware,Image,Datacenter>public void suspendNode(String id)
suspendNode in interface ComputeServiceAdapter<Server,Hardware,Image,Datacenter>Copyright © 2009-2012 jclouds. All Rights Reserved.