org.jclouds.byon.internal
Class BYONComputeServiceAdapter

java.lang.Object
  extended by org.jclouds.byon.internal.BYONComputeServiceAdapter
All Implemented Interfaces:
org.jclouds.compute.ComputeServiceAdapter<org.jclouds.compute.domain.NodeMetadata,org.jclouds.compute.domain.Hardware,org.jclouds.compute.domain.Image,org.jclouds.domain.Location>, org.jclouds.compute.JCloudsNativeComputeServiceAdapter

@Singleton
public class BYONComputeServiceAdapter
extends Object
implements org.jclouds.compute.JCloudsNativeComputeServiceAdapter

Author:
Adrian Cole

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jclouds.compute.JCloudsNativeComputeServiceAdapter
org.jclouds.compute.JCloudsNativeComputeServiceAdapter.NodeWithInitialCredentials
 
Nested classes/interfaces inherited from interface org.jclouds.compute.ComputeServiceAdapter
org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<N>
 
Constructor Summary
BYONComputeServiceAdapter(com.google.common.base.Supplier<com.google.common.cache.LoadingCache<String,Node>> nodes, NodeToNodeMetadata converter, org.jclouds.location.suppliers.all.JustProvider locationSupplier)
           
 
Method Summary
 org.jclouds.compute.JCloudsNativeComputeServiceAdapter.NodeWithInitialCredentials createNodeWithGroupEncodedIntoName(String group, String name, org.jclouds.compute.domain.Template template)
           
 void destroyNode(String id)
           
 org.jclouds.compute.domain.NodeMetadata getNode(String id)
           
 Iterable<org.jclouds.compute.domain.Hardware> listHardwareProfiles()
           
 Iterable<org.jclouds.compute.domain.Image> listImages()
           
 Iterable<org.jclouds.domain.Location> listLocations()
           
 Iterable<org.jclouds.compute.domain.NodeMetadata> 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
 

Constructor Detail

BYONComputeServiceAdapter

@Inject
public BYONComputeServiceAdapter(com.google.common.base.Supplier<com.google.common.cache.LoadingCache<String,Node>> nodes,
                                        NodeToNodeMetadata converter,
                                        org.jclouds.location.suppliers.all.JustProvider locationSupplier)
Method Detail

createNodeWithGroupEncodedIntoName

public org.jclouds.compute.JCloudsNativeComputeServiceAdapter.NodeWithInitialCredentials createNodeWithGroupEncodedIntoName(String group,
                                                                                                                            String name,
                                                                                                                            org.jclouds.compute.domain.Template template)
Specified by:
createNodeWithGroupEncodedIntoName in interface org.jclouds.compute.ComputeServiceAdapter<org.jclouds.compute.domain.NodeMetadata,org.jclouds.compute.domain.Hardware,org.jclouds.compute.domain.Image,org.jclouds.domain.Location>
Specified by:
createNodeWithGroupEncodedIntoName in interface org.jclouds.compute.JCloudsNativeComputeServiceAdapter

listHardwareProfiles

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

listImages

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

listNodes

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

listLocations

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

getNode

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

destroyNode

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

rebootNode

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

resumeNode

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

suspendNode

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


Copyright © 2009-2012 jclouds. All Rights Reserved.