janus.net
Class ProxyServer.Config

java.lang.Object
  extended by janus.net.ProxyServer.Config
Enclosing class:
ProxyServer

public static class ProxyServer.Config
extends Object

Innere Klasse für die Konfigurationsdaten


Field Summary
protected  boolean autorelease
          Automatische Freigabe der Verbindung, wenn keine Transaktion aktiv ist
protected  ConnectionPool pool
          Connection-Pool
protected  int timeout
          Timeout für ConnectionPool#getConnection
 
Constructor Summary
ProxyServer.Config(ConnectionPool pool, int timeout, boolean autorelease)
          Konstruktor - setzt die Werte
ProxyServer.Config(int size, String host, int port, String pathmon, int timeout, boolean autorelease)
          Konstruktor - erzeugt den Pool und setzt die Werte
ProxyServer.Config(int size, String host, int port, String pathmon, int timeout, boolean autorelease, boolean debug)
          Konstruktor - erzeugt den Pool und setzt die Werte
ProxyServer.Config(int size, String host, int port, String pathmon, int timeout, PrintWriter stream)
          Konstruktor - erzeugt den Pool und setzt die Werte
 
Method Summary
 ConnectionPool getConnectionPool()
          Ermittle den Pool
 int getTimeout()
          Ermittle den Timeout
 boolean isAutorelease()
          Ermittle das Autorelease-Flag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

autorelease

protected boolean autorelease
Automatische Freigabe der Verbindung, wenn keine Transaktion aktiv ist


pool

protected ConnectionPool pool
Connection-Pool


timeout

protected int timeout
Timeout für ConnectionPool#getConnection

Constructor Detail

ProxyServer.Config

public ProxyServer.Config(ConnectionPool pool,
                          int timeout,
                          boolean autorelease)
Konstruktor - setzt die Werte

Parameters:
pool - Der Verbindungspool
timeout - Die maximale Pool-Wartezeit
autorelease - Gibt Verbindungen automatisch frei

ProxyServer.Config

public ProxyServer.Config(int size,
                          String host,
                          int port,
                          String pathmon,
                          int timeout,
                          boolean autorelease)
Konstruktor - erzeugt den Pool und setzt die Werte

Parameters:
size - Maximale Anzahl der Connections
host - TCP/IP-Adresse des Hosts
port - TCP/IP-Port des Hosts
pathmon - Initialisierungs-Information (Pathmon-Name)
timeout - Die maximale Pool-Wartezeit
autorelease - Gibt Verbindungen automatisch frei

ProxyServer.Config

public ProxyServer.Config(int size,
                          String host,
                          int port,
                          String pathmon,
                          int timeout,
                          boolean autorelease,
                          boolean debug)
Konstruktor - erzeugt den Pool und setzt die Werte

Parameters:
size - Maximale Anzahl der Connections
host - TCP/IP-Adresse des Hosts
port - TCP/IP-Port des Hosts
pathmon - Initialisierungs-Information (Pathmon-Name)
timeout - Die maximale Pool-Wartezeit
autorelease - Gibt Verbindungen automatisch frei
debug - Debug-Ausgaben auf der Konsole

ProxyServer.Config

public ProxyServer.Config(int size,
                          String host,
                          int port,
                          String pathmon,
                          int timeout,
                          PrintWriter stream)
Konstruktor - erzeugt den Pool und setzt die Werte

Parameters:
size - Maximale Anzahl der Connections
host - TCP/IP-Adresse des Hosts
port - TCP/IP-Port des Hosts
pathmon - Initialisierungs-Information (Pathmon-Name)
timeout - Die maximale Pool-Wartezeit
stream - PrintWriter für die Debug-Ausgaben
Method Detail

getConnectionPool

public ConnectionPool getConnectionPool()
Ermittle den Pool


getTimeout

public int getTimeout()
Ermittle den Timeout


isAutorelease

public boolean isAutorelease()
Ermittle das Autorelease-Flag



Copyright © 2008 MvC Systemsoftware.