@Singleton public class CreateSecurityGroupIfNeeded extends Object implements com.google.common.base.Function<ZoneSecurityGroupNamePortsCidrs,SecurityGroup>
Modifier and Type | Field and 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 and Description |
---|
CreateSecurityGroupIfNeeded(CloudStackApi client,
com.google.common.base.Predicate<String> jobComplete,
com.google.common.base.Supplier<com.google.common.cache.LoadingCache<String,Zone>> zoneIdToZone) |
@Named(value="jclouds.compute") protected Logger logger
protected final CloudStackApi client
protected final com.google.common.base.Supplier<com.google.common.cache.LoadingCache<String,Zone>> zoneIdToZone
protected final com.google.common.base.Predicate<String> jobComplete
@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)
public SecurityGroup apply(ZoneSecurityGroupNamePortsCidrs input)
apply
in interface com.google.common.base.Function<ZoneSecurityGroupNamePortsCidrs,SecurityGroup>
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.