@Singleton public class AWSEC2DestroyNodeStrategy extends EC2DestroyNodeStrategy
| Modifier and Type | Field and Description |
|---|---|
protected AWSEC2Api |
client |
protected Map<String,Credentials> |
credentialStore |
elasticIpCache, getNode, logger| Modifier | Constructor and Description |
|---|---|
protected |
AWSEC2DestroyNodeStrategy(AWSEC2Api client,
GetNodeMetadataStrategy getNode,
com.google.common.cache.LoadingCache<RegionAndName,String> elasticIpCache,
Map<String,Credentials> credentialStore) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
destroyInstanceInRegion(String id,
String region) |
destroyNode, releaseAnyPublicIpForInstanceInRegionprotected final AWSEC2Api client
protected final Map<String,Credentials> credentialStore
@Inject protected AWSEC2DestroyNodeStrategy(AWSEC2Api client, GetNodeMetadataStrategy getNode, @Named(value="ELASTICIP") com.google.common.cache.LoadingCache<RegionAndName,String> elasticIpCache, Map<String,Credentials> credentialStore)
protected void destroyInstanceInRegion(String id, String region)
destroyInstanceInRegion in class EC2DestroyNodeStrategyCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.