From 4299c8c37993ca97f28b2e731f6fd5ba1fb53943 Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Mon, 07 Nov 2016 15:05:30 +0000
Subject: [PATCH] OPENDJ-3417 Move methods down to LocalBackend class and rename BackendMonitor to LocalBackendMonitor

---
 opendj-server-legacy/src/main/java/org/opends/server/api/Backend.java |   55 +++++++------------------------------------------------
 1 files changed, 7 insertions(+), 48 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/api/Backend.java b/opendj-server-legacy/src/main/java/org/opends/server/api/Backend.java
index 11a145c..034ffa6 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/api/Backend.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/api/Backend.java
@@ -22,7 +22,6 @@
 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;
 
 /**
@@ -36,9 +35,6 @@
   //implements ReactiveHandler<LdapClientConnection, Request, Response>
 {
 
-  /** The backend monitor associated with this backend. */
-  private BackendMonitor backendMonitor;
-
   /** The unique identifier for this backend. */
   private String backendID;
 
@@ -100,18 +96,6 @@
   }
 
   /**
-   * 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.
    *
@@ -121,6 +105,13 @@
   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
@@ -175,13 +166,6 @@
   }
 
   /**
-   * 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
@@ -190,21 +174,6 @@
   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.
@@ -214,14 +183,4 @@
     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;
-  }
-
 }

--
Gitblit v1.10.0