Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
Command |
closeConnCmd
Kommando zum schliessen der Verbindung (Server horcht weiter)
|
static String |
PROMPT
Das Prompt für die Darstellung einer Eingabeaufforderung an der Konsole
|
Command |
stopServerCmd
Kommando zum beenden des Serverdienstes auf localhost
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
CmdInterpreter(int port,
int timeOutMinutes)
Erzeugt den Telnet-Server
|
CmdInterpreter(int port,
int timeOutMinutes,
boolean showHidden)
Erzeugt den Telnet-Server
|
CmdInterpreter(int port,
int timeOutMinutes,
CmdMenu root)
Erzeugt den Telnet-Server
|
| Modifier and Type | Method and Description |
|---|---|
void |
menuLoop()
Menü anzeigen, Navigation durchführen, Kommandos ausführen
|
void |
println(String str)
Einen Text in den Out-Stream (z.B.
|
void |
run() |
void |
setMenu(CmdMenu root)
Menü für den Interpreter setzen (falls noch nicht geschehen)
|
void |
stopServerCmd()
Beendet den Telnet-Servers.
|
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, yieldpublic static String PROMPT
public Command closeConnCmd
public Command stopServerCmd
public CmdInterpreter(int port,
int timeOutMinutes)
port - der Port auf dem der Server horchttimeOutMinutes - Timeout für eine Socket-Verbindungpublic CmdInterpreter(int port,
int timeOutMinutes,
CmdMenu root)
port - Port auf dem der Server horchtroot - das HauptmenütimeOutMinutes - Timeout für eine Socket-Verbindungpublic CmdInterpreter(int port,
int timeOutMinutes,
boolean showHidden)
port - Port auf dem der Server horchttimeOutMinutes - Timeout für eine Socket-VerbindungshowHidden - true falls zusätzliche Kommandos angezeigt werden sollenpublic void run()
run in interface Runnablerun in class ThreadRunnable.run()public void menuLoop()
public void println(String str) throws Exception
str - der darzustellende StringExceptionpublic void setMenu(CmdMenu root)
root - das Menüpublic void stopServerCmd()
throws IOException
IOException