org.jclouds.cloudservers.compute.strategy
Class CloudServersComputeServiceAdapter

java.lang.Object
  extended by org.jclouds.cloudservers.compute.strategy.CloudServersComputeServiceAdapter
All Implemented Interfaces:
org.jclouds.compute.ComputeServiceAdapter<Server,Flavor,Image,org.jclouds.domain.Location>

@Singleton
public class CloudServersComputeServiceAdapter
extends Object
implements org.jclouds.compute.ComputeServiceAdapter<Server,Flavor,Image,org.jclouds.domain.Location>

defines the connection between the CloudServersClient 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  CloudServersClient client
           
protected  org.jclouds.location.suppliers.JustProvider locationSupplier
           
 
Constructor Summary
protected CloudServersComputeServiceAdapter(CloudServersClient client, org.jclouds.location.suppliers.JustProvider locationSupplier)
           
 
Method Summary
 org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<Server> createNodeWithGroupEncodedIntoName(String group, String name, org.jclouds.compute.domain.Template template)
           
 void destroyNode(String id)
           
 Server getNode(String id)
           
 Iterable<Flavor> listHardwareProfiles()
           
 Iterable<Image> listImages()
           
 Iterable<org.jclouds.domain.Location> listLocations()
           
 Iterable<Server> listNodes()
           
 void rebootNode(String id)
           
 void resumeNode(String id)
           
 void suspendNode(String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

client

protected final CloudServersClient client

locationSupplier

protected final org.jclouds.location.suppliers.JustProvider locationSupplier
Constructor Detail

CloudServersComputeServiceAdapter

@Inject
protected CloudServersComputeServiceAdapter(CloudServersClient client,
                                                   org.jclouds.location.suppliers.JustProvider locationSupplier)
Method Detail

createNodeWithGroupEncodedIntoName

public org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<Server> createNodeWithGroupEncodedIntoName(String group,
                                                                                                                      String name,
                                                                                                                      org.jclouds.compute.domain.Template template)
Specified by:
createNodeWithGroupEncodedIntoName in interface org.jclouds.compute.ComputeServiceAdapter<Server,Flavor,Image,org.jclouds.domain.Location>

listHardwareProfiles

public Iterable<Flavor> listHardwareProfiles()
Specified by:
listHardwareProfiles in interface org.jclouds.compute.ComputeServiceAdapter<Server,Flavor,Image,org.jclouds.domain.Location>

listImages

public Iterable<Image> listImages()
Specified by:
listImages in interface org.jclouds.compute.ComputeServiceAdapter<Server,Flavor,Image,org.jclouds.domain.Location>

listNodes

public Iterable<Server> listNodes()
Specified by:
listNodes in interface org.jclouds.compute.ComputeServiceAdapter<Server,Flavor,Image,org.jclouds.domain.Location>

listLocations

public Iterable<org.jclouds.domain.Location> listLocations()
Specified by:
listLocations in interface org.jclouds.compute.ComputeServiceAdapter<Server,Flavor,Image,org.jclouds.domain.Location>

getNode

public Server getNode(String id)
Specified by:
getNode in interface org.jclouds.compute.ComputeServiceAdapter<Server,Flavor,Image,org.jclouds.domain.Location>

destroyNode

public void destroyNode(String id)
Specified by:
destroyNode in interface org.jclouds.compute.ComputeServiceAdapter<Server,Flavor,Image,org.jclouds.domain.Location>

rebootNode

public void rebootNode(String id)
Specified by:
rebootNode in interface org.jclouds.compute.ComputeServiceAdapter<Server,Flavor,Image,org.jclouds.domain.Location>

resumeNode

public void resumeNode(String id)
Specified by:
resumeNode in interface org.jclouds.compute.ComputeServiceAdapter<Server,Flavor,Image,org.jclouds.domain.Location>

suspendNode

public void suspendNode(String id)
Specified by:
suspendNode in interface org.jclouds.compute.ComputeServiceAdapter<Server,Flavor,Image,org.jclouds.domain.Location>


Copyright © 2009-2011 jclouds. All Rights Reserved.