@Singleton public class CleanupResources extends Object implements com.google.common.base.Function<NodeMetadata,Boolean>
Modifier and Type | Field and Description |
---|---|
protected Logger |
logger |
protected RemoveFloatingIpFromNodeAndDeallocate |
removeFloatingIpFromNodeAndDeallocate |
protected com.google.common.cache.LoadingCache<RegionAndName,SecurityGroup> |
securityGroupMap |
Constructor and Description |
---|
CleanupResources(RemoveFloatingIpFromNodeAndDeallocate removeFloatingIpFromNodeAndDeallocate,
com.google.common.cache.LoadingCache<RegionAndName,SecurityGroup> securityGroupMap,
SecurityGroupExtension securityGroupExtension) |
Modifier and Type | Method and Description |
---|---|
Boolean |
apply(NodeMetadata node) |
boolean |
removeSecurityGroupCreatedByJcloudsAndInvalidateCache(Set<String> tags) |
@Named(value="jclouds.compute") protected Logger logger
protected final RemoveFloatingIpFromNodeAndDeallocate removeFloatingIpFromNodeAndDeallocate
protected final com.google.common.cache.LoadingCache<RegionAndName,SecurityGroup> securityGroupMap
@Inject public CleanupResources(RemoveFloatingIpFromNodeAndDeallocate removeFloatingIpFromNodeAndDeallocate, com.google.common.cache.LoadingCache<RegionAndName,SecurityGroup> securityGroupMap, SecurityGroupExtension securityGroupExtension)
public Boolean apply(NodeMetadata node)
apply
in interface com.google.common.base.Function<NodeMetadata,Boolean>
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.