org.jclouds.softlayer.compute.strategy
Class SoftLayerComputeServiceAdapter
java.lang.Object
org.jclouds.softlayer.compute.strategy.SoftLayerComputeServiceAdapter
- All Implemented Interfaces:
- org.jclouds.compute.ComputeServiceAdapter<VirtualGuest,org.jclouds.compute.domain.Hardware,OperatingSystem,Datacenter>
@Singleton
public class SoftLayerComputeServiceAdapter
- extends Object
- implements org.jclouds.compute.ComputeServiceAdapter<VirtualGuest,org.jclouds.compute.domain.Hardware,OperatingSystem,Datacenter>
defines the connection between the SoftLayerApi implementation and
the jclouds ComputeService
| Nested classes/interfaces inherited from interface org.jclouds.compute.ComputeServiceAdapter |
org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<N> |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_DISK_TYPE
public static final String DEFAULT_DISK_TYPE
- See Also:
- Constant Field Values
DEFAULT_PORT_SPEED
public static final int DEFAULT_PORT_SPEED
- See Also:
- Constant Field Values
logger
@Named(value="jclouds.compute")
protected org.jclouds.logging.Logger logger
SoftLayerComputeServiceAdapter
@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,
@Named(value="jclouds.softlayer.include_public_images")
boolean includePublicImages)
createNodeWithGroupEncodedIntoName
public org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<VirtualGuest> createNodeWithGroupEncodedIntoName(String group,
String name,
org.jclouds.compute.domain.Template template)
- Specified by:
createNodeWithGroupEncodedIntoName in interface org.jclouds.compute.ComputeServiceAdapter<VirtualGuest,org.jclouds.compute.domain.Hardware,OperatingSystem,Datacenter>
listHardwareProfiles
public Iterable<org.jclouds.compute.domain.Hardware> listHardwareProfiles()
- Specified by:
listHardwareProfiles in interface org.jclouds.compute.ComputeServiceAdapter<VirtualGuest,org.jclouds.compute.domain.Hardware,OperatingSystem,Datacenter>
listImages
public Set<OperatingSystem> listImages()
- Specified by:
listImages in interface org.jclouds.compute.ComputeServiceAdapter<VirtualGuest,org.jclouds.compute.domain.Hardware,OperatingSystem,Datacenter>
getImage
public OperatingSystem getImage(String id)
- Specified by:
getImage in interface org.jclouds.compute.ComputeServiceAdapter<VirtualGuest,org.jclouds.compute.domain.Hardware,OperatingSystem,Datacenter>
listNodes
public Iterable<VirtualGuest> listNodes()
- Specified by:
listNodes in interface org.jclouds.compute.ComputeServiceAdapter<VirtualGuest,org.jclouds.compute.domain.Hardware,OperatingSystem,Datacenter>
listNodesByIds
public Iterable<VirtualGuest> listNodesByIds(Iterable<String> ids)
- Specified by:
listNodesByIds in interface org.jclouds.compute.ComputeServiceAdapter<VirtualGuest,org.jclouds.compute.domain.Hardware,OperatingSystem,Datacenter>
listLocations
public Iterable<Datacenter> listLocations()
- Specified by:
listLocations in interface org.jclouds.compute.ComputeServiceAdapter<VirtualGuest,org.jclouds.compute.domain.Hardware,OperatingSystem,Datacenter>
getNode
public VirtualGuest getNode(String id)
- Specified by:
getNode in interface org.jclouds.compute.ComputeServiceAdapter<VirtualGuest,org.jclouds.compute.domain.Hardware,OperatingSystem,Datacenter>
destroyNode
public void destroyNode(String id)
- Specified by:
destroyNode in interface org.jclouds.compute.ComputeServiceAdapter<VirtualGuest,org.jclouds.compute.domain.Hardware,OperatingSystem,Datacenter>
rebootNode
public void rebootNode(String id)
- Specified by:
rebootNode in interface org.jclouds.compute.ComputeServiceAdapter<VirtualGuest,org.jclouds.compute.domain.Hardware,OperatingSystem,Datacenter>
resumeNode
public void resumeNode(String id)
- Specified by:
resumeNode in interface org.jclouds.compute.ComputeServiceAdapter<VirtualGuest,org.jclouds.compute.domain.Hardware,OperatingSystem,Datacenter>
suspendNode
public void suspendNode(String id)
- Specified by:
suspendNode in interface org.jclouds.compute.ComputeServiceAdapter<VirtualGuest,org.jclouds.compute.domain.Hardware,OperatingSystem,Datacenter>
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.