|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object janus.net.ServerBase janus.net.TestServer
public class TestServer
Diese Klasse implementiert einen einfachen Echo-Server. Zusäzlich werden regelmäßig UMS-Nachrichten erzeugt.
Field Summary |
---|
Fields inherited from class janus.net.ServerBase |
---|
conn, debug, debugStream, exceptionListener, name, replyPending, serverSet, success_hi, success_lo, thread, transaction_type, ums_alias, ums_buffer, ums_length, UMS_MAXLENGTH, ums_reply_len, ums_terminal, umsConn, umsThread, userObject |
Constructor Summary | |
---|---|
TestServer()
Konstruktor - Setzt einen Standardnamen |
Method Summary | |
---|---|
protected void |
beginTransaction()
Starte eine Transaktion. |
protected void |
endTransaction()
Beende eine Transaktion (Commit). |
protected void |
getNextUms()
Lese die nächste UMS-Nachricht aus externer Quelle. |
protected void |
handleData()
Verarbeite eine eingehende Daten-Nachricht. |
protected void |
handleUms()
Behandle eine Antwort vom UMS-Client. |
static void |
main(String[] args)
Test-Hauptprogramm |
protected void |
rollbackTransaction()
Breche eine Transaktion ab (Rollback). |
Methods inherited from class janus.net.ServerBase |
---|
getConnection, getDebugStream, getName, getUmsConnection, getUserObject, handleAccept, handleAwaitIo, handleCancel, handleExit, handleInit, handleMessage, handleTransaction, handleUmsException, isDebug, logException, run, sendAck, sendAck, sendError, sendError, sendError, sendReply, sendReply, sendReply, setConnection, setDebug, setDebugStream, setDebugStream, setExceptionListener, setName, setUserObject, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestServer()
Method Detail |
---|
protected void beginTransaction() throws Exception
beginTransaction
in class ServerBase
Exception
protected void endTransaction() throws Exception
endTransaction
in class ServerBase
Exception
protected void getNextUms()
getNextUms
in class ServerBase
protected void handleData() throws Exception
handleData
in class ServerBase
Exception
ServerConnection
protected void handleUms()
handleUms
in class ServerBase
public static void main(String[] args) throws Exception
Exception
protected void rollbackTransaction() throws Exception
rollbackTransaction
in class ServerBase
Exception
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |