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.Object
Klasse 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 void
createConsole(de.bsvrz.dav.daf.main.ClientDavInterface dav, Protocols protocols, int port, int timeout)
Erzeugt die Konsole.static void
sendQuitCmd(java.lang.String host, int port)
Beendet Protokolle und Auswertungen.void
terminateServer()
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.IOException
Beendet Protokolle und Auswertungen.- Parameters:
host
- Hostport
- Port- Throws:
java.net.UnknownHostException
- Unbekannter Hostjava.io.IOException
- Ein-/Ausgabefehler
-
terminateServer
public void terminateServer() throws java.lang.Exception
Beendet den Telnet-Server. Trennt dabei alle Verbindungen.- Throws:
java.lang.Exception
- Fehler.
-
-