public interface JcloudsPortForwarderExtension
Modifier and Type | Method and Description |
---|---|
void |
closePortForwarding(org.jclouds.compute.domain.NodeMetadata node,
int targetPort,
com.google.common.net.HostAndPort publicHostAndPort,
Protocol protocol) |
com.google.common.net.HostAndPort |
openPortForwarding(org.jclouds.compute.domain.NodeMetadata node,
int targetPort,
com.google.common.base.Optional<java.lang.Integer> optionalPublicPort,
Protocol protocol,
Cidr accessingCidr)
Opens port forwarding (e.g.
|
com.google.common.net.HostAndPort openPortForwarding(org.jclouds.compute.domain.NodeMetadata node, int targetPort, com.google.common.base.Optional<java.lang.Integer> optionalPublicPort, Protocol protocol, Cidr accessingCidr)
PortForwardManager
, via
portForwardManager.associate(node.getId(), result, targetPort)
so that
subsequent calls to BrooklynAccessUtils.getBrooklynAccessibleAddress(brooklyn.entity.Entity, int)
will know about the mapped port.void closePortForwarding(org.jclouds.compute.domain.NodeMetadata node, int targetPort, com.google.common.net.HostAndPort publicHostAndPort, Protocol protocol)