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

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

public class NetStatusProtocolTesterBT
extends java.lang.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)
           
 java.lang.String getStatus()
           
protected  boolean isDestroyed()
           
protected  void log(java.lang.String str)
           
protected  void log(java.lang.String str, boolean detailed)
           
protected  void logError(java.lang.String str)
           
protected  void logError(java.lang.String str, java.lang.Throwable e)
           
 void removeListener(NetStatusProtocolTesterListener l)
           
 void setOutboundConnectionsComplete()
           
protected  void start()
           
protected  void testOutbound(java.net.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(java.net.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 java.lang.String getStatus()

log

protected void log(java.lang.String str)

log

protected void log(java.lang.String str,
                   boolean detailed)

logError

protected void logError(java.lang.String str)

logError

protected void logError(java.lang.String str,
                        java.lang.Throwable e)