Package org.exoplatform.services.jcr.impl.backup.rdbms

Examples of org.exoplatform.services.jcr.impl.backup.rdbms.DataRestoreContext


                  .getComponentInstancesOfType(Backupable.class);

            File fullBackupDir =
               JCRRestore.getFullBackupFile(workspacesMapping.get(wEntry.getName()).getBackupConfig().getBackupDir());
           
            DataRestoreContext context;

            if (jdbcConn != null)
            {
               if (dbCleaner != null)
               {
                  if (isSharedDbCleaner)
                  {
                     context = new DataRestoreContext(
                                 new String[]{
                                    DataRestoreContext.STORAGE_DIR,
                                    DataRestoreContext.DB_CONNECTION,
                                    DataRestoreContext.DB_CLEANER},
                                 new Object[]{
                                    fullBackupDir,
                                    jdbcConn,
                                    new DummyDBCleaner()});
                  }
                  else
                  {
                     context = new DataRestoreContext(
                        new String[]{
                           DataRestoreContext.STORAGE_DIR,
                           DataRestoreContext.DB_CONNECTION,
                           DataRestoreContext.DB_CLEANER},
                        new Object[]{
                           fullBackupDir,
                           jdbcConn,
                           dbCleaner});
  
                     isSharedDbCleaner = true;
                  }
               }
               else
               {
                  context = new DataRestoreContext(
                     new String[]{
                        DataRestoreContext.STORAGE_DIR,
                        DataRestoreContext.DB_CONNECTION},
                     new Object[]{
                        fullBackupDir,
                        jdbcConn});
               }
            }
            else
            {
               context = new DataRestoreContext(
                        new String[] {DataRestoreContext.STORAGE_DIR},
                        new Object[] {fullBackupDir});
            }

            for (Backupable component : backupable)
View Full Code Here


                  workspacesWaits4Resume.add(wsContainer);
               }
            }
         }

         DataRestoreContext context = new DataRestoreContext(
                  new String[] {DataRestoreContext.STORAGE_DIR},
                  new Object[] {new File(restorePath)});

         // restore all components
         for (Backupable component : backupableComponents)
View Full Code Here

               .getComponentInstancesOfType(Backupable.class);

         File storageDir = backupChainLog.getBackupConfig().getBackupDir();
         File fullBackupDir = JCRRestore.getFullBackupFile(storageDir);

         DataRestoreContext context = new DataRestoreContext(
                  new String[] {DataRestoreContext.STORAGE_DIR},
                  new Object[] {fullBackupDir});

         for (Backupable component : backupable)
         {
View Full Code Here

                  workspacesWaits4Resume.add(wsContainer);
               }
            }
         }

         DataRestoreContext context = new DataRestoreContext(
                  new String[] {DataRestoreContext.STORAGE_DIR},
                  new Object[] {new File(restorePath)});

         // restore all components
         for (Backupable component : backupableComponents)
View Full Code Here

            File fullBackupDir =
               JCRRestore.getFullBackupFile(new BackupChainLog(workspacesMapping.get(wEntry.getName()))
                  .getBackupConfig().getBackupDir());

            DataRestoreContext context;

            if (jdbcConn != null)
            {
               if (dbType == DatabaseStructureType.SINGLE)
               {
                  context = new DataRestoreContext(
                                 new String[]{
                                    DataRestoreContext.STORAGE_DIR,
                                    DataRestoreContext.DB_CONNECTION,
                                    DataRestoreContext.DB_CLEANER},
                                 new Object[]{
                                    fullBackupDir,
                                    jdbcConn,
                                    isSharedDbCleaner ? new DummyDBCleanerTool() : dbCleaner});
  
                  isSharedDbCleaner = true;
               }
               else
               {
                  context = new DataRestoreContext(
                     new String[]{
                        DataRestoreContext.STORAGE_DIR,
                        DataRestoreContext.DB_CONNECTION},
                     new Object[]{
                        fullBackupDir,
                        jdbcConn});
               }
            }
            else
            {
               context = new DataRestoreContext(
                        new String[] {DataRestoreContext.STORAGE_DIR},
                        new Object[] {fullBackupDir});
            }

            for (Backupable component : backupable)
View Full Code Here

                  workspacesWaits4Resume.add(wsContainer);
               }
            }
         }

         DataRestoreContext context = new DataRestoreContext(
                  new String[] {DataRestoreContext.STORAGE_DIR},
                  new Object[] {new File(restorePath)});

         // restore all components
         for (Backupable component : backupableComponents)
