|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
de.bsvrz.sys.funclib.losb.util.cmdinterface.CmdInterpreter
public class CmdInterpreter
Kommando-Interpreter
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
Command |
closeConnCmd
Kommando zum schliessen der Verbindung (Server horcht weiter) |
static java.lang.String |
PROMPT
Das Prompt für die Darstellung einer Eingabeaufforderung an der Konsole |
Command |
stopServerCmd
Kommando zum beenden des Serverdienstes auf localhost |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
void |
menuLoop()
Menü anzeigen, Navigation durchführen, Kommandos ausführen |
void |
println(java.lang.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. |
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 java.lang.String PROMPT
public Command closeConnCmd
public Command stopServerCmd
Constructor Detail |
---|
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 sollenMethod Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
Runnable.run()
public void menuLoop()
public void println(java.lang.String str) throws java.lang.Exception
str
- der darzustellende String
java.lang.Exception
public void setMenu(CmdMenu root)
root
- das Menüpublic void stopServerCmd() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |