@NotExtensible @ThreadSafety(level=INTERFACE_NOT_THREADSAFE) public interface EntryBalancingRequestProcessor extends RequestProcessor
Modifier and Type | Method and Description |
---|---|
java.util.List<BackendSet> |
getBackendSets()
Retrieves a list of the backend sets for this entry-balancing request
processor.
|
DN |
getBalancingPointBaseDN()
Retrieves the DN of the balancing point for the entry-balancing request
processor.
|
ObjectPair<SearchResultEntry,BackendSet> |
getEntry(OperationContext op,
java.lang.String dn)
Retrieves the specified entry from this entry-balancing request processor.
|
BackendSet |
getGlobalIndexHint(DN dn)
Retrieves the backend set in which the entry-balancing global index
believes the entry with the specified DN may exist.
|
BackendSet |
getGlobalIndexHint(java.lang.String attributeType,
byte[] value)
Retrieves the backend set in which the entry-balancing global index
believes the entry with the specified attribute value may exist.
|
BackendSet |
getGlobalIndexHint(java.lang.String attributeType,
java.lang.String value)
Retrieves the backend set in which the entry-balancing global index
believes the entry with the specified attribute value may exist.
|
DN |
getRequestProcessorBaseDN()
Retrieves the base DN for the entry-balancing request processor.
|
java.util.List<ObjectPair<SearchResultEntry,BackendSet>> |
search(ClientContext clientContext,
java.lang.String baseDN,
SearchScope scope,
Filter filter,
java.lang.String... attributes)
Performs a search for all entries in this entry-balancing request processor
that match the provided criteria.
|
DN getRequestProcessorBaseDN()
getRequestProcessorBaseDN
in interface RequestProcessor
DN getBalancingPointBaseDN()
java.util.List<BackendSet> getBackendSets()
BackendSet getGlobalIndexHint(DN dn)
dn
- The DN of the entry for which to retrieve the global index
hint.null
if the
global index does not have any information that may help locate
the target entry, or if the provided DN is not below the balancing
point.BackendSet getGlobalIndexHint(java.lang.String attributeType, java.lang.String value)
attributeType
- The name or OID of the attribute type of the
attribute for which to retrieve the global index
hint.value
- The attribute value for which to retrieve the global
index hint.null
if the global index does not have any information
that may help locate the target entry.BackendSet getGlobalIndexHint(java.lang.String attributeType, byte[] value)
attributeType
- The name or OID of the attribute type of the
attribute for which to retrieve the global index
hint.value
- The attribute value for which to retrieve the global
index hint.null
if the global index does not have any information
that may help locate the target entry.ObjectPair<SearchResultEntry,BackendSet> getEntry(OperationContext op, java.lang.String dn) throws LDAPException
op
- Information about the operation currently being processed.
This must not be null
.dn
- The DN of the entry to retrieve. It must not be null
.
If it is at or above the balancing point base DN, then the
backend set from which the entry will be retrieved is
undefined.null
if
the specified entry was not found in any backend set.LDAPException
- If a problem is encountered while making the
determination.java.util.List<ObjectPair<SearchResultEntry,BackendSet>> search(ClientContext clientContext, java.lang.String baseDN, SearchScope scope, Filter filter, java.lang.String... attributes) throws LDAPException
clientContext
- The client context to use when performing the
search. If this is null
, then an internal
root user will be used to retrieve the entry. If it
is non-null
, then its authorization identity
will be used.baseDN
- The base DN to use for the search.scope
- The scope to use for the search.filter
- The filter to use for the search.attributes
- The set of attributes to request to be included in
the entries that are returned. If this is
null
or empty, then all user attributes will
be requested.LDAPException
- If a problem is encountered while performing the
search.