| Package | Description |
|---|---|
| org.forgerock.opendj.ldap |
Classes and interfaces for core types including connections, entries, and
attributes.
|
| 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.newFailoverLoadBalancer(Collection<? extends ConnectionFactory> factories,
org.forgerock.util.Options options)
Creates a new "fail-over" load-balance which will load-balance connections across the provided set of connection
factories.
|
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.newRoundRobinLoadBalancer(Collection<? extends ConnectionFactory> factories,
org.forgerock.util.Options options)
Creates a new "round-robin" load-balance which will load-balance connections across the provided set of
connection factories.
|
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 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.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 |
|---|---|
static ConnectionFactory |
Connections.newFailoverLoadBalancer(Collection<? extends ConnectionFactory> factories,
org.forgerock.util.Options options)
Creates a new "fail-over" load-balance which will load-balance connections across the provided set of connection
factories.
|
static ConnectionFactory |
Connections.newRoundRobinLoadBalancer(Collection<? extends ConnectionFactory> factories,
org.forgerock.util.Options options)
Creates a new "round-robin" load-balance which will load-balance connections across the provided set of
connection factories.
|
Copyright © 2011-2018 ForgeRock AS. All Rights Reserved.