@Override protected void cleanUpIncidentalResourcesOfDeadNodes(Set<? extends NodeMetadata> deadNodes) { for (NodeMetadata deadNode : deadNodes) { cleanupResources.apply(deadNode); } }
public boolean removeSecurityGroupCreatedByJcloudsAndInvalidateCache(Set<String> tags) { String securityGroupIdCreatedByJclouds = getSecurityGroupIdCreatedByJclouds(tags); if (securityGroupIdCreatedByJclouds == null) return true; return securityGroupExtension.removeSecurityGroup(securityGroupIdCreatedByJclouds); }
@Override public Boolean apply(NodeMetadata node) { final RegionAndId regionAndId = RegionAndId.fromSlashEncoded(node.getId()); removeFloatingIpFromNodeifAny(regionAndId); return removeSecurityGroupCreatedByJcloudsAndInvalidateCache(node.getTags()); }
String tagString = metadataAndTagsAsCommaDelimitedValue.get("jclouds_tags"); Set<String> tags = Sets.newHashSet(Splitter.on(',').split(tagString)); cleanupResources.removeSecurityGroupCreatedByJcloudsAndInvalidateCache(tags); throw new IllegalStateException(message);
@Override public Boolean apply(NodeMetadata node) { final RegionAndId regionAndId = RegionAndId.fromSlashEncoded(node.getId()); removeFloatingIpFromNodeifAny(regionAndId); return removeSecurityGroupCreatedByJcloudsAndInvalidateCache(node.getTags()); }
String tagString = metadataAndTagsAsCommaDelimitedValue.get("jclouds_tags"); Set<String> tags = Sets.newHashSet(Splitter.on(',').split(tagString)); cleanupResources.removeSecurityGroupCreatedByJcloudsAndInvalidateCache(tags); throw new IllegalStateException(message);
@Override protected void cleanUpIncidentalResourcesOfDeadNodes(Set<? extends NodeMetadata> deadNodes) { for (NodeMetadata deadNode : deadNodes) { cleanupResources.apply(deadNode); } }
public boolean removeSecurityGroupCreatedByJcloudsAndInvalidateCache(Set<String> tags) { String securityGroupIdCreatedByJclouds = getSecurityGroupIdCreatedByJclouds(tags); if (securityGroupIdCreatedByJclouds == null) return true; return securityGroupExtension.removeSecurityGroup(securityGroupIdCreatedByJclouds); }
cleanupResources.apply(node); throw new InsufficientResourcesException("Failed to allocate a FloatingIP for node(" + node.getId() + ")");
cleanupResources.apply(node); throw new InsufficientResourcesException("Failed to allocate a FloatingIP for node(" + node.getId() + ")");