|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread org.xnap.plugin.opennap.net.OpenNapServerRunner
public class OpenNapServerRunner
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
static int |
CONNECT_TIMEOUT
|
static int |
MAX_RETRY_ON_CONNECTION_REFUSED
|
static int |
SOCKET_TIMEOUT
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
OpenNapServerRunner(OpenNapServer server)
|
Method Summary | |
---|---|
void |
dequeue(OpenNapBrowse browse)
|
void |
dequeue(OpenNapSearch search)
Invoked by OpenNapSearch when search did not take place or
was aborted. |
void |
die(State newState,
java.lang.String description)
|
void |
disconnect()
|
void |
enqueue(OpenNapBrowse browse)
|
void |
enqueue(OpenNapSearch search)
|
boolean |
fetchHost(java.lang.String host,
int port)
Connects to a redirector server and reads the host information. |
SendQueue |
getSendQueue()
|
void |
run()
|
Methods inherited from class java.lang.Thread |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int CONNECT_TIMEOUT
public static final int MAX_RETRY_ON_CONNECTION_REFUSED
public static final int SOCKET_TIMEOUT
Constructor Detail |
---|
public OpenNapServerRunner(OpenNapServer server)
Method Detail |
---|
public void enqueue(OpenNapBrowse browse)
public void enqueue(OpenNapSearch search)
public void dequeue(OpenNapBrowse browse)
public void dequeue(OpenNapSearch search)
OpenNapSearch
when search did not take place or
was aborted.
public void die(State newState, java.lang.String description)
public void disconnect()
public SendQueue getSendQueue()
public boolean fetchHost(java.lang.String host, int port) throws java.io.IOException
java.io.IOException
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |