org.objectweb.proactive.core.ssh
Class SshTunnelFactory

java.lang.Object
  extended byorg.objectweb.proactive.core.ssh.SshTunnelFactory

public class SshTunnelFactory
extends java.lang.Object

Author:
mlacage This factory class performs tunnel caching: if a tunnel is not used anymore, it is put in the unused list and whenever a client requests a similar tunnel, this tunnel is reused. unused tunnels are closed after a timeout determined by proactive.tunneling.gc_timeout (the default value is 10000ms) Caching is performed only if proactive.tunneling.use_gc is set to "yes". Otherwise, tunnels are created and destroyed purely on a need-to basis.

Method Summary
static SshTunnel createTunnel(java.lang.String host, int port)
           
static void reportUnusedTunnel(SshTunnel tunnel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createTunnel

public static SshTunnel createTunnel(java.lang.String host,
                                     int port)
                              throws java.io.IOException
Throws:
java.io.IOException

reportUnusedTunnel

public static void reportUnusedTunnel(SshTunnel tunnel)
                               throws java.lang.Exception
Throws:
java.lang.Exception


Copyright 2001-2005 INRIA All Rights Reserved.