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
IApplicationPortForwardingstart in interface IApplicationPortForwardingOpenShiftSSHOperationExceptionpublic void stop(com.jcraft.jsch.Session session)
throws OpenShiftSSHOperationException
IApplicationPortForwardingstop in interface IApplicationPortForwardingOpenShiftSSHOperationExceptionpublic boolean isStarted(com.jcraft.jsch.Session session)
throws OpenShiftSSHOperationException
isStarted in interface IApplicationPortForwardingOpenShiftSSHOperationExceptionprotected final IApplication getApplication()
public final String getName()
getName in interface IApplicationPortForwardingpublic final String getLocalAddress()
getLocalAddress in interface IApplicationPortForwardingpublic final void setLocalAddress(String localAddress)
setLocalAddress in interface IApplicationPortForwardinglocalAddress - the localAddress to setpublic final int getLocalPort()
getLocalPort in interface IApplicationPortForwardingpublic final void setLocalPort(int localPort)
setLocalPort in interface IApplicationPortForwardinglocalPort - the localPort to setpublic final String getRemoteAddress()
getRemoteAddress in interface IApplicationPortForwardingpublic final int getRemotePort()
getRemotePort in interface IApplicationPortForwardingCopyright © 2016 JBoss by Red Hat. All rights reserved.