mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

matthew_swift
08.13.2010 34ac48d938d5f3411505f7d0f883a585148ec716
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package org.opends.sdk;
 
/**
 * Created by IntelliJ IDEA. User: digitalperk Date: Dec 15, 2009 Time: 5:42:01
 * PM To change this template use File | Settings | File Templates.
 */
public class FailoverLoadBalancingAlgorithm
    extends AbstractLoadBalancingAlgorithm
{
  public FailoverLoadBalancingAlgorithm(ConnectionFactory<?>... factories)
  {
    super(factories);
  }
 
  public ConnectionFactory<?> getNextConnectionFactory()
  {
    for(MonitoredConnectionFactory f : factoryList)
    {
      if(f.isOperational())
      {
        return f;
      }
    }
    return null;
  }
}