@Singleton public class ProfitBricksComputeServiceAdapter extends Object implements ComputeServiceAdapter<Server,Hardware,Provisionable,Location>
ComputeServiceAdapter.NodeAndInitialCredentials<N>
@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,Hardware,Provisionable,Location>
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)
protected ComputeServiceAdapter.NodeAndInitialCredentials<Server> createNodeWithGroupEncodedIntoName(String group, String name, TemplateWithDataCenter template)
public Iterable<Hardware> listHardwareProfiles()
ComputeServiceAdapter
listHardwareProfiles
in interface ComputeServiceAdapter<Server,Hardware,Provisionable,Location>
ComputeService.listHardwareProfiles()
public Iterable<Provisionable> listImages()
ComputeServiceAdapter
listImages
in interface ComputeServiceAdapter<Server,Hardware,Provisionable,Location>
ComputeService.listImages()
public Provisionable getImage(String id)
ComputeServiceAdapter
getImage
in interface ComputeServiceAdapter<Server,Hardware,Provisionable,Location>
id
- Image#getId
, which is not necessarily Image#getProviderId
public Iterable<Location> listLocations()
listLocations
in interface ComputeServiceAdapter<Server,Hardware,Provisionable,Location>
public Server getNode(String id)
getNode
in interface ComputeServiceAdapter<Server,Hardware,Provisionable,Location>
public void destroyNode(String nodeId)
destroyNode
in interface ComputeServiceAdapter<Server,Hardware,Provisionable,Location>
public void rebootNode(String id)
rebootNode
in interface ComputeServiceAdapter<Server,Hardware,Provisionable,Location>
public void resumeNode(String id)
resumeNode
in interface ComputeServiceAdapter<Server,Hardware,Provisionable,Location>
public void suspendNode(String id)
suspendNode
in interface ComputeServiceAdapter<Server,Hardware,Provisionable,Location>
public Iterable<Server> listNodes()
listNodes
in interface ComputeServiceAdapter<Server,Hardware,Provisionable,Location>
public Iterable<Server> listNodesByIds(Iterable<String> ids)
listNodesByIds
in interface ComputeServiceAdapter<Server,Hardware,Provisionable,Location>
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.