org.objectweb.proactive.core.ssh
Class TryCache
java.lang.Object
org.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.
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 |
TryCache
public TryCache()
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 2001-2005 INRIA All Rights Reserved.