OpenShift Java Client 2.5.0.Final

com.openshift.client
Interface IApplicationPortForwarding

All Known Implementing Classes:
ApplicationPortForwarding

public interface IApplicationPortForwarding


Method Summary
 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.
 

Method Detail

start

void start(com.jcraft.jsch.Session session)
           throws OpenShiftSSHOperationException
Start the binding, ie, open a SSH tunnel between local address:port and remote address:port.

Throws:
OpenShiftSSHOperationException

stop

void stop(com.jcraft.jsch.Session session)
          throws OpenShiftSSHOperationException
Stop the SSH tunnel.

Throws:
OpenShiftSSHOperationException

isStarted

boolean isStarted(com.jcraft.jsch.Session session)
                  throws OpenShiftSSHOperationException
Returns:
true if the SSH tunnel is open, false otherwise.
Throws:
OpenShiftSSHOperationException

getName

String getName()
Returns:
the name

getLocalAddress

String getLocalAddress()
Returns:
the localAddress

setLocalAddress

void setLocalAddress(String localAddress)
Parameters:
localAddress - the localAddress to set

getLocalPort

int getLocalPort()
Returns:
the localPort

setLocalPort

void setLocalPort(int localPort)
Parameters:
localPort - the localPort to set

getRemoteAddress

String getRemoteAddress()
Returns:
the remoteIp

getRemotePort

int getRemotePort()
Returns:
the remotePort

OpenShift Java Client 2.5.0.Final

Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved.