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
Fields Modifier and Type Field Description protected CloudStackApiclientprotected com.google.common.base.Predicate<String>jobCompleteprotected Loggerloggerprotected com.google.common.base.Supplier<com.google.common.cache.LoadingCache<String,Zone>>zoneIdToZone
-
Constructor Summary
Constructors Constructor Description CreateSecurityGroupIfNeeded(CloudStackApi client, com.google.common.base.Predicate<String> jobComplete, com.google.common.base.Supplier<com.google.common.cache.LoadingCache<String,Zone>> zoneIdToZone)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityGroupapply(ZoneSecurityGroupNamePortsCidrs input)
-
-
-
Field Detail
-
logger
@Named("jclouds.compute") protected Logger logger
-
client
protected final CloudStackApi client
-
zoneIdToZone
protected final com.google.common.base.Supplier<com.google.common.cache.LoadingCache<String,Zone>> zoneIdToZone
-
jobComplete
protected final com.google.common.base.Predicate<String> jobComplete
-
-
Constructor Detail
-
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 Detail
-
apply
public SecurityGroup apply(ZoneSecurityGroupNamePortsCidrs input)
- Specified by:
applyin interfacecom.google.common.base.Function<ZoneSecurityGroupNamePortsCidrs,SecurityGroup>- Specified by:
applyin interfaceFunction<ZoneSecurityGroupNamePortsCidrs,SecurityGroup>
-
-