Package de.bsvrz.pua.prot.client.console
Class Console
- java.lang.Object
-
- de.bsvrz.pua.prot.client.console.Console
-
public class Console extends java.lang.ObjectKlasse der Pua-Steuerungskonsole. Erlaubt das Steuern von Pua über eine Telnet-Session.
-
-
Constructor Summary
Constructors Constructor Description Console()
-
Method Summary
Modifier and Type Method Description voidcreateConsole(de.bsvrz.dav.daf.main.ClientDavInterface dav, Protocols protocols, int port, int timeout)Erzeugt die Konsole.static voidsendQuitCmd(java.lang.String host, int port)Beendet Protokolle und Auswertungen.voidterminateServer()Beendet den Telnet-Server.
-
-
-
Method Detail
-
createConsole
public void createConsole(de.bsvrz.dav.daf.main.ClientDavInterface dav, Protocols protocols, int port, int timeout)Erzeugt die Konsole.- Parameters:
dav- Verbindung zum Datenverteiler.protocols- Hauptklasseport- Port der Konsole.timeout- Timeout einer inaktiven Session in Minuten.
-
sendQuitCmd
public static void sendQuitCmd(java.lang.String host, int port) throws java.net.UnknownHostException, java.io.IOExceptionBeendet Protokolle und Auswertungen.- Parameters:
host- Hostport- Port- Throws:
java.net.UnknownHostException- Unbekannter Hostjava.io.IOException- Ein-/Ausgabefehler
-
terminateServer
public void terminateServer() throws java.lang.ExceptionBeendet den Telnet-Server. Trennt dabei alle Verbindungen.- Throws:
java.lang.Exception- Fehler.
-
-