Class NovaComputeServiceAdapter
java.lang.Object
org.jclouds.openstack.nova.v2_0.compute.NovaComputeServiceAdapter
- All Implemented Interfaces:
ComputeServiceAdapter<ServerInRegion,FlavorInRegion, ImageInRegion, org.jclouds.domain.Location>
public class NovaComputeServiceAdapter
extends Object
implements ComputeServiceAdapter<ServerInRegion,FlavorInRegion,ImageInRegion,org.jclouds.domain.Location>
The adapter used by the NovaComputeServiceContextModule to interface the nova-specific domain
model to the computeService generic domain model.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jclouds.compute.ComputeServiceAdapter
ComputeServiceAdapter.NodeAndInitialCredentials<N extends Object> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.jclouds.logging.Loggerprotected final NovaApiprotected final RemoveFloatingIpFromNodeAndDeallocate -
Constructor Summary
ConstructorsConstructorDescriptionNovaComputeServiceAdapter(NovaApi novaApi, com.google.common.base.Supplier<Set<String>> regionIds, RemoveFloatingIpFromNodeAndDeallocate removeFloatingIpFromNodeAndDeallocate, com.google.common.base.Predicate<RegionAndId> serverRunningPredicate, com.google.common.base.Predicate<RegionAndId> serverTerminatedPredicate, CleanupResources cleanupResources) -
Method Summary
Modifier and TypeMethodDescriptioncreateNodeWithGroupEncodedIntoName(String group, String name, Template template) Note that we do not validate extensions here, on basis thatApplyNovaTemplateOptionsCreateNodesWithGroupEncodedIntoNameThenAddToSethas already done so.voiddestroyNode(String id) Iterable<org.jclouds.domain.Location>listNodesByIds(Iterable<String> ids) voidrebootNode(String id) voidresumeNode(String id) voidsuspendNode(String id)
-
Field Details
-
logger
@Named("jclouds.compute") protected org.jclouds.logging.Logger logger -
novaApi
-
regionIds
-
removeFloatingIpFromNodeAndDeallocate
-
-
Constructor Details
-
NovaComputeServiceAdapter
@Inject public NovaComputeServiceAdapter(NovaApi novaApi, com.google.common.base.Supplier<Set<String>> regionIds, RemoveFloatingIpFromNodeAndDeallocate removeFloatingIpFromNodeAndDeallocate, @Named("jclouds.compute.timeout.node-running") com.google.common.base.Predicate<RegionAndId> serverRunningPredicate, @Named("jclouds.compute.timeout.node-terminated") com.google.common.base.Predicate<RegionAndId> serverTerminatedPredicate, CleanupResources cleanupResources)
-
-
Method Details
-
createNodeWithGroupEncodedIntoName
public ComputeServiceAdapter.NodeAndInitialCredentials<ServerInRegion> createNodeWithGroupEncodedIntoName(String group, String name, Template template) Note that we do not validate extensions here, on basis thatApplyNovaTemplateOptionsCreateNodesWithGroupEncodedIntoNameThenAddToSethas already done so.- Specified by:
createNodeWithGroupEncodedIntoNamein interfaceComputeServiceAdapter<ServerInRegion,FlavorInRegion, ImageInRegion, org.jclouds.domain.Location>
-
listHardwareProfiles
- Specified by:
listHardwareProfilesin interfaceComputeServiceAdapter<ServerInRegion,FlavorInRegion, ImageInRegion, org.jclouds.domain.Location>
-
listImages
- Specified by:
listImagesin interfaceComputeServiceAdapter<ServerInRegion,FlavorInRegion, ImageInRegion, org.jclouds.domain.Location>
-
listNodes
- Specified by:
listNodesin interfaceComputeServiceAdapter<ServerInRegion,FlavorInRegion, ImageInRegion, org.jclouds.domain.Location>
-
listNodesByIds
- Specified by:
listNodesByIdsin interfaceComputeServiceAdapter<ServerInRegion,FlavorInRegion, ImageInRegion, org.jclouds.domain.Location>
-
listLocations
- Specified by:
listLocationsin interfaceComputeServiceAdapter<ServerInRegion,FlavorInRegion, ImageInRegion, org.jclouds.domain.Location>
-
getNode
- Specified by:
getNodein interfaceComputeServiceAdapter<ServerInRegion,FlavorInRegion, ImageInRegion, org.jclouds.domain.Location>
-
getImage
- Specified by:
getImagein interfaceComputeServiceAdapter<ServerInRegion,FlavorInRegion, ImageInRegion, org.jclouds.domain.Location>
-
destroyNode
- Specified by:
destroyNodein interfaceComputeServiceAdapter<ServerInRegion,FlavorInRegion, ImageInRegion, org.jclouds.domain.Location>
-
rebootNode
- Specified by:
rebootNodein interfaceComputeServiceAdapter<ServerInRegion,FlavorInRegion, ImageInRegion, org.jclouds.domain.Location>
-
resumeNode
- Specified by:
resumeNodein interfaceComputeServiceAdapter<ServerInRegion,FlavorInRegion, ImageInRegion, org.jclouds.domain.Location>
-
suspendNode
- Specified by:
suspendNodein interfaceComputeServiceAdapter<ServerInRegion,FlavorInRegion, ImageInRegion, org.jclouds.domain.Location>
-