Class Proxy

java.lang.Object
org.forgerock.opendj.examples.Proxy

public final class Proxy extends Object
An LDAP load balancing proxy which forwards requests to one or more remote Directory Servers. This is implementation is very simple and is only intended as an example:
  • It does not support SSL connections
  • It does not support StartTLS
  • It does not support Abandon or Cancel requests
  • Very basic authentication and authorization support.
This example takes the following command line parameters:
     [--load-balancer <mode>] <listenAddress> <listenPort> <proxyDN> <proxyPassword>
         <remoteAddress1> <remotePort1> [<remoteAddress2> <remotePort2> ...]
 
Where <mode> is one of "least-requests", "fail-over", "affinity", or "distribution". The default is least-requests.
  • Method Details

    • main

      public static void main(String[] args)
      Main method.
      Parameters:
      args - The command line arguments: [--load-balancer ] listen address, listen port, remote address1, remote port1, remote address2, remote port2, ...