com.aelitis.azureus.plugins.net.netstatus
Class NetStatusProtocolTesterBT

java.lang.Object
  extended by com.aelitis.azureus.plugins.net.netstatus.NetStatusProtocolTesterBT

public class NetStatusProtocolTesterBT
extends Object


Nested Class Summary
 class NetStatusProtocolTesterBT.Session
           
 
Constructor Summary
protected NetStatusProtocolTesterBT(NetStatusProtocolTester _tester, boolean _test_initiator)
           
 
Method Summary
 void addListener(NetStatusProtocolTesterListener l)
           
protected  void checkCompletion()
           
 void destroy()
           
 int getInboundConnects()
           
 int getOutboundConnects()
           
protected  byte[] getServerHash()
           
protected  long getStartTime(long now)
           
 String getStatus()
           
protected  boolean isDestroyed()
           
protected  void log(String str)
           
protected  void log(String str, boolean detailed)
           
protected  void logError(String str)
           
protected  void logError(String str, Throwable e)
           
 void removeListener(NetStatusProtocolTesterListener l)
           
 void setOutboundConnectionsComplete()
           
protected  void start()
           
protected  void testOutbound(InetSocketAddress address, byte[] their_hash, boolean use_crypto)
           
 boolean waitForCompletion(long max_millis)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetStatusProtocolTesterBT

protected NetStatusProtocolTesterBT(NetStatusProtocolTester _tester,
                                    boolean _test_initiator)
Method Detail

start

protected void start()

getServerHash

protected byte[] getServerHash()

getStartTime

protected long getStartTime(long now)

testOutbound

protected void testOutbound(InetSocketAddress address,
                            byte[] their_hash,
                            boolean use_crypto)

destroy

public void destroy()

isDestroyed

protected boolean isDestroyed()

setOutboundConnectionsComplete

public void setOutboundConnectionsComplete()

checkCompletion

protected void checkCompletion()

waitForCompletion

public boolean waitForCompletion(long max_millis)

addListener

public void addListener(NetStatusProtocolTesterListener l)

removeListener

public void removeListener(NetStatusProtocolTesterListener l)

getOutboundConnects

public int getOutboundConnects()

getInboundConnects

public int getInboundConnects()

getStatus

public String getStatus()

log

protected void log(String str)

log

protected void log(String str,
                   boolean detailed)

logError

protected void logError(String str)

logError

protected void logError(String str,
                        Throwable e)