org.gudy.azureus2.core3.tracker.server.impl
Class TRTrackerServerNATChecker

java.lang.Object
  extended by org.gudy.azureus2.core3.tracker.server.impl.TRTrackerServerNATChecker

public class TRTrackerServerNATChecker
extends Object


Field Summary
protected  List check_queue
           
protected static int CHECK_QUEUE_LIMIT
           
protected  AEMonitor check_queue_mon
           
protected  AESemaphore check_queue_sem
           
protected static int check_timeout
           
protected  boolean enabled
           
protected static TRTrackerServerNATChecker singleton
           
protected  AEMonitor this_mon
           
protected  ThreadPool thread_pool
           
protected static int THREAD_POOL_SIZE
           
 
Constructor Summary
protected TRTrackerServerNATChecker()
           
 
Method Summary
protected  boolean addNATCheckRequest(String host, int port, TRTrackerServerNatCheckerListener listener)
           
protected  void checkConfig(String enable_param, String timeout_param)
           
protected static TRTrackerServerNATChecker getSingleton()
           
protected  boolean isEnabled()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

singleton

protected static TRTrackerServerNATChecker singleton

THREAD_POOL_SIZE

protected static final int THREAD_POOL_SIZE
See Also:
Constant Field Values

CHECK_QUEUE_LIMIT

protected static final int CHECK_QUEUE_LIMIT
See Also:
Constant Field Values

check_timeout

protected static int check_timeout

enabled

protected boolean enabled

thread_pool

protected ThreadPool thread_pool

check_queue

protected List check_queue

check_queue_sem

protected AESemaphore check_queue_sem

check_queue_mon

protected AEMonitor check_queue_mon

this_mon

protected AEMonitor this_mon
Constructor Detail

TRTrackerServerNATChecker

protected TRTrackerServerNATChecker()
Method Detail

getSingleton

protected static TRTrackerServerNATChecker getSingleton()

isEnabled

protected boolean isEnabled()

checkConfig

protected void checkConfig(String enable_param,
                           String timeout_param)

addNATCheckRequest

protected boolean addNATCheckRequest(String host,
                                     int port,
                                     TRTrackerServerNatCheckerListener listener)