@Singleton public class CreatePortForwardingRulesForIP extends Object
Constructor and Description |
---|
CreatePortForwardingRulesForIP(CloudStackClient 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(CloudStackClient 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-2013 jclouds. All Rights Reserved.