java.lang.Runnable
public final class DNSThread
extends java.lang.Thread
VisitState
from the queue of new visit states (those that still need a DNS resolution),
resolves its host and puts it on the Workbench
. The number of instances of this thread
is configurable.
Note that only instances of this class manipulate the map from IP address hashes to workbench entries. The map needs to be updated with a get-and-set atomic operation, so synchronization is explicit.
Modifier and Type | Field | Description |
---|---|---|
boolean |
stop |
Whether we should stop (used also to reduce the number of threads).
|
Constructor | Description |
---|---|
DNSThread(Frontier frontier,
int index) |
A DNS thread for the given
Frontier , with an index used to set the thread's name. |
Modifier and Type | Method | Description |
---|---|---|
void |
run() |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield