org.jclouds.vcloud.compute.strategy
Class VCloudComputeServiceAdapter
java.lang.Object
org.jclouds.vcloud.compute.strategy.VCloudComputeServiceAdapter
- All Implemented Interfaces:
- org.jclouds.compute.ComputeServiceAdapter<VApp,VAppTemplate,VAppTemplate,org.jclouds.domain.Location>
@Singleton
public class VCloudComputeServiceAdapter
- extends Object
- implements org.jclouds.compute.ComputeServiceAdapter<VApp,VAppTemplate,VAppTemplate,org.jclouds.domain.Location>
defines the connection between the VCloudApi 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 |
logger
@Named(value="jclouds.compute")
protected org.jclouds.logging.Logger logger
client
protected final VCloudApi client
successTester
protected final com.google.common.base.Predicate<URI> successTester
booter
protected final InstantiateVAppTemplateWithGroupEncodedIntoNameThenCustomizeDeployAndPowerOn booter
nameToOrg
protected final com.google.common.base.Supplier<Map<String,Org>> nameToOrg
templates
protected final com.google.common.base.Supplier<Set<VAppTemplate>> templates
templateToEnvelope
protected final com.google.common.base.Function<VAppTemplate,org.jclouds.ovf.Envelope> templateToEnvelope
VCloudComputeServiceAdapter
@Inject
protected VCloudComputeServiceAdapter(VCloudApi client,
com.google.common.base.Predicate<URI> successTester,
InstantiateVAppTemplateWithGroupEncodedIntoNameThenCustomizeDeployAndPowerOn booter,
com.google.common.base.Supplier<Map<String,Org>> nameToOrg,
VAppTemplatesSupplier templates,
com.google.common.base.Function<VAppTemplate,org.jclouds.ovf.Envelope> templateToEnvelope)
createNodeWithGroupEncodedIntoName
public org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<VApp> createNodeWithGroupEncodedIntoName(String group,
String name,
org.jclouds.compute.domain.Template template)
- Specified by:
createNodeWithGroupEncodedIntoName in interface org.jclouds.compute.ComputeServiceAdapter<VApp,VAppTemplate,VAppTemplate,org.jclouds.domain.Location>
listHardwareProfiles
public Iterable<VAppTemplate> listHardwareProfiles()
- Specified by:
listHardwareProfiles in interface org.jclouds.compute.ComputeServiceAdapter<VApp,VAppTemplate,VAppTemplate,org.jclouds.domain.Location>
listImages
public Iterable<VAppTemplate> listImages()
- Specified by:
listImages in interface org.jclouds.compute.ComputeServiceAdapter<VApp,VAppTemplate,VAppTemplate,org.jclouds.domain.Location>
listNodes
public Iterable<VApp> listNodes()
- Specified by:
listNodes in interface org.jclouds.compute.ComputeServiceAdapter<VApp,VAppTemplate,VAppTemplate,org.jclouds.domain.Location>
listNodesByIds
public Iterable<VApp> listNodesByIds(Iterable<String> ids)
- Specified by:
listNodesByIds in interface org.jclouds.compute.ComputeServiceAdapter<VApp,VAppTemplate,VAppTemplate,org.jclouds.domain.Location>
listLocations
public Iterable<org.jclouds.domain.Location> listLocations()
- Specified by:
listLocations in interface org.jclouds.compute.ComputeServiceAdapter<VApp,VAppTemplate,VAppTemplate,org.jclouds.domain.Location>
getNode
public VApp getNode(String in)
- Specified by:
getNode in interface org.jclouds.compute.ComputeServiceAdapter<VApp,VAppTemplate,VAppTemplate,org.jclouds.domain.Location>
getImage
public VAppTemplate getImage(String in)
- Specified by:
getImage in interface org.jclouds.compute.ComputeServiceAdapter<VApp,VAppTemplate,VAppTemplate,org.jclouds.domain.Location>
destroyNode
public void destroyNode(String id)
- Specified by:
destroyNode in interface org.jclouds.compute.ComputeServiceAdapter<VApp,VAppTemplate,VAppTemplate,org.jclouds.domain.Location>
waitForTask
public void waitForTask(Task task)
rebootNode
public void rebootNode(String in)
- Specified by:
rebootNode in interface org.jclouds.compute.ComputeServiceAdapter<VApp,VAppTemplate,VAppTemplate,org.jclouds.domain.Location>
resumeNode
public void resumeNode(String in)
- Specified by:
resumeNode in interface org.jclouds.compute.ComputeServiceAdapter<VApp,VAppTemplate,VAppTemplate,org.jclouds.domain.Location>
suspendNode
public void suspendNode(String in)
- Specified by:
suspendNode in interface org.jclouds.compute.ComputeServiceAdapter<VApp,VAppTemplate,VAppTemplate,org.jclouds.domain.Location>
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.