org.klomp.snark
public class TrackerClient extends I2PAppThread
I2PThread.OOMEventListener
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
TrackerClient(I2PSnarkUtil util,
MetaInfo meta,
String additionalTrackerURL,
PeerCoordinator coordinator,
Snark snark) |
Modifier and Type | Method and Description |
---|---|
void |
halt()
Interrupts this Thread to stop it.
|
boolean |
halted() |
(package private) static boolean |
isValidAnnounce(String ann) |
void |
run() |
void |
start() |
boolean |
started() |
static String |
urlencode(byte[] bs)
Very lazy byte[] to URL encoder.
|
addOOMEventThreadListener, fireOOM, removeOOMEventThreadListener
addOOMEventListener, finalize, main, removeOOMEventListener
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, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yield
public TrackerClient(I2PSnarkUtil util, MetaInfo meta, String additionalTrackerURL, PeerCoordinator coordinator, Snark snark)
meta
- null if in magnet modeadditionalTrackerURL
- may be null, from the ?tr= param in magnet mode, otherwise ignoredpublic boolean halted()
public boolean started()
public void halt()
public static String urlencode(byte[] bs)
static boolean isValidAnnounce(String ann)