@Singleton public class CreatePortForwardingRulesForIP extends Object
Constructor and Description |
---|
CreatePortForwardingRulesForIP(CloudStackClient client,
BlockUntilJobCompletesAndReturnResult blockUntilJobCompletesAndReturnResult,
com.google.common.cache.LoadingCache<Long,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) |
@Inject public CreatePortForwardingRulesForIP(CloudStackClient client, BlockUntilJobCompletesAndReturnResult blockUntilJobCompletesAndReturnResult, com.google.common.cache.LoadingCache<Long,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-2012 jclouds. All Rights Reserved.