Class CloudStackSecurityGroupToSecurityGroup
- java.lang.Object
-
- org.jclouds.cloudstack.compute.functions.CloudStackSecurityGroupToSecurityGroup
-
- All Implemented Interfaces:
com.google.common.base.Function<SecurityGroup,SecurityGroup>
,Function<SecurityGroup,SecurityGroup>
@Singleton public class CloudStackSecurityGroupToSecurityGroup extends Object implements com.google.common.base.Function<SecurityGroup,SecurityGroup>
A function for transforming a CloudStack-specific SecurityGroup into a generic SecurityGroup object.
-
-
Field Summary
Fields Modifier and Type Field Description protected Logger
logger
protected com.google.common.base.Function<IngressRule,IpPermission>
ruleToPermission
-
Constructor Summary
Constructors Constructor Description CloudStackSecurityGroupToSecurityGroup(com.google.common.base.Function<IngressRule,IpPermission> ruleToPermission)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityGroup
apply(SecurityGroup group)
-
-
-
Field Detail
-
logger
@Named("jclouds.compute") protected Logger logger
-
ruleToPermission
protected final com.google.common.base.Function<IngressRule,IpPermission> ruleToPermission
-
-
Constructor Detail
-
CloudStackSecurityGroupToSecurityGroup
@Inject public CloudStackSecurityGroupToSecurityGroup(com.google.common.base.Function<IngressRule,IpPermission> ruleToPermission)
-
-
Method Detail
-
apply
public SecurityGroup apply(SecurityGroup group)
- Specified by:
apply
in interfacecom.google.common.base.Function<SecurityGroup,SecurityGroup>
- Specified by:
apply
in interfaceFunction<SecurityGroup,SecurityGroup>
-
-