public class NovaComputeServiceAdapter extends Object implements org.jclouds.compute.ComputeServiceAdapter<ServerInZone,FlavorInZone,ImageInZone,org.jclouds.domain.Location>
| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.cache.LoadingCache<ZoneAndName,KeyPair> |
keyPairCache |
protected org.jclouds.logging.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 |
|---|---|
org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<ServerInZone> |
createNodeWithGroupEncodedIntoName(String group,
String name,
org.jclouds.compute.domain.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) |
ServerInZone |
getNode(String id) |
Iterable<FlavorInZone> |
listHardwareProfiles() |
Iterable<ImageInZone> |
listImages() |
Iterable<org.jclouds.domain.Location> |
listLocations() |
Iterable<ServerInZone> |
listNodes() |
Iterable<ServerInZone> |
listNodesByIds(Iterable<String> ids) |
void |
rebootNode(String id) |
void |
resumeNode(String id) |
void |
suspendNode(String id) |
@Named(value="jclouds.compute") protected org.jclouds.logging.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 org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<ServerInZone> createNodeWithGroupEncodedIntoName(String group, String name, org.jclouds.compute.domain.Template template)
ApplyNovaTemplateOptionsCreateNodesWithGroupEncodedIntoNameThenAddToSet has already
done so.createNodeWithGroupEncodedIntoName in interface org.jclouds.compute.ComputeServiceAdapter<ServerInZone,FlavorInZone,ImageInZone,org.jclouds.domain.Location>public Iterable<FlavorInZone> listHardwareProfiles()
listHardwareProfiles in interface org.jclouds.compute.ComputeServiceAdapter<ServerInZone,FlavorInZone,ImageInZone,org.jclouds.domain.Location>public Iterable<ImageInZone> listImages()
listImages in interface org.jclouds.compute.ComputeServiceAdapter<ServerInZone,FlavorInZone,ImageInZone,org.jclouds.domain.Location>public Iterable<ServerInZone> listNodes()
listNodes in interface org.jclouds.compute.ComputeServiceAdapter<ServerInZone,FlavorInZone,ImageInZone,org.jclouds.domain.Location>public Iterable<ServerInZone> listNodesByIds(Iterable<String> ids)
listNodesByIds in interface org.jclouds.compute.ComputeServiceAdapter<ServerInZone,FlavorInZone,ImageInZone,org.jclouds.domain.Location>public Iterable<org.jclouds.domain.Location> listLocations()
listLocations in interface org.jclouds.compute.ComputeServiceAdapter<ServerInZone,FlavorInZone,ImageInZone,org.jclouds.domain.Location>public ServerInZone getNode(String id)
getNode in interface org.jclouds.compute.ComputeServiceAdapter<ServerInZone,FlavorInZone,ImageInZone,org.jclouds.domain.Location>public ImageInZone getImage(String id)
getImage in interface org.jclouds.compute.ComputeServiceAdapter<ServerInZone,FlavorInZone,ImageInZone,org.jclouds.domain.Location>public void destroyNode(String id)
destroyNode in interface org.jclouds.compute.ComputeServiceAdapter<ServerInZone,FlavorInZone,ImageInZone,org.jclouds.domain.Location>public void rebootNode(String id)
rebootNode in interface org.jclouds.compute.ComputeServiceAdapter<ServerInZone,FlavorInZone,ImageInZone,org.jclouds.domain.Location>public void resumeNode(String id)
resumeNode in interface org.jclouds.compute.ComputeServiceAdapter<ServerInZone,FlavorInZone,ImageInZone,org.jclouds.domain.Location>public void suspendNode(String id)
suspendNode in interface org.jclouds.compute.ComputeServiceAdapter<ServerInZone,FlavorInZone,ImageInZone,org.jclouds.domain.Location>Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.