org.jclouds.openstack.nova.v2_0.compute.functions
Class CreateSecurityGroupIfNeeded

java.lang.Object
  extended by org.jclouds.openstack.nova.v2_0.compute.functions.CreateSecurityGroupIfNeeded
All Implemented Interfaces:
com.google.common.base.Function<ZoneSecurityGroupNameAndPorts,SecurityGroupInZone>

@Singleton
public class CreateSecurityGroupIfNeeded
extends Object
implements com.google.common.base.Function<ZoneSecurityGroupNameAndPorts,SecurityGroupInZone>

Author:
Adrian Cole

Field Summary
protected  Logger logger
           
protected  NovaApi novaApi
           
 
Constructor Summary
CreateSecurityGroupIfNeeded(NovaApi novaApi)
           
 
Method Summary
 SecurityGroupInZone apply(ZoneSecurityGroupNameAndPorts zoneSecurityGroupNameAndPorts)
           
 
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 Logger logger

novaApi

protected final NovaApi novaApi
Constructor Detail

CreateSecurityGroupIfNeeded

@Inject
public CreateSecurityGroupIfNeeded(NovaApi novaApi)
Method Detail

apply

public SecurityGroupInZone apply(ZoneSecurityGroupNameAndPorts zoneSecurityGroupNameAndPorts)
Specified by:
apply in interface com.google.common.base.Function<ZoneSecurityGroupNameAndPorts,SecurityGroupInZone>


Copyright © 2009-2012 jclouds. All Rights Reserved.