org.objectweb.proactive.core.ssh
Class TryCache

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

public class TryCache
extends java.lang.Object

Author:
mlacage This class maintains state which reflects whether a given host has already been contacted through a tunnel or a direct connection or has never been contacted before.

Constructor Summary
TryCache()
           
 
Method Summary
 boolean everTried(java.lang.String host, int port)
           
 boolean needToTry(java.lang.String host, int port)
          Return true only if we need to try this host/port pair.
 void recordTryFailure(java.lang.String host, int port)
           
 void recordTrySuccess(java.lang.String host, int port)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TryCache

public TryCache()
Method Detail

everTried

public boolean everTried(java.lang.String host,
                         int port)

needToTry

public boolean needToTry(java.lang.String host,
                         int port)
Return true only if we need to try this host/port pair.


recordTrySuccess

public void recordTrySuccess(java.lang.String host,
                             int port)

recordTryFailure

public void recordTryFailure(java.lang.String host,
                             int port)


Copyright ? April 2005 INRIA All Rights Reserved.