@Singleton public class SoftLayerComputeServiceAdapter extends Object implements ComputeServiceAdapter<VirtualGuest,Hardware,OperatingSystem,Datacenter>
SoftLayerApi
implementation and
the jclouds ComputeService
Modifier and Type | Class and Description |
---|---|
static class |
SoftLayerComputeServiceAdapter.VirtualGuestHasLoginDetailsPresent |
ComputeServiceAdapter.NodeAndInitialCredentials<N>
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_DISK_TYPE |
protected Logger |
logger |
Constructor and Description |
---|
SoftLayerComputeServiceAdapter(SoftLayerApi api,
SoftLayerComputeServiceAdapter.VirtualGuestHasLoginDetailsPresent virtualGuestHasLoginDetailsPresent,
com.google.common.base.Supplier<ContainerVirtualGuestConfiguration> createObjectOptionsSupplier,
long guestLoginDelay,
long activeTransactionsDelay) |
Modifier and Type | Method and Description |
---|---|
ComputeServiceAdapter.NodeAndInitialCredentials<VirtualGuest> |
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) |
OperatingSystem |
getImage(String id)
get a specific image by id
|
VirtualGuest |
getNode(String id) |
Iterable<Hardware> |
listHardwareProfiles()
Hardware profiles describe available cpu, memory, and disk configurations that can be used to
run a node.
|
Set<OperatingSystem> |
listImages()
Images are the available configured operating systems that someone can run a node with.
|
Iterable<Datacenter> |
listLocations() |
Iterable<VirtualGuest> |
listNodes() |
Iterable<VirtualGuest> |
listNodesByIds(Iterable<String> ids) |
void |
rebootNode(String id) |
void |
resumeNode(String id) |
void |
suspendNode(String id) |
public static final String DEFAULT_DISK_TYPE
@Named(value="jclouds.compute") protected Logger logger
@Inject public SoftLayerComputeServiceAdapter(SoftLayerApi api, SoftLayerComputeServiceAdapter.VirtualGuestHasLoginDetailsPresent virtualGuestHasLoginDetailsPresent, com.google.common.base.Supplier<ContainerVirtualGuestConfiguration> createObjectOptionsSupplier, @Named(value="jclouds.softlayer.virtualguest.login_details_delay") long guestLoginDelay, @Named(value="jclouds.softlayer.virtualguest.active_transactions_delay") long activeTransactionsDelay)
public ComputeServiceAdapter.NodeAndInitialCredentials<VirtualGuest> 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<VirtualGuest,Hardware,OperatingSystem,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 Iterable<Hardware> listHardwareProfiles()
ComputeServiceAdapter
listHardwareProfiles
in interface ComputeServiceAdapter<VirtualGuest,Hardware,OperatingSystem,Datacenter>
ComputeService.listHardwareProfiles()
public Set<OperatingSystem> listImages()
ComputeServiceAdapter
listImages
in interface ComputeServiceAdapter<VirtualGuest,Hardware,OperatingSystem,Datacenter>
ComputeService.listImages()
public OperatingSystem getImage(String id)
ComputeServiceAdapter
getImage
in interface ComputeServiceAdapter<VirtualGuest,Hardware,OperatingSystem,Datacenter>
id
- Image#getId
, which is not necessarily Image#getProviderId
public Iterable<VirtualGuest> listNodes()
listNodes
in interface ComputeServiceAdapter<VirtualGuest,Hardware,OperatingSystem,Datacenter>
public Iterable<VirtualGuest> listNodesByIds(Iterable<String> ids)
listNodesByIds
in interface ComputeServiceAdapter<VirtualGuest,Hardware,OperatingSystem,Datacenter>
public Iterable<Datacenter> listLocations()
listLocations
in interface ComputeServiceAdapter<VirtualGuest,Hardware,OperatingSystem,Datacenter>
public VirtualGuest getNode(String id)
getNode
in interface ComputeServiceAdapter<VirtualGuest,Hardware,OperatingSystem,Datacenter>
public void destroyNode(String id)
destroyNode
in interface ComputeServiceAdapter<VirtualGuest,Hardware,OperatingSystem,Datacenter>
public void rebootNode(String id)
rebootNode
in interface ComputeServiceAdapter<VirtualGuest,Hardware,OperatingSystem,Datacenter>
public void resumeNode(String id)
resumeNode
in interface ComputeServiceAdapter<VirtualGuest,Hardware,OperatingSystem,Datacenter>
public void suspendNode(String id)
suspendNode
in interface ComputeServiceAdapter<VirtualGuest,Hardware,OperatingSystem,Datacenter>
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.