Github user sjcorbett commented on a diff in the pull request:
https://github.com/apache/incubator-brooklyn/pull/353#discussion_r21027713
--- Diff:
core/src/main/java/brooklyn/location/access/PortForwardManager.java ---
@@ -115,7 +99,59 @@
* @see #recordPublicIpHostname(String, String)
*/
public HostAndPort lookup(Location l, int privatePort);
+
+ /**
+ * Returns the public endpoint (host and port) for use contacting the
given endpoint.
+ *
+ * Expects a previous call to {@link #associate(String, HostAndPort,
int)}, to register
+ * the endpoint.
+ *
+ * Will return null if there has not been a public endpoint associated
with this pairing.
+ */
+ public HostAndPort lookup(String publicIpId, int privatePort);
+
+ /**
+ * Clears the given port mapping, returning the true if there was a
match.
--- End diff --
"the true"
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---