SSH Factory

com.jscape.inet.ipclientssh
Class SshTunneler

java.lang.Object
  extended bycom.jscape.inet.ipclientssh.SshTunneler
All Implemented Interfaces:
com.jscape.inet.ipclientssh.SshTunnelerConnection.SshServiceEndListener

public class SshTunneler
extends java.lang.Object
implements com.jscape.inet.ipclientssh.SshTunnelerConnection.SshServiceEndListener

This class is used as SshTunneler for a local service

Author:
Alvaro

Constructor Summary
SshTunneler(int portLocal, SshParameters params, java.lang.String remoteIp, int remotePort)
          Creates a new instance of SshTunneler local service.
 
Method Summary
 void serviceEnded(com.jscape.inet.ipclientssh.SshTunnelerConnection.SshTunnelerEvent event)
          Service ssh tunneler ended event.
 void start()
          Starts the Ssh tunneler service
 void stop()
          Stops the ssh tunneler service.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SshTunneler

public SshTunneler(int portLocal,
                   SshParameters params,
                   java.lang.String remoteIp,
                   int remotePort)
Creates a new instance of SshTunneler local service.

Parameters:
portLocal - The port local will be listened by the service.
params - Ssh connection parameters.
remoteIp - Remote host ip.
remotePort - Remote port.
Method Detail

start

public void start()
           throws java.lang.Exception
Starts the Ssh tunneler service

Throws:
java.lang.Exception - If an error occurs

stop

public void stop()
          throws java.lang.Exception
Stops the ssh tunneler service.

Throws:
java.lang.Exception - If an error occurs.

serviceEnded

public void serviceEnded(com.jscape.inet.ipclientssh.SshTunnelerConnection.SshTunnelerEvent event)
Service ssh tunneler ended event.

Specified by:
serviceEnded in interface com.jscape.inet.ipclientssh.SshTunnelerConnection.SshServiceEndListener
Parameters:
event - Ssh tunneler event.

SSH Factory

Copyright JSCAPE 1999-2007 All Rights Reserved.