| | |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | | import org.forgerock.opendj.ldap.DN; |
| | | import org.opends.server.core.ServerContext; |
| | | import org.opends.server.monitors.BackendMonitor; |
| | | import org.opends.server.types.InitializationException; |
| | | |
| | | /** |
| | |
| | | //implements ReactiveHandler<LdapClientConnection, Request, Response> |
| | | { |
| | | |
| | | /** The backend monitor associated with this backend. */ |
| | | private BackendMonitor backendMonitor; |
| | | |
| | | /** The unique identifier for this backend. */ |
| | | private String backendID; |
| | | |
| | |
| | | } |
| | | |
| | | /** |
| | | * Retrieves the backend monitor that is associated with this |
| | | * backend. |
| | | * |
| | | * @return The backend monitor that is associated with this |
| | | * backend, or {@code null} if none has been assigned. |
| | | */ |
| | | public final BackendMonitor getBackendMonitor() |
| | | { |
| | | return backendMonitor; |
| | | } |
| | | |
| | | /** |
| | | * Retrieves the set of base-level DNs that may be used within this |
| | | * backend. |
| | | * |
| | |
| | | public abstract Set<DN> getBaseDNs(); |
| | | |
| | | /** |
| | | * Indicates whether this backend should be considered a default (wild-card) route. |
| | | * |
| | | * @return {@code true} if the backend should be considered as the default route, {@code false} otherwise |
| | | */ |
| | | public abstract boolean isDefaultRoute(); |
| | | |
| | | /** |
| | | * Retrieves the password storage schemes defined for this backend. |
| | | * |
| | | * @return the set of supported password storage schemes |
| | |
| | | } |
| | | |
| | | /** |
| | | * Indicates whether this backend should be considered a default (wild-card) route. |
| | | * |
| | | * @return {@code true} if the backend should be considered as the default route, {@code false} otherwise |
| | | */ |
| | | public abstract boolean isDefaultRoute(); |
| | | |
| | | /** |
| | | * Indicates whether this backend holds private data or user data. |
| | | * |
| | | * @return {@code true} if this backend holds private data, or |
| | |
| | | public abstract boolean isPrivateBackend(); |
| | | |
| | | /** |
| | | * Indicates whether this backend supports the specified control. |
| | | * |
| | | * @param controlOID The OID of the control for which to make the |
| | | * determination. |
| | | * |
| | | * @return {@code true} if this backends supports the control with |
| | | * the specified OID, or {@code false} if it does not. |
| | | */ |
| | | public final boolean supportsControl(String controlOID) |
| | | { |
| | | Set<String> supportedControls = getSupportedControls(); |
| | | return supportedControls != null && supportedControls.contains(controlOID); |
| | | } |
| | | |
| | | /** |
| | | * Specifies the unique identifier for this backend. |
| | | * |
| | | * @param backendID The unique identifier for this backend. |
| | |
| | | this.backendID = backendID; |
| | | } |
| | | |
| | | /** |
| | | * Sets the backend monitor for this backend. |
| | | * |
| | | * @param backendMonitor The backend monitor for this backend. |
| | | */ |
| | | public final void setBackendMonitor(BackendMonitor backendMonitor) |
| | | { |
| | | this.backendMonitor = backendMonitor; |
| | | } |
| | | |
| | | } |