예제 #1
0
 private void doMailBackup() {
   try {
     rmtApi.createConfigBackupFile(RemoteApi.BackupFileDisposition.Mail);
   } catch (Exception e) {
     errMsg = "Error: " + e.getMessage();
   }
 }
예제 #2
0
  private boolean disableMetadataIndexing(ArchivalUnit au, boolean force) {
    if (metadataMgr == null) {
      errMsg = "Metadata processing is not enabled.";
      return false;
    }

    try {
      metadataMgr.disableAuIndexing(au);
      statusMsg = "Disabled metadata indexing for " + au.getName();
      return true;
    } catch (Exception e) {
      errMsg = "Cannot reindex metadata for " + au.getName() + ": " + e.getMessage();
      return false;
    }
  }