org.jclouds.cloudstack.functions
Class CreateSecurityGroupIfNeeded
java.lang.Object
org.jclouds.cloudstack.functions.CreateSecurityGroupIfNeeded
- All Implemented Interfaces:
- com.google.common.base.Function<ZoneSecurityGroupNamePortsCidrs,SecurityGroup>
@Singleton
public class CreateSecurityGroupIfNeeded
- extends Object
- implements com.google.common.base.Function<ZoneSecurityGroupNamePortsCidrs,SecurityGroup>
| 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 |
logger
@Named(value="jclouds.compute")
protected org.jclouds.logging.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
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)
apply
public SecurityGroup apply(ZoneSecurityGroupNamePortsCidrs input)
- Specified by:
apply in interface com.google.common.base.Function<ZoneSecurityGroupNamePortsCidrs,SecurityGroup>
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.