Package org.jclouds.cloudstack.functions
Class CreateSecurityGroupIfNeeded
java.lang.Object
org.jclouds.cloudstack.functions.CreateSecurityGroupIfNeeded
- All Implemented Interfaces:
com.google.common.base.Function<ZoneSecurityGroupNamePortsCidrs,,SecurityGroup> Function<ZoneSecurityGroupNamePortsCidrs,SecurityGroup>
@Singleton
public class CreateSecurityGroupIfNeeded
extends Object
implements com.google.common.base.Function<ZoneSecurityGroupNamePortsCidrs,SecurityGroup>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CloudStackApiprotected final com.google.common.base.Predicate<String> protected Logger -
Constructor Summary
ConstructorsConstructorDescriptionCreateSecurityGroupIfNeeded(CloudStackApi client, com.google.common.base.Predicate<String> jobComplete, com.google.common.base.Supplier<com.google.common.cache.LoadingCache<String, Zone>> zoneIdToZone) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.common.base.Function
equals
-
Field Details
-
logger
-
client
-
zoneIdToZone
-
jobComplete
-
-
Constructor Details
-
CreateSecurityGroupIfNeeded
@Inject public CreateSecurityGroupIfNeeded(CloudStackApi client, com.google.common.base.Predicate<String> jobComplete, com.google.common.base.Supplier<com.google.common.cache.LoadingCache<String, Zone>> zoneIdToZone)
-
-
Method Details
-
apply
- Specified by:
applyin interfacecom.google.common.base.Function<ZoneSecurityGroupNamePortsCidrs,SecurityGroup> - Specified by:
applyin interfaceFunction<ZoneSecurityGroupNamePortsCidrs,SecurityGroup>
-