Class CleanupResources
- java.lang.Object
-
- org.jclouds.openstack.nova.v2_0.compute.functions.CleanupResources
-
- All Implemented Interfaces:
com.google.common.base.Function<NodeMetadata,Boolean>
,Function<NodeMetadata,Boolean>
@Singleton public class CleanupResources extends Object implements com.google.common.base.Function<NodeMetadata,Boolean>
-
-
Field Summary
Fields Modifier and Type Field Description protected Logger
logger
protected RemoveFloatingIpFromNodeAndDeallocate
removeFloatingIpFromNodeAndDeallocate
protected com.google.common.cache.LoadingCache<RegionAndName,SecurityGroup>
securityGroupMap
-
Constructor Summary
Constructors Constructor Description CleanupResources(RemoveFloatingIpFromNodeAndDeallocate removeFloatingIpFromNodeAndDeallocate, com.google.common.cache.LoadingCache<RegionAndName,SecurityGroup> securityGroupMap, SecurityGroupExtension securityGroupExtension)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
apply(NodeMetadata node)
boolean
removeSecurityGroupCreatedByJcloudsAndInvalidateCache(Set<String> tags)
-
-
-
Field Detail
-
logger
@Named("jclouds.compute") protected Logger logger
-
removeFloatingIpFromNodeAndDeallocate
protected final RemoveFloatingIpFromNodeAndDeallocate removeFloatingIpFromNodeAndDeallocate
-
securityGroupMap
protected final com.google.common.cache.LoadingCache<RegionAndName,SecurityGroup> securityGroupMap
-
-
Constructor Detail
-
CleanupResources
@Inject public CleanupResources(RemoveFloatingIpFromNodeAndDeallocate removeFloatingIpFromNodeAndDeallocate, com.google.common.cache.LoadingCache<RegionAndName,SecurityGroup> securityGroupMap, SecurityGroupExtension securityGroupExtension)
-
-
Method Detail
-
apply
public Boolean apply(NodeMetadata node)
- Specified by:
apply
in interfacecom.google.common.base.Function<NodeMetadata,Boolean>
- Specified by:
apply
in interfaceFunction<NodeMetadata,Boolean>
-
-