org.ldaptive.provider
Class ConnectionStrategies.ActivePassiveConnectionStrategy

java.lang.Object
  extended by org.ldaptive.provider.ConnectionStrategies.ActivePassiveConnectionStrategy
All Implemented Interfaces:
ConnectionStrategy
Enclosing class:
ConnectionStrategies

public static class ConnectionStrategies.ActivePassiveConnectionStrategy
extends Object
implements ConnectionStrategy

Active-Passive strategy.


Field Summary
 
Fields inherited from interface org.ldaptive.provider.ConnectionStrategy
ACTIVE_PASSIVE, DEFAULT, RANDOM, ROUND_ROBIN
 
Constructor Summary
ConnectionStrategies.ActivePassiveConnectionStrategy()
           
 
Method Summary
 String[] getLdapUrls(ConnectionFactoryMetadata metadata)
          Return the URLs in the order they are provided, so that the first URL is always tried first, then the second, and so forth.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionStrategies.ActivePassiveConnectionStrategy

public ConnectionStrategies.ActivePassiveConnectionStrategy()
Method Detail

getLdapUrls

public String[] getLdapUrls(ConnectionFactoryMetadata metadata)
Return the URLs in the order they are provided, so that the first URL is always tried first, then the second, and so forth.

Specified by:
getLdapUrls in interface ConnectionStrategy
Parameters:
metadata - which can be used to produce the URL list
Returns:
list of URLs to attempt connections to


Copyright © 2003-2015 Virginia Tech. All Rights Reserved.