|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
janus.net.ProxyServer.UmsThread
Eigener UMS-Thread für jede Pool-Connection
| 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, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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 |
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
InterruptedExceptionpublic void run()
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 | ||||||||