| | |
| | | import org.opends.server.core.ModifyOperation; |
| | | import org.opends.server.core.ModifyDNOperation; |
| | | import org.opends.server.core.SearchOperation; |
| | | import org.opends.server.monitors.BackendMonitor; |
| | | import org.opends.server.types.BackupConfig; |
| | | import org.opends.server.types.BackupDirectory; |
| | | import org.opends.server.types.CancelledOperationException; |
| | |
| | | // hierarchically below the information in this backend. |
| | | private Backend[] subordinateBackends; |
| | | |
| | | // The backend monitor associated with this backend. |
| | | private BackendMonitor backendMonitor; |
| | | |
| | | // Indicates whether this is a private backend or one that holds |
| | | // user data. |
| | | private boolean isPrivateBackend; |
| | |
| | | subordinateBackends = new Backend[0]; |
| | | isPrivateBackend = false; |
| | | writabilityMode = WritabilityMode.ENABLED; |
| | | backendMonitor = null; |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | |
| | | /** |
| | | * 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 BackendMonitor getBackendMonitor() |
| | | { |
| | | assert debugEnter(CLASS_NAME, "getBackendMonitor"); |
| | | |
| | | return backendMonitor; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Sets the backend monitor for this backend. |
| | | * |
| | | * @param backendMonitor The backend monitor for this backend. |
| | | */ |
| | | public void setBackendMonitor(BackendMonitor backendMonitor) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "setBackendMonitor", |
| | | String.valueOf(backendMonitor)); |
| | | |
| | | this.backendMonitor = backendMonitor; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Retrieves the total number of entries contained in this backend, |
| | | * if that information is available. |
| | | * |
| | | * @return The total number of entries contained in this backend, |
| | | * or -1 if that information is not available. |
| | | */ |
| | | public abstract long getEntryCount(); |
| | | |
| | | |
| | | |
| | | /** |
| | | * Retrieves the parent backend for this backend. |
| | | * |
| | | * @return The parent backend for this backend, or |