Examples of supportsBackup()


Examples of org.nasutekds.server.api.Backend.supportsBackup()

    if (backUpAll)
    {
      for (Map.Entry<String,ConfigEntry> mapEntry : configEntries.entrySet())
      {
        Backend b = DirectoryServer.getBackend(mapEntry.getKey());
        if (b != null && b.supportsBackup())
        {
          backendsToArchive.add(b);
        }
      }
    }
View Full Code Here

Examples of org.nasutekds.server.api.Backend.supportsBackup()

        if (b == null || configEntries.get(id) == null)
        {
          Message message = ERR_BACKUPDB_NO_BACKENDS_FOR_ID.get(id);
          logError(message);
        }
        else if (! b.supportsBackup())
        {
          Message message =
              WARN_BACKUPDB_BACKUP_NOT_SUPPORTED.get(b.getBackendID());
          logError(message);
        }
View Full Code Here

Examples of org.nasutekds.server.api.Backend.supportsBackup()

    if (backUpAll.isPresent())
    {
      for (int i=0; i < numBackends; i++)
      {
        Backend b = backendList.get(i);
        if (b.supportsBackup())
        {
          backendsToArchive.add(b);
          configEntries.put(b.getBackendID(), entryList.get(i));
        }
      }
View Full Code Here

Examples of org.nasutekds.server.api.Backend.supportsBackup()

      for (int i=0; i < numBackends; i++)
      {
        Backend b = backendList.get(i);
        if (requestedBackends.contains(b.getBackendID()))
        {
          if (! b.supportsBackup())
          {
            Message message =
                WARN_BACKUPDB_BACKUP_NOT_SUPPORTED.get(b.getBackendID());
            logError(message);
          }
View Full Code Here

Examples of org.nasutekds.server.api.Backend.supportsBackup()

      backupConfig.setHashData(hash.isPresent());
      backupConfig.setSignHash(signHash.isPresent());
      backupConfig.setIncrementalBaseID(incrementalBase);

      StringBuilder unsupportedReason = new StringBuilder();
      if (! b.supportsBackup(backupConfig, unsupportedReason))
      {
        message = ERR_BACKUPDB_CANNOT_BACKUP.get(
            b.getBackendID(), unsupportedReason.toString());
        logError(message);
        errorsEncountered = true;
View Full Code Here

Examples of org.nasutekds.server.api.Backend.supportsBackup()

    assertTrue(b.getEntryCount() > 0);

    assertTrue(b.isLocal());

    assertFalse(b.supportsBackup());
    assertFalse(b.supportsBackup(null, null));

    try
    {
      b.createBackup(null);
View Full Code Here

Examples of org.nasutekds.server.api.Backend.supportsBackup()

    assertTrue(b.getEntryCount() > 0);

    assertTrue(b.isLocal());

    assertFalse(b.supportsBackup());
    assertFalse(b.supportsBackup(null, null));

    try
    {
      b.createBackup(null);
      fail("Expected an exception when calling createBackup");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.