org.jclouds.vcloud.compute.strategy
Class VCloudComputeServiceAdapter

java.lang.Object
  extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface org.jclouds.compute.ComputeServiceAdapter
org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<N>
 
Field Summary
protected  InstantiateVAppTemplateWithGroupEncodedIntoNameThenCustomizeDeployAndPowerOn booter
           
protected  VCloudApi client
           
protected  org.jclouds.logging.Logger logger
           
protected  com.google.common.base.Supplier<Map<String,Org>> nameToOrg
           
protected  com.google.common.base.Predicate<URI> successTester
           
protected  com.google.common.base.Supplier<Set<VAppTemplate>> templates
           
protected  com.google.common.base.Function<VAppTemplate,org.jclouds.ovf.Envelope> templateToEnvelope
           
 
Constructor Summary
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)
           
 
Method Summary
 org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<VApp> createNodeWithGroupEncodedIntoName(String group, String name, org.jclouds.compute.domain.Template template)
           
 void destroyNode(String id)
           
 VAppTemplate getImage(String in)
           
 VApp getNode(String in)
           
 Iterable<VAppTemplate> listHardwareProfiles()
           
 Iterable<VAppTemplate> listImages()
           
 Iterable<org.jclouds.domain.Location> listLocations()
           
 Iterable<VApp> listNodes()
           
 Iterable<VApp> listNodesByIds(Iterable<String> ids)
           
 void rebootNode(String in)
           
 void resumeNode(String in)
           
 void suspendNode(String in)
           
 void waitForTask(Task task)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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)
Method Detail

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-2014 The Apache Software Foundation. All Rights Reserved.