de.bsvrz.pua.prot.client.console
Class Console

java.lang.Object
  extended by 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.

Version:
$Revision: 1.2 $ / $Date: 2008/01/22 16:55:50 $ / ($Author: yvonnes $)
Author:
beck et al. projects GmbH, Martin Hilgers

Field Summary
static int SEND_TIMEOUT
          Timeout beim Beenden von Protokolle und Auswertungen.
 
Constructor Summary
Console()
           
 
Method Summary
 void createConsole(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
 

Field Detail

SEND_TIMEOUT

public static int SEND_TIMEOUT
Timeout beim Beenden von Protokolle und Auswertungen.

Constructor Detail

Console

public Console()
Method Detail

createConsole

public void createConsole(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.


Copyright © 2005-2008 beck et al. projects GmbH All Rights Reserved.