[jbosstools-issues] [JBoss JIRA] (JBIDE-21701) Enable port forwarding on a given pod and a given debug port

Fred Bricon (JIRA) issues at jboss.org
Tue Feb 16 12:54:00 EST 2016


    [ https://issues.jboss.org/browse/JBIDE-21701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13163841#comment-13163841 ] 

Fred Bricon commented on JBIDE-21701:
-------------------------------------

We'll prolly need to add something like this to PortForwardingWizardModel (or refactored equivalent)
{code}
	public int getLocalPort(String name) {
		if(!getPortForwarding()) {
			return -1;
		}
		Optional<PortPair> targetPort = ports.stream().filter(p -> p.getName().equals(name)).findFirst();
		return targetPort.isPresent()? targetPort.get().getLocalPort():-1;
	}
{code}

> Enable port forwarding on a given pod and a given debug port
> ------------------------------------------------------------
>
>                 Key: JBIDE-21701
>                 URL: https://issues.jboss.org/browse/JBIDE-21701
>             Project: Tools (JBoss Tools)
>          Issue Type: Sub-task
>          Components: openshift
>    Affects Versions: 4.3.1.Beta2
>            Reporter: Fred Bricon
>             Fix For: 4.3.1.CR1
>
>
> Given a remote debug port, we need to ensure to programmatically enable port forwarding on a pod, return the matching local debug port (named debug).
> The local port could be determined as the next available free port, or read from the server adapter's preferences. But that latter case would also require adding some UI to let a user set the local port. That could be done in a later iteration.
> If port forwarding is already enabled on the remote pod, then the current local debug port should be returned



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list