| Package | Description |
|---|---|
| org.forgerock.opendj.ldap |
Classes and interfaces for core types including connections, entries, and
attributes.
|
| org.forgerock.opendj.security |
An LDAP based security provider having the name "OpenDJ" and exposing an LDAP/LDIF based
KeyStore service. |
| 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 |
|---|---|
static ConnectionFactory |
Connections.newAffinityRequestLoadBalancer(Collection<? extends ConnectionFactory> factories,
org.forgerock.util.Options options)
Creates a new "affinity" load-balancer which will load-balance individual requests across the provided set of
connection factories, each typically representing a single replica, using an algorithm that ensures that requests
targeting a given DN will always be routed to the same replica.
|
static ConnectionFactory |
Connections.newFailoverLoadBalancer(Collection<? extends ConnectionFactory> factories,
org.forgerock.util.Options options)
Creates a new "fail-over" load-balancer which will load-balance connections across the provided set of connection
factories.
|
static ConnectionFactory |
Connections.newFixedSizeDistributionLoadBalancer(DN partitionBaseDN,
ConsistentHashMap<? extends ConnectionFactory> partitions,
org.forgerock.util.Options options)
Creates a distribution load balancer which uses consistent hashing to distributes requests across a set of
partitions based on a hash of each request's target DN.
|
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.newLeastRequestsLoadBalancer(Collection<? extends ConnectionFactory> factories,
org.forgerock.util.Options options)
Creates a new "least requests" load-balancer which will load-balance individual requests across the provided
set of connection factories, each typically representing a single replica, using an algorithm that ensures that
requests are routed to the replica which has the minimum number of active requests.
|
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-balancer 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.newAffinityRequestLoadBalancer(Collection<? extends ConnectionFactory> factories,
org.forgerock.util.Options options)
Creates a new "affinity" load-balancer which will load-balance individual requests across the provided set of
connection factories, each typically representing a single replica, using an algorithm that ensures that requests
targeting a given DN will always be routed to the same replica.
|
static ConnectionFactory |
Connections.newFailoverLoadBalancer(Collection<? extends ConnectionFactory> factories,
org.forgerock.util.Options options)
Creates a new "fail-over" load-balancer which will load-balance connections across the provided set of connection
factories.
|
static ConnectionFactory |
Connections.newFixedSizeDistributionLoadBalancer(DN partitionBaseDN,
ConsistentHashMap<? extends ConnectionFactory> partitions,
org.forgerock.util.Options options)
Creates a distribution load balancer which uses consistent hashing to distributes requests across a set of
partitions based on a hash of each request's target DN.
|
static ConnectionFactory |
Connections.newLeastRequestsLoadBalancer(Collection<? extends ConnectionFactory> factories,
org.forgerock.util.Options options)
Creates a new "least requests" load-balancer which will load-balance individual requests across the provided
set of connection factories, each typically representing a single replica, using an algorithm that ensures that
requests are routed to the replica which has the minimum number of active requests.
|
static ConnectionFactory |
Connections.newRoundRobinLoadBalancer(Collection<? extends ConnectionFactory> factories,
org.forgerock.util.Options options)
Creates a new "round-robin" load-balancer which will load-balance connections across the provided set of
connection factories.
|
| Modifier and Type | Method and Description |
|---|---|
static KeyStoreParameters |
KeyStoreParameters.newKeyStoreParameters(ConnectionFactory factory,
DN baseDN)
Creates a set of LDAP key store parameters with default options.
|
static KeyStoreParameters |
KeyStoreParameters.newKeyStoreParameters(ConnectionFactory factory,
DN baseDN,
org.forgerock.util.Options options)
Creates a set of LDAP key store parameters with custom options.
|
static KeyStore |
OpenDJProvider.newLDAPKeyStore(ConnectionFactory factory,
DN baseDN)
Creates a new LDAP key store with default options.
|
static KeyStore |
OpenDJProvider.newLDAPKeyStore(ConnectionFactory factory,
DN baseDN,
org.forgerock.util.Options options)
Creates a new LDAP key store with custom options.
|
Copyright © 2017-2020 Wren Security. All Rights Reserved.