org.jclouds.cloudstack.functions
Class CreateSecurityGroupIfNeeded

java.lang.Object
  extended by 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>


Field Summary
protected  CloudStackApi client
           
protected  com.google.common.base.Predicate<String> jobComplete
           
protected  org.jclouds.logging.Logger logger
           
protected  com.google.common.base.Supplier<com.google.common.cache.LoadingCache<String,Zone>> zoneIdToZone
           
 
Constructor Summary
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
 SecurityGroup apply(ZoneSecurityGroupNamePortsCidrs input)
           
 
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 Detail

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
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 interface com.google.common.base.Function<ZoneSecurityGroupNamePortsCidrs,SecurityGroup>


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.