iiitToolkit 1.0

de.iiit.ldap
Class LdapConnectionManager

java.lang.Object
  |
  +--de.iiit.ldap.LdapConnectionManager

public class LdapConnectionManager
extends Object

Manages connection to one or many LDAP servers.

Version:
$Revision: 1.12 $ $Date: 2003/01/01 21:03:49 $

Constructor Summary
LdapConnectionManager(Vector serverConfig, int masterServerNumber, int refreshIntervall)
          Creates a new instance of LdapConnectionManager
 
Method Summary
 LdapContext getContext()
          Get a javax.naming.ldap.LdapContext
 void shutdown()
          Stop the refresher thread
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdapConnectionManager

public LdapConnectionManager(Vector serverConfig,
                             int masterServerNumber,
                             int refreshIntervall)
Creates a new instance of LdapConnectionManager

Parameters:
serverConfig - a Vector of Configurations
masterServerNumber - the index of the LDAP server with write access in the ServerConfig Vector
refreshIntervall - If a connection to a server crashes a reconnect will be tried after this period of time
Method Detail

shutdown

public void shutdown()
Stop the refresher thread


getContext

public LdapContext getContext()
Get a javax.naming.ldap.LdapContext

Returns:
the requested context or null if none is available

iiitToolkit 1.0

Copyright © 2002, 2003 ingeneurbuero fuer innovative informationstechnik, Dipl.-Ing. Joerg Beckmann, Dortmund, Germany. All Rights Reserved.
See Copyright statement