Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
Swarm(int port,
Path filePath)
Construct a swarm for seeding mode.
|
Swarm(int port,
Path filePath,
InetSocketAddress seederAddress,
byte[] swarmId)
Construct a swarm for leeching mode.
|
Modifier and Type | Method and Description |
---|---|
static int |
getPortFromProperty() |
byte[] |
getSwarmId() |
void |
run()
Return whether my device is a seeder (it finished download) in this swarm.
|
activeCount, checkAccess, 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, start, stop, stop, suspend, toString, yield
public Swarm(int port, Path filePath, InetSocketAddress seederAddress, byte[] swarmId)
port
- filePath
- seederAddress
- swarmId
- public Swarm(int port, Path filePath)
port
- filePath
-