@Singleton public class CreateSecurityGroupIfNeeded extends Object implements com.google.common.base.Function<RegionSecurityGroupNameAndPorts,SecurityGroup>
Modifier and Type | Field and Description |
---|---|
protected Logger |
logger |
protected NovaApi |
novaApi |
Constructor and Description |
---|
CreateSecurityGroupIfNeeded(NovaApi novaApi,
com.google.common.base.Supplier<Map<String,Location>> locationIndex,
com.google.common.base.Function<SecurityGroupInRegion,SecurityGroup> securityGroupInRegionSecurityGroupFunction,
NeutronSecurityGroupToSecurityGroup.Factory neutronSecurityGroupToSecurityGroup) |
@Named(value="jclouds.compute") protected Logger logger
protected final NovaApi novaApi
@Inject public CreateSecurityGroupIfNeeded(NovaApi novaApi, com.google.common.base.Supplier<Map<String,Location>> locationIndex, com.google.common.base.Function<SecurityGroupInRegion,SecurityGroup> securityGroupInRegionSecurityGroupFunction, NeutronSecurityGroupToSecurityGroup.Factory neutronSecurityGroupToSecurityGroup)
public SecurityGroup apply(RegionSecurityGroupNameAndPorts regionSecurityGroupNameAndPorts)
apply
in interface com.google.common.base.Function<RegionSecurityGroupNameAndPorts,SecurityGroup>
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.