mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

neil_a_wilson
09.54.2006 06e8f819bcda0d7162d662af94c6ade794e1cfe6
opends/src/server/org/opends/server/backends/BackupBackend.java
@@ -336,6 +336,34 @@
  /**
   * {@inheritDoc}
   */
  public long getEntryCount()
  {
    assert debugEnter(CLASS_NAME, "getEntryCount");
    int numEntries = 1;
    AttributeType backupPathType =
         DirectoryServer.getAttributeType(ATTR_BACKUP_DIRECTORY_PATH, true);
    for (File f : backupDirectories)
    {
      try
      {
        DN backupDirDN = makeChildDN(backupBaseDN, backupPathType,
                                     f.getAbsolutePath());
        getBackupDirectoryEntry(backupDirDN);
        numEntries++;
      } catch (Exception e) {}
    }
    return numEntries;
  }
  /**
   * Indicates whether the data associated with this backend may be considered
   * local (i.e., in a repository managed by the Directory Server) rather than
   * remote (i.e., in an external repository accessed by the Directory Server