@Singleton public class OneandoneComputeServiceAdapter extends Object implements ComputeServiceAdapter<Server,HardwareFlavour,SingleServerAppliance,DataCenter>
ComputeServiceAdapter.NodeAndInitialCredentials<N>
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) |
SingleServerAppliance |
getImage(String id)
get a specific image by id
|
Server |
getNode(String id) |
List<HardwareFlavour> |
listHardwareProfiles()
Hardware profiles describe available cpu, memory, and disk configurations that can be used to
run a node.
|
Iterable<SingleServerAppliance> |
listImages()
Images are the available configured operating systems that someone can run a node with.
|
Iterable<DataCenter> |
listLocations() |
Iterable<Server> |
listNodes() |
Iterable<Server> |
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<Server> 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<Server,HardwareFlavour,SingleServerAppliance,DataCenter>
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 List<HardwareFlavour> listHardwareProfiles()
ComputeServiceAdapter
listHardwareProfiles
in interface ComputeServiceAdapter<Server,HardwareFlavour,SingleServerAppliance,DataCenter>
ComputeService.listHardwareProfiles()
public Iterable<SingleServerAppliance> listImages()
ComputeServiceAdapter
listImages
in interface ComputeServiceAdapter<Server,HardwareFlavour,SingleServerAppliance,DataCenter>
ComputeService.listImages()
public SingleServerAppliance getImage(String id)
ComputeServiceAdapter
getImage
in interface ComputeServiceAdapter<Server,HardwareFlavour,SingleServerAppliance,DataCenter>
id
- Image#getId
, which is not necessarily Image#getProviderId
public Iterable<DataCenter> listLocations()
listLocations
in interface ComputeServiceAdapter<Server,HardwareFlavour,SingleServerAppliance,DataCenter>
public Server getNode(String id)
getNode
in interface ComputeServiceAdapter<Server,HardwareFlavour,SingleServerAppliance,DataCenter>
public void destroyNode(String id)
destroyNode
in interface ComputeServiceAdapter<Server,HardwareFlavour,SingleServerAppliance,DataCenter>
public void rebootNode(String id)
rebootNode
in interface ComputeServiceAdapter<Server,HardwareFlavour,SingleServerAppliance,DataCenter>
public void resumeNode(String id)
resumeNode
in interface ComputeServiceAdapter<Server,HardwareFlavour,SingleServerAppliance,DataCenter>
public void suspendNode(String id)
suspendNode
in interface ComputeServiceAdapter<Server,HardwareFlavour,SingleServerAppliance,DataCenter>
public Iterable<Server> listNodes()
listNodes
in interface ComputeServiceAdapter<Server,HardwareFlavour,SingleServerAppliance,DataCenter>
public Iterable<Server> listNodesByIds(Iterable<String> ids)
listNodesByIds
in interface ComputeServiceAdapter<Server,HardwareFlavour,SingleServerAppliance,DataCenter>
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.