public class ApplicationPortForwarding extends Object implements IApplicationPortForwarding
Constructor and Description |
---|
ApplicationPortForwarding(IApplication application,
String name,
String remoteAddress,
int remotePort) |
Modifier and Type | Method and Description |
---|---|
protected IApplication |
getApplication() |
String |
getLocalAddress() |
int |
getLocalPort() |
String |
getName() |
String |
getRemoteAddress() |
int |
getRemotePort() |
boolean |
isStarted(com.jcraft.jsch.Session session) |
void |
setLocalAddress(String localAddress) |
void |
setLocalPort(int localPort) |
void |
start(com.jcraft.jsch.Session session)
Start the binding, ie, open a SSH tunnel between local address:port and remote address:port.
|
void |
stop(com.jcraft.jsch.Session session)
Stop the SSH tunnel.
|
String |
toString() |
public ApplicationPortForwarding(IApplication application, String name, String remoteAddress, int remotePort)
public void start(com.jcraft.jsch.Session session) throws OpenShiftSSHOperationException
IApplicationPortForwarding
start
in interface IApplicationPortForwarding
OpenShiftSSHOperationException
public void stop(com.jcraft.jsch.Session session) throws OpenShiftSSHOperationException
IApplicationPortForwarding
stop
in interface IApplicationPortForwarding
OpenShiftSSHOperationException
public boolean isStarted(com.jcraft.jsch.Session session) throws OpenShiftSSHOperationException
isStarted
in interface IApplicationPortForwarding
OpenShiftSSHOperationException
protected final IApplication getApplication()
public final String getName()
getName
in interface IApplicationPortForwarding
public final String getLocalAddress()
getLocalAddress
in interface IApplicationPortForwarding
public final void setLocalAddress(String localAddress)
setLocalAddress
in interface IApplicationPortForwarding
localAddress
- the localAddress to setpublic final int getLocalPort()
getLocalPort
in interface IApplicationPortForwarding
public final void setLocalPort(int localPort)
setLocalPort
in interface IApplicationPortForwarding
localPort
- the localPort to setpublic final String getRemoteAddress()
getRemoteAddress
in interface IApplicationPortForwarding
public final int getRemotePort()
getRemotePort
in interface IApplicationPortForwarding
Copyright © 2015 JBoss by Red Hat. All rights reserved.