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

Constructor Summary
BYONComputeServiceAdapter(com.google.common.base.Supplier<com.google.common.cache.Cache<String,Node>> nodes, NodeToNodeMetadata converter, org.jclouds.location.suppliers.JustProvider locationSupplier)
           
 
Method Summary
 org.jclouds.compute.domain.NodeMetadata createNodeWithGroupEncodedIntoNameThenStoreCredentials(String tag, String name, org.jclouds.compute.domain.Template template, Map<String,org.jclouds.domain.Credentials> credentialStore)
           
 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.Cache<String,Node>> nodes,
                                        NodeToNodeMetadata converter,
                                        org.jclouds.location.suppliers.JustProvider locationSupplier)
Method Detail

createNodeWithGroupEncodedIntoNameThenStoreCredentials

public org.jclouds.compute.domain.NodeMetadata createNodeWithGroupEncodedIntoNameThenStoreCredentials(String tag,
                                                                                                      String name,
                                                                                                      org.jclouds.compute.domain.Template template,
                                                                                                      Map<String,org.jclouds.domain.Credentials> credentialStore)
Specified by:
createNodeWithGroupEncodedIntoNameThenStoreCredentials 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:
createNodeWithGroupEncodedIntoNameThenStoreCredentials 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-2011 jclouds. All Rights Reserved.