View Full Code Here

               .getComponentInstancesOfType(Backupable.class);

         File storageDir = backupChainLog.getBackupConfig().getBackupDir();
         File fullBackupDir = JCRRestore.getFullBackupFile(storageDir);

         DataRestoreContext context = new DataRestoreContext(
                  new String[] {DataRestoreContext.STORAGE_DIR},
                  new Object[] {fullBackupDir});

         for (Backupable component : backupable)
         {
View Full Code Here

                  .getComponentInstancesOfType(Backupable.class);

            File fullBackupDir =
               JCRRestore.getFullBackupFile(workspacesMapping.get(wEntry.getName()).getBackupConfig().getBackupDir());
           
            DataRestoreContext context;

            if (jdbcConn != null)
            {
               if (dbCleaner != null)
               {
                  if (isSharedDbCleaner)
                  {
                     context = new DataRestoreContext(
                                 new String[]{
                                    DataRestoreContext.STORAGE_DIR,
                                    DataRestoreContext.DB_CONNECTION,
                                    DataRestoreContext.DB_CLEANER},
                                 new Object[]{
                                    fullBackupDir,
                                    jdbcConn,
                                    new DummyDBCleaner(jdbcConn, new ArrayList<String>())});
                  }
                  else
                  {
                     context = new DataRestoreContext(
                        new String[]{
                           DataRestoreContext.STORAGE_DIR,
                           DataRestoreContext.DB_CONNECTION,
                           DataRestoreContext.DB_CLEANER},
                        new Object[]{
                           fullBackupDir,
                           jdbcConn,
                           dbCleaner});
  
                     isSharedDbCleaner = true;
                  }
               }
               else
               {
                  context = new DataRestoreContext(
                     new String[]{
                        DataRestoreContext.STORAGE_DIR,
                        DataRestoreContext.DB_CONNECTION},
                     new Object[]{
                        fullBackupDir,
                        jdbcConn});
               }
            }
            else
            {
               context = new DataRestoreContext(
                        new String[] {DataRestoreContext.STORAGE_DIR},
                        new Object[] {fullBackupDir});
            }

            for (Backupable component : backupable)
View Full Code Here

                  .getComponentInstancesOfType(Backupable.class);

            File fullBackupDir =
               JCRRestore.getFullBackupFile(workspacesMapping.get(wEntry.getName()).getBackupConfig().getBackupDir());
           
            DataRestoreContext context;

            if (jdbcConn != null)
            {
               if (dbCleaner != null)
               {
                  if (isSharedDbCleaner)
                  {
                     context = new DataRestoreContext(
                                 new String[]{
                                    DataRestoreContext.STORAGE_DIR,
                                    DataRestoreContext.DB_CONNECTION,
                                    DataRestoreContext.DB_CLEANER},
                                 new Object[]{
                                    fullBackupDir,
                                    jdbcConn,
                                    new DummyDBCleaner(jdbcConn, new ArrayList<String>())});
                  }
                  else
                  {
                     context = new DataRestoreContext(
                        new String[]{
                           DataRestoreContext.STORAGE_DIR,
                           DataRestoreContext.DB_CONNECTION,
                           DataRestoreContext.DB_CLEANER},
                        new Object[]{
                           fullBackupDir,
                           jdbcConn,
                           dbCleaner});
  
                     isSharedDbCleaner = true;
                  }
               }
               else
               {
                  context = new DataRestoreContext(
                     new String[]{
                        DataRestoreContext.STORAGE_DIR,
                        DataRestoreContext.DB_CONNECTION},
                     new Object[]{
                        fullBackupDir,
                        jdbcConn});
               }
            }
            else
            {
               context = new DataRestoreContext(
                        new String[] {DataRestoreContext.STORAGE_DIR},
                        new Object[] {fullBackupDir});
            }

            for (Backupable component : backupable)
View Full Code Here

               .getComponentInstancesOfType(Backupable.class);

         File storageDir = backupChainLog.getBackupConfig().getBackupDir();
         File fullBackupDir = JCRRestore.getFullBackupFile(storageDir);

         DataRestoreContext context = new DataRestoreContext(
                  new String[] {DataRestoreContext.STORAGE_DIR},
                  new Object[] {fullBackupDir});

         for (Backupable component : backupable)
         {
View Full Code Here

TOP

Related Classes of org.exoplatform.services.jcr.impl.backup.rdbms.DataRestoreContext

Copyright © 2018 www.massapicom. 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.