[exo-jcr-commits] exo-jcr SVN: r2114 - jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/impl.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Mar 25 06:52:29 EDT 2010


Author: areshetnyak
Date: 2010-03-25 06:52:28 -0400 (Thu, 25 Mar 2010)
New Revision: 2114

Modified:
   jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/impl/RepositoryBackupChainImpl.java
Log:
EXOJCR-549 : The implementation backup/restore whole repository.

Modified: jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/impl/RepositoryBackupChainImpl.java
===================================================================
--- jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/impl/RepositoryBackupChainImpl.java	2010-03-25 10:50:17 UTC (rev 2113)
+++ jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/impl/RepositoryBackupChainImpl.java	2010-03-25 10:52:28 UTC (rev 2114)
@@ -36,6 +36,8 @@
 import org.exoplatform.services.jcr.ext.backup.RepositoryBackupChainLog;
 import org.exoplatform.services.jcr.ext.backup.RepositoryBackupConfig;
 import org.exoplatform.services.jcr.util.IdGenerator;
+import org.exoplatform.services.log.ExoLogger;
+import org.exoplatform.services.log.Log;
 
 /**
  * Created by The eXo Platform SAS.
@@ -48,6 +50,10 @@
 public class RepositoryBackupChainImpl
    implements RepositoryBackupChain
 {
+   /**
+    * The apache logger.
+    */
+   private static Log log = ExoLogger.getLogger("ext.RepositoryBackupChainImpl");
    
    private final RepositoryBackupConfig config;
 
@@ -110,9 +116,11 @@
    {
       if (state != FINISHED)
       {
-         for (BackupChain bc : workspaceBackups)
-         {
-            System.out.println( repositoryBackupId + " : " + getState(bc.getFullBackupState()));
+         if (log.isDebugEnabled()) {
+            for (BackupChain bc : workspaceBackups)
+            {
+               log.debug( repositoryBackupId + " : " + getState(bc.getFullBackupState()));
+            }
          }
          
          int fullBackupsState =-1;



More information about the exo-jcr-commits mailing list