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 CloudStackApi
protected 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, wait
Methods 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:
apply
in interfacecom.google.common.base.Function<ZoneSecurityGroupNamePortsCidrs,
SecurityGroup> - Specified by:
apply
in interfaceFunction<ZoneSecurityGroupNamePortsCidrs,
SecurityGroup>
-