public class NovaComputeServiceAdapter extends Object implements ComputeServiceAdapter<ServerInZone,FlavorInZone,ImageInZone,Location>
ComputeServiceAdapter.NodeAndInitialCredentials<N>| Modifier and Type | Field and Description | 
|---|---|
protected com.google.common.cache.LoadingCache<ZoneAndName,KeyPair> | 
keyPairCache  | 
protected Logger | 
logger  | 
protected NovaApi | 
novaApi  | 
protected RemoveFloatingIpFromNodeAndDeallocate | 
removeFloatingIpFromNodeAndDeallocate  | 
protected com.google.common.base.Supplier<Set<String>> | 
zoneIds  | 
| Constructor and Description | 
|---|
NovaComputeServiceAdapter(NovaApi novaApi,
                         com.google.common.base.Supplier<Set<String>> zoneIds,
                         RemoveFloatingIpFromNodeAndDeallocate removeFloatingIpFromNodeAndDeallocate,
                         com.google.common.cache.LoadingCache<ZoneAndName,KeyPair> keyPairCache)  | 
| Modifier and Type | Method and Description | 
|---|---|
ComputeServiceAdapter.NodeAndInitialCredentials<ServerInZone> | 
createNodeWithGroupEncodedIntoName(String group,
                                  String name,
                                  Template template)
Note that we do not validate extensions here, on basis that
  
ApplyNovaTemplateOptionsCreateNodesWithGroupEncodedIntoNameThenAddToSet has already
 done so. | 
void | 
destroyNode(String id)  | 
ImageInZone | 
getImage(String id)
get a specific image by id 
 | 
ServerInZone | 
getNode(String id)  | 
Iterable<FlavorInZone> | 
listHardwareProfiles()
Hardware profiles describe available cpu, memory, and disk configurations that can be used to
 run a node. 
 | 
Iterable<ImageInZone> | 
listImages()
Images are the available configured operating systems that someone can run a node with. 
 | 
Iterable<Location> | 
listLocations()  | 
Iterable<ServerInZone> | 
listNodes()  | 
void | 
rebootNode(String id)  | 
void | 
resumeNode(String id)  | 
void | 
suspendNode(String id)  | 
@Named(value="jclouds.compute") protected Logger logger
protected final NovaApi novaApi
protected final RemoveFloatingIpFromNodeAndDeallocate removeFloatingIpFromNodeAndDeallocate
protected final com.google.common.cache.LoadingCache<ZoneAndName,KeyPair> keyPairCache
@Inject public NovaComputeServiceAdapter(NovaApi novaApi, com.google.common.base.Supplier<Set<String>> zoneIds, RemoveFloatingIpFromNodeAndDeallocate removeFloatingIpFromNodeAndDeallocate, com.google.common.cache.LoadingCache<ZoneAndName,KeyPair> keyPairCache)
public ComputeServiceAdapter.NodeAndInitialCredentials<ServerInZone> createNodeWithGroupEncodedIntoName(String group, String name, Template template)
ApplyNovaTemplateOptionsCreateNodesWithGroupEncodedIntoNameThenAddToSet has already
 done so.createNodeWithGroupEncodedIntoName in interface ComputeServiceAdapter<ServerInZone,FlavorInZone,ImageInZone,Location>group - used to aggregate nodes with identical configurationname - unique supplied name for the node, which has the group encoded into it.template - includes imageId, locationId, and hardwareId used to resume
           the instance.ComputeService.createNodesInGroup(String, int, Template)public Iterable<FlavorInZone> listHardwareProfiles()
ComputeServiceAdapterlistHardwareProfiles in interface ComputeServiceAdapter<ServerInZone,FlavorInZone,ImageInZone,Location>ComputeService.listHardwareProfiles()public Iterable<ImageInZone> listImages()
ComputeServiceAdapterlistImages in interface ComputeServiceAdapter<ServerInZone,FlavorInZone,ImageInZone,Location>ComputeService.listImages()public Iterable<ServerInZone> listNodes()
listNodes in interface ComputeServiceAdapter<ServerInZone,FlavorInZone,ImageInZone,Location>public Iterable<Location> listLocations()
listLocations in interface ComputeServiceAdapter<ServerInZone,FlavorInZone,ImageInZone,Location>public ServerInZone getNode(String id)
getNode in interface ComputeServiceAdapter<ServerInZone,FlavorInZone,ImageInZone,Location>public ImageInZone getImage(String id)
ComputeServiceAdaptergetImage in interface ComputeServiceAdapter<ServerInZone,FlavorInZone,ImageInZone,Location>id - ComputeMetadata.getId(), which is not necessarily ComputeMetadata.getProviderId()public void destroyNode(String id)
destroyNode in interface ComputeServiceAdapter<ServerInZone,FlavorInZone,ImageInZone,Location>public void rebootNode(String id)
rebootNode in interface ComputeServiceAdapter<ServerInZone,FlavorInZone,ImageInZone,Location>public void resumeNode(String id)
resumeNode in interface ComputeServiceAdapter<ServerInZone,FlavorInZone,ImageInZone,Location>public void suspendNode(String id)
suspendNode in interface ComputeServiceAdapter<ServerInZone,FlavorInZone,ImageInZone,Location>Copyright © 2009-2013 jclouds. All Rights Reserved.