Package org.jclouds.ec2.compute.strategy
Class EC2DestroyNodeStrategy
java.lang.Object
org.jclouds.ec2.compute.strategy.EC2DestroyNodeStrategy
- All Implemented Interfaces:
DestroyNodeStrategy
- Direct Known Subclasses:
AWSEC2DestroyNodeStrategy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final EC2Api
protected final com.google.common.cache.LoadingCache
<RegionAndName, String> protected final GetNodeMetadataStrategy
protected Logger
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
EC2DestroyNodeStrategy
(EC2Api client, GetNodeMetadataStrategy getNode, com.google.common.cache.LoadingCache<RegionAndName, String> elasticIpCache) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
destroyInstanceInRegion
(String instanceId, String region) destroyNode
(String id) protected void
releaseAnyPublicIpForInstanceInRegion
(String instanceId, String region)
-
Field Details
-
logger
-
client
-
getNode
-
elasticIpCache
-
-
Constructor Details
-
EC2DestroyNodeStrategy
@Inject protected EC2DestroyNodeStrategy(EC2Api client, GetNodeMetadataStrategy getNode, @Named("ELASTICIP") com.google.common.cache.LoadingCache<RegionAndName, String> elasticIpCache)
-
-
Method Details
-
destroyNode
- Specified by:
destroyNode
in interfaceDestroyNodeStrategy
- Returns:
- null if the node wasn't found
-
releaseAnyPublicIpForInstanceInRegion
-
destroyInstanceInRegion
-