@Singleton public class SoftLayerComputeServiceAdapter extends Object implements ComputeServiceAdapter<VirtualGuest,Iterable<ProductItem>,ProductItem,Datacenter>
SoftLayerClient implementation and
the jclouds ComputeService| Modifier and Type | Class and Description |
|---|---|
static class |
SoftLayerComputeServiceAdapter.VirtualGuestHasLoginDetailsPresent |
ComputeServiceAdapter.NodeAndInitialCredentials<N>| Constructor and Description |
|---|
SoftLayerComputeServiceAdapter(SoftLayerClient client,
SoftLayerComputeServiceAdapter.VirtualGuestHasLoginDetailsPresent virtualGuestHasLoginDetailsPresent,
com.google.common.base.Supplier<ProductPackage> productPackageSupplier,
Iterable<ProductItemPrice> prices,
String cpuRegex,
String disk0Type,
float portSpeed,
long guestLoginDelay) |
| 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) |
ProductItem |
getImage(String id)
get a specific image by id
|
VirtualGuest |
getNode(String id) |
Iterable<Iterable<ProductItem>> |
listHardwareProfiles()
Hardware profiles describe available cpu, memory, and disk configurations that can be used to
run a node.
|
Iterable<ProductItem> |
listImages()
Images are the available configured operating systems that someone can run a node with.
|
Iterable<Datacenter> |
listLocations() |
Iterable<VirtualGuest> |
listNodes() |
void |
rebootNode(String id) |
void |
resumeNode(String id) |
void |
suspendNode(String id) |
@Named(value="jclouds.compute") protected Logger logger
@Inject public SoftLayerComputeServiceAdapter(SoftLayerClient client, SoftLayerComputeServiceAdapter.VirtualGuestHasLoginDetailsPresent virtualGuestHasLoginDetailsPresent, com.google.common.base.Supplier<ProductPackage> productPackageSupplier, Iterable<ProductItemPrice> prices, @Named(value="jclouds.softlayer.virtualguest.cpu-regex") String cpuRegex, @Named(value="jclouds.softlayer.virtualguest.disk0-type") String disk0Type, @Named(value="jclouds.softlayer.virtualguest.port-speed") float portSpeed, @Named(value="jclouds.softlayer.virtualguest.order-delay") long guestLoginDelay)
public ComputeServiceAdapter.NodeAndInitialCredentials<VirtualGuest> createNodeWithGroupEncodedIntoName(String group, 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<VirtualGuest,Iterable<ProductItem>,ProductItem,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<Iterable<ProductItem>> listHardwareProfiles()
ComputeServiceAdapterlistHardwareProfiles in interface ComputeServiceAdapter<VirtualGuest,Iterable<ProductItem>,ProductItem,Datacenter>ComputeService.listHardwareProfiles()public Iterable<ProductItem> listImages()
ComputeServiceAdapterlistImages in interface ComputeServiceAdapter<VirtualGuest,Iterable<ProductItem>,ProductItem,Datacenter>ComputeService.listImages()public ProductItem getImage(String id)
ComputeServiceAdaptergetImage in interface ComputeServiceAdapter<VirtualGuest,Iterable<ProductItem>,ProductItem,Datacenter>id - ComputeMetadata.getId(), which is not necessarily ComputeMetadata.getProviderId()public Iterable<VirtualGuest> listNodes()
listNodes in interface ComputeServiceAdapter<VirtualGuest,Iterable<ProductItem>,ProductItem,Datacenter>public Iterable<Datacenter> listLocations()
listLocations in interface ComputeServiceAdapter<VirtualGuest,Iterable<ProductItem>,ProductItem,Datacenter>public VirtualGuest getNode(String id)
getNode in interface ComputeServiceAdapter<VirtualGuest,Iterable<ProductItem>,ProductItem,Datacenter>public void destroyNode(String id)
destroyNode in interface ComputeServiceAdapter<VirtualGuest,Iterable<ProductItem>,ProductItem,Datacenter>public void rebootNode(String id)
rebootNode in interface ComputeServiceAdapter<VirtualGuest,Iterable<ProductItem>,ProductItem,Datacenter>public void resumeNode(String id)
resumeNode in interface ComputeServiceAdapter<VirtualGuest,Iterable<ProductItem>,ProductItem,Datacenter>public void suspendNode(String id)
suspendNode in interface ComputeServiceAdapter<VirtualGuest,Iterable<ProductItem>,ProductItem,Datacenter>Copyright © 2009-2013 jclouds. All Rights Reserved.