|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread janus.net.ProxyServer.UmsThread
protected static class ProxyServer.UmsThread
Eigener UMS-Thread für jede Pool-Connection
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
Thread.State, Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
protected byte[] |
buffer
Datenpuffer |
protected ServerConnection |
conn
Connection |
protected Throwable |
exception
Exception |
protected int |
length
Datenlänge |
protected int |
reply_length
Maximale Antwortlänge |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
ProxyServer.UmsThread(ServerConnection conn)
Konstruktor - setzt die Connection |
Method Summary | |
---|---|
String |
getAlias()
Ermittle das Ziel der UMS: Alias |
int |
getReplyLength()
Ermittle die Maximale Antwortlänge |
String |
getTerminal()
Ermittle das Ziel der UMS: Terminal |
int |
read(byte[] msg,
int offset,
int max_length)
Lese Daten aus dem Puffer (blockiert) |
void |
run()
Thread-Code |
void |
setException(Throwable exception)
Setze die Exception |
void |
write(byte[] msg,
int offset,
int length)
Schreibe die Antwort in den Puffer. |
Methods inherited from class java.lang.Thread |
---|
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, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected byte[] buffer
protected ServerConnection conn
protected Throwable exception
protected int length
protected int reply_length
Constructor Detail |
---|
public ProxyServer.UmsThread(ServerConnection conn)
Method Detail |
---|
public String getAlias()
public int getReplyLength()
public String getTerminal()
public int read(byte[] msg, int offset, int max_length) throws InterruptedException
msg
- Datenpufferoffset
- Offset innerhalb des Puffersmax_length
- Maximal zu lesende Bytes
InterruptedException
public void run()
run
in interface Runnable
run
in class Thread
public void setException(Throwable exception)
public void write(byte[] msg, int offset, int length)
msg
- Datenpufferoffset
- Offset innerhalb des Pufferslength
- Anzahl der Bytes
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |