Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Console

        public Console()
    • 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 - Hauptklasse
        port - 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 - Host
        port - Port
        Throws:
        java.net.UnknownHostException - Unbekannter Host
        java.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.