| Package | Description |
|---|---|
| org.forgerock.opendj.ldap |
Classes and interfaces for core types including connections, entries, and
attributes.
|
| org.forgerock.opendj.ldap.spi |
Interfaces and classes for service providers.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
ConnectionPool
A connection factory which maintains and re-uses a pool of connections.
|
| Modifier and Type | Class and Description |
|---|---|
class |
LDAPConnectionFactory
A factory class which can be used to obtain connections to an LDAP Directory
Server.
|
| Modifier and Type | Method and Description |
|---|---|
ConnectionFactory |
LoadBalancingAlgorithm.getConnectionFactory()
Returns a connection factory which should be used in order to satisfy the
next connection request.
|
static ConnectionFactory |
Connections.newAuthenticatedConnectionFactory(ConnectionFactory factory,
BindRequest request)
Creates a new authenticated connection factory which will obtain
connections using the provided connection factory and immediately perform
the provided Bind request.
|
static ConnectionFactory |
Connections.newHeartBeatConnectionFactory(ConnectionFactory factory)
Creates a new heart-beat connection factory which will create connections
using the provided connection factory and periodically ping any created
connections in order to detect that they are still alive every 10 seconds
using the default scheduler.
|
static ConnectionFactory |
Connections.newHeartBeatConnectionFactory(ConnectionFactory factory,
long interval,
long timeout,
TimeUnit unit)
Creates a new heart-beat connection factory which will create connections
using the provided connection factory and periodically ping any created
connections in order to detect that they are still alive using the
specified frequency and the default scheduler.
|
static ConnectionFactory |
Connections.newHeartBeatConnectionFactory(ConnectionFactory factory,
long interval,
long timeout,
TimeUnit unit,
SearchRequest heartBeat)
Creates a new heart-beat connection factory which will create connections
using the provided connection factory and periodically ping any created
connections using the specified search request in order to detect that
they are still alive.
|
static ConnectionFactory |
Connections.newHeartBeatConnectionFactory(ConnectionFactory factory,
long interval,
long timeout,
TimeUnit unit,
SearchRequest heartBeat,
ScheduledExecutorService scheduler)
Creates a new heart-beat connection factory which will create connections
using the provided connection factory and periodically ping any created
connections using the specified search request in order to detect that
they are still alive.
|
static ConnectionFactory |
Connections.newInternalConnectionFactory(RequestHandler<RequestContext> requestHandler)
Creates a new connection factory which binds internal client connections
to the provided
RequestHandlers. |
static <C> ConnectionFactory |
Connections.newInternalConnectionFactory(RequestHandlerFactory<C,RequestContext> factory,
C clientContext)
Creates a new connection factory which binds internal client connections
to
RequestHandlers created using the provided
RequestHandlerFactory. |
static <C> ConnectionFactory |
Connections.newInternalConnectionFactory(ServerConnectionFactory<C,Integer> factory,
C clientContext)
Creates a new connection factory which binds internal client connections
to
ServerConnections created using the provided
ServerConnectionFactory. |
static ConnectionFactory |
Connections.newLoadBalancer(LoadBalancingAlgorithm algorithm)
Creates a new load balancer which will obtain connections using the
provided load balancing algorithm.
|
static ConnectionFactory |
Connections.newNamedConnectionFactory(ConnectionFactory factory,
String name)
Creates a new connection factory which forwards connection requests to
the provided factory, but whose
toString method will always
return name. |
static ConnectionFactory |
Connections.uncloseable(ConnectionFactory factory)
Returns an uncloseable view of the provided connection factory.
|
| Modifier and Type | Method and Description |
|---|---|
void |
LoadBalancerEventListener.handleConnectionFactoryOffline(ConnectionFactory factory,
LdapException error)
Invoked when the load-balancer is unable to obtain a connection from the
specified connection factory.
|
void |
LoadBalancerEventListener.handleConnectionFactoryOnline(ConnectionFactory factory)
Invoked when the load-balancer detects that a previously offline
connection factory is available for use again.
|
static ConnectionFactory |
Connections.newAuthenticatedConnectionFactory(ConnectionFactory factory,
BindRequest request)
Creates a new authenticated connection factory which will obtain
connections using the provided connection factory and immediately perform
the provided Bind request.
|
static ConnectionPool |
Connections.newCachedConnectionPool(ConnectionFactory factory)
Creates a new connection pool which creates new connections as needed
using the provided connection factory, but will reuse previously
allocated connections when they are available.
|
static ConnectionPool |
Connections.newCachedConnectionPool(ConnectionFactory factory,
int corePoolSize,
int maximumPoolSize,
long idleTimeout,
TimeUnit unit)
Creates a new connection pool which creates new connections as needed
using the provided connection factory, but will reuse previously
allocated connections when they are available.
|
static ConnectionPool |
Connections.newCachedConnectionPool(ConnectionFactory factory,
int corePoolSize,
int maximumPoolSize,
long idleTimeout,
TimeUnit unit,
ScheduledExecutorService scheduler)
Creates a new connection pool which creates new connections as needed
using the provided connection factory, but will reuse previously
allocated connections when they are available.
|
static ConnectionPool |
Connections.newFixedConnectionPool(ConnectionFactory factory,
int poolSize)
Creates a new connection pool which will maintain
poolSize
connections created using the provided connection factory. |
static ConnectionFactory |
Connections.newHeartBeatConnectionFactory(ConnectionFactory factory)
Creates a new heart-beat connection factory which will create connections
using the provided connection factory and periodically ping any created
connections in order to detect that they are still alive every 10 seconds
using the default scheduler.
|
static ConnectionFactory |
Connections.newHeartBeatConnectionFactory(ConnectionFactory factory,
long interval,
long timeout,
TimeUnit unit)
Creates a new heart-beat connection factory which will create connections
using the provided connection factory and periodically ping any created
connections in order to detect that they are still alive using the
specified frequency and the default scheduler.
|
static ConnectionFactory |
Connections.newHeartBeatConnectionFactory(ConnectionFactory factory,
long interval,
long timeout,
TimeUnit unit,
SearchRequest heartBeat)
Creates a new heart-beat connection factory which will create connections
using the provided connection factory and periodically ping any created
connections using the specified search request in order to detect that
they are still alive.
|
static ConnectionFactory |
Connections.newHeartBeatConnectionFactory(ConnectionFactory factory,
long interval,
long timeout,
TimeUnit unit,
SearchRequest heartBeat,
ScheduledExecutorService scheduler)
Creates a new heart-beat connection factory which will create connections
using the provided connection factory and periodically ping any created
connections using the specified search request in order to detect that
they are still alive.
|
static ConnectionFactory |
Connections.newNamedConnectionFactory(ConnectionFactory factory,
String name)
Creates a new connection factory which forwards connection requests to
the provided factory, but whose
toString method will always
return name. |
static ConnectionFactory |
Connections.uncloseable(ConnectionFactory factory)
Returns an uncloseable view of the provided connection factory.
|
| Constructor and Description |
|---|
FailoverLoadBalancingAlgorithm(Collection<? extends ConnectionFactory> factories)
Creates a new fail-over load balancing algorithm which will monitor
offline connection factories every 1 second using the default scheduler.
|
FailoverLoadBalancingAlgorithm(Collection<? extends ConnectionFactory> factories,
LoadBalancerEventListener listener)
Creates a new fail-over load balancing algorithm which will monitor
offline connection factories every 1 second using the default scheduler.
|
FailoverLoadBalancingAlgorithm(Collection<? extends ConnectionFactory> factories,
LoadBalancerEventListener listener,
long interval,
TimeUnit unit)
Creates a new fail-over load balancing algorithm which will monitor
offline connection factories using the specified frequency using the
default scheduler.
|
FailoverLoadBalancingAlgorithm(Collection<? extends ConnectionFactory> factories,
LoadBalancerEventListener listener,
long interval,
TimeUnit unit,
ScheduledExecutorService scheduler)
Creates a new fail-over load balancing algorithm which will monitor
offline connection factories using the specified frequency and scheduler.
|
FailoverLoadBalancingAlgorithm(Collection<? extends ConnectionFactory> factories,
long interval,
TimeUnit unit)
Creates a new fail-over load balancing algorithm which will monitor
offline connection factories using the specified frequency using the
default scheduler.
|
FailoverLoadBalancingAlgorithm(Collection<? extends ConnectionFactory> factories,
long interval,
TimeUnit unit,
ScheduledExecutorService scheduler)
Creates a new fail-over load balancing algorithm which will monitor
offline connection factories using the specified frequency and scheduler.
|
RoundRobinLoadBalancingAlgorithm(Collection<? extends ConnectionFactory> factories)
Creates a new round robin load balancing algorithm which will monitor
offline connection factories every 1 second using the default scheduler.
|
RoundRobinLoadBalancingAlgorithm(Collection<? extends ConnectionFactory> factories,
LoadBalancerEventListener listener)
Creates a new round robin load balancing algorithm which will monitor
offline connection factories every 1 second using the default scheduler.
|
RoundRobinLoadBalancingAlgorithm(Collection<? extends ConnectionFactory> factories,
LoadBalancerEventListener listener,
long interval,
TimeUnit unit)
Creates a new round robin load balancing algorithm which will monitor
offline connection factories using the specified frequency using the
default scheduler.
|
RoundRobinLoadBalancingAlgorithm(Collection<? extends ConnectionFactory> factories,
LoadBalancerEventListener listener,
long interval,
TimeUnit unit,
ScheduledExecutorService scheduler)
Creates a new round robin load balancing algorithm which will monitor
offline connection factories using the specified frequency and scheduler.
|
RoundRobinLoadBalancingAlgorithm(Collection<? extends ConnectionFactory> factories,
long interval,
TimeUnit unit)
Creates a new round robin load balancing algorithm which will monitor
offline connection factories using the specified frequency using the
default scheduler.
|
RoundRobinLoadBalancingAlgorithm(Collection<? extends ConnectionFactory> factories,
long interval,
TimeUnit unit,
ScheduledExecutorService scheduler)
Creates a new round robin load balancing algorithm which will monitor
offline connection factories using the specified frequency and scheduler.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
LDAPConnectionFactoryImpl
Interface for all classes that actually implement
LDAPConnectionFactory. |
Copyright © 2011-2015 ForgeRock AS. All Rights Reserved.