public class Console
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private CmdInterpreter |
_cmd
Telnet-Konsole
|
private Protocols |
_protocols
Protocols
|
private static int |
SEND_TIMEOUT
Timeout beim Beenden von Protokolle und Auswertungen.
|
| Constructor and Description |
|---|
Console() |
| Modifier and Type | Method and Description |
|---|---|
void |
createConsole(ClientDavInterface dav,
Protocols protocols,
int port,
int timeout)
Erzeugt die Konsole.
|
private CmdMenu |
createInfoMenu()
Liefert Submenü für System-, Laufzeit- und Speicherinformationen.
|
private CmdMenu |
createQueueMenu()
Liefert ein Submenu zum Anzeigen der Queues zurück.
|
private static void |
readPrompt(java.io.BufferedReader in) |
static void |
sendQuitCmd(java.lang.String host,
int port)
Beendet Protokolle und Auswertungen.
|
void |
terminateServer()
Beendet den Telnet-Server.
|
private static void |
write(java.io.BufferedWriter out,
java.lang.String s) |
private static int SEND_TIMEOUT
private CmdInterpreter _cmd
private Protocols _protocols
public void createConsole(ClientDavInterface dav, Protocols protocols, int port, int timeout)
dav - Verbindung zum Datenverteiler.protocols - Hauptklasseport - Port der Konsole.timeout - Timeout einer inaktiven Session in Minuten.private CmdMenu createInfoMenu()
private CmdMenu createQueueMenu()
public static void sendQuitCmd(java.lang.String host,
int port)
throws java.net.UnknownHostException,
java.io.IOException
host - Hostport - Portjava.net.UnknownHostException - Unbekannter Hostjava.io.IOException - Ein-/Ausgabefehlerprivate static void readPrompt(java.io.BufferedReader in)
throws java.io.IOException
java.io.IOExceptionprivate static void write(java.io.BufferedWriter out,
java.lang.String s)
throws java.io.IOException
java.io.IOExceptionpublic void terminateServer()
throws java.lang.Exception
java.lang.Exception - Fehler.