@Singleton public class CreatePortForwardingRulesForIP extends Object
Constructor and Description |
---|
CreatePortForwardingRulesForIP(CloudStackApi client,
BlockUntilJobCompletesAndReturnResult blockUntilJobCompletesAndReturnResult,
com.google.common.cache.LoadingCache<String,Set<IPForwardingRule>> getIPForwardingRulesByVirtualMachine) |
Modifier and Type | Method and Description |
---|---|
Set<IPForwardingRule> |
apply(PublicIPAddress ip,
Iterable<Integer> ports) |
Set<IPForwardingRule> |
apply(PublicIPAddress ip,
String protocol,
Iterable<Integer> ports) |
@Named(value="jclouds.compute") protected Logger logger
@Inject public CreatePortForwardingRulesForIP(CloudStackApi client, BlockUntilJobCompletesAndReturnResult blockUntilJobCompletesAndReturnResult, com.google.common.cache.LoadingCache<String,Set<IPForwardingRule>> getIPForwardingRulesByVirtualMachine)
public Set<IPForwardingRule> apply(PublicIPAddress ip, Iterable<Integer> ports)
public Set<IPForwardingRule> apply(PublicIPAddress ip, String protocol, Iterable<Integer> ports)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.