org.jclouds.byon.internal
Class BYONComputeServiceAdapter

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

@Singleton
public class BYONComputeServiceAdapter
extends Object
implements JCloudsNativeComputeServiceAdapter

Author:
Adrian Cole

Constructor Summary
BYONComputeServiceAdapter(com.google.common.base.Supplier<Map<String,Node>> nodes, NodeToNodeMetadata converter, JustProvider locationSupplier)
           
 
Method Summary
 NodeMetadata createNodeWithGroupEncodedIntoNameThenStoreCredentials(String tag, String name, Template template, Map<String,Credentials> credentialStore)
           
 void destroyNode(String id)
           
 NodeMetadata getNode(String id)
           
 Iterable<Hardware> listHardwareProfiles()
           
 Iterable<Image> listImages()
           
 Iterable<Location> listLocations()
           
 Iterable<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<Map<String,Node>> nodes,
                                        NodeToNodeMetadata converter,
                                        JustProvider locationSupplier)
Method Detail

createNodeWithGroupEncodedIntoNameThenStoreCredentials

public NodeMetadata createNodeWithGroupEncodedIntoNameThenStoreCredentials(String tag,
                                                                           String name,
                                                                           Template template,
                                                                           Map<String,Credentials> credentialStore)
Specified by:
createNodeWithGroupEncodedIntoNameThenStoreCredentials in interface ComputeServiceAdapter<NodeMetadata,Hardware,Image,Location>
Specified by:
createNodeWithGroupEncodedIntoNameThenStoreCredentials in interface JCloudsNativeComputeServiceAdapter

listHardwareProfiles

public Iterable<Hardware> listHardwareProfiles()
Specified by:
listHardwareProfiles in interface ComputeServiceAdapter<NodeMetadata,Hardware,Image,Location>
Specified by:
listHardwareProfiles in interface JCloudsNativeComputeServiceAdapter

listImages

public Iterable<Image> listImages()
Specified by:
listImages in interface ComputeServiceAdapter<NodeMetadata,Hardware,Image,Location>
Specified by:
listImages in interface JCloudsNativeComputeServiceAdapter

listNodes

public Iterable<NodeMetadata> listNodes()
Specified by:
listNodes in interface ComputeServiceAdapter<NodeMetadata,Hardware,Image,Location>
Specified by:
listNodes in interface JCloudsNativeComputeServiceAdapter

listLocations

public Iterable<Location> listLocations()
Specified by:
listLocations in interface ComputeServiceAdapter<NodeMetadata,Hardware,Image,Location>
Specified by:
listLocations in interface JCloudsNativeComputeServiceAdapter

getNode

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

destroyNode

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

rebootNode

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

resumeNode

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

suspendNode

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


Copyright © 2009-2011 jclouds. All Rights Reserved.