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 CloudStackApi
client
protected com.google.common.base.Predicate<String>
jobComplete
protected Logger
logger
protected 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 SecurityGroup
apply(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:
apply
in interfacecom.google.common.base.Function<ZoneSecurityGroupNamePortsCidrs,SecurityGroup>
- Specified by:
apply
in interfaceFunction<ZoneSecurityGroupNamePortsCidrs,SecurityGroup>
-
